Lux Docs
Broker

Lux Broker

Institutional federated broker with smart order routing across 16 venues

Multi-venue trading router with smart order routing, pre-trade risk, instant settlement, and real-time market data aggregation across 16 institutional providers.

Architecture

                        ┌──────────────┐
                        │   brokerd    │
                        │   :8090      │
                        └──────┬───────┘

              ┌────────────────┼────────────────┐
              │                │                │
       ┌──────┴──────┐  ┌─────┴──────┐  ┌──────┴──────┐
       │ Smart Order │  │    Risk    │  │   Audit     │
       │   Router    │  │   Engine   │  │    Log      │
       └──────┬──────┘  └────────────┘  └─────────────┘

    ┌────┬────┼────┬────┬────┬────┐
    │    │    │    │    │    │    │
   CEX  CEX  OTC  LP   FX  Data  Pay   (16 providers)

The Smart Order Router polls all venues in parallel, ranks by net price (spread + fees), and splits large orders across venues using VWAP. The Risk Engine enforces per-account and global limits before every order. The Settlement Engine manages a prefunding pool for instant crypto buys while ACH settles. The Audit Log is an immutable append-only trail of every order, fill, cancellation, and transfer.

Providers

ProviderAsset ClassesType
AlpacaEquities, CryptoBroker-dealer (SEC/FINRA)
Interactive BrokersEquities, Options, Futures, FXPrime broker
TradierEquities, OptionsBroker-dealer
CoinbaseCryptoExchange (Advanced Trade API)
BinanceCryptoExchange
KrakenCryptoExchange
GeminiCryptoExchange
SFOXCryptoPrime dealer / SOR
FalconXCryptoInstitutional RFQ
FireblocksCryptoCustody + OTC
BitGoCryptoCustody + Prime
CircleUSDC / StablecoinsStablecoin infrastructure
CurrencyCloudFX (35+ pairs)Institutional FX (Visa)
LMAXFX, Crypto, MetalsInstitutional CLOB
Polygon.ioEquities, FX, CryptoMarket data
FinixPaymentsPayment processing

Features

FeatureDescription
Smart Order RoutingFee-aware net-price optimization across all venues
Order SplittingVWAP execution across multiple venues simultaneously
Pre-Trade RiskPosition limits, daily volume caps, rate limits, symbol whitelists/blacklists
Consolidated BBOBest bid/offer aggregated across all providers in real time
Instant SettlementPrefunding pool enables instant crypto buys while ACH settles
Audit TrailImmutable log of every order, fill, and transfer with export support
Multi-AssetCrypto, equities, FX, options, futures, metals via unified API
SSE StreamingReal-time consolidated tickers and event feeds

Quick Start

go build -o brokerd ./cmd/brokerd/
ALPACA_API_KEY=pk_... ALPACA_API_SECRET=sk_... ./brokerd

Docker

docker build --platform linux/amd64 -t ghcr.io/luxfi/broker:latest .
docker run -p 8090:8090 \
  -e ALPACA_API_KEY=pk_... \
  -e ALPACA_API_SECRET=sk_... \
  ghcr.io/luxfi/broker:latest

Image: ghcr.io/luxfi/broker -- 7.5 MB, alpine-based, healthcheck on /healthz.

ModulePurpose
luxfi/complianceKYC/AML, identity verification, regulatory frameworks
luxfi/bankCustomer apps, payments, admin dashboard
hanzoai/commercePayment processors (Plaid, Braintree, Stripe)
hanzoai/iamIdentity and access management (OAuth2/OIDC)

On this page