Lighter DEX
Lighter ZK-rollup DEX data: perp and spot order books, candles, funding, pools, leaderboards, accounts, blocks and WebSockets.
Independent service, not affiliated with Lighter DEX. Lighter DEX is a trademark of its owner.
WebSocket streams
GET
/ws/lighter/order_book/{market_id} [WS] — Live L2 order book snapshot and incremental depth updates for one market (WebSocket).GET
/ws/lighter/trade/{market_id} [WS] — Live executed trade and liquidation trade feed for one market (WebSocket).GET
/ws/lighter/trade_fe/{market_id} [WS] — Live extended trade feed for one market (WebSocket).GET
/ws/lighter/ticker/{market_id} [WS] — Live best bid/ask ticker stream for one market (WebSocket).GET
/ws/lighter/market_stats/{market_id} [WS] — Live mark price, index price, funding rate, OI, and 24h stats for one market (WebSocket).GET
/ws/lighter/market_stats/all [WS] — Live market statistics feed across all perpetual markets (WebSocket).GET
/ws/lighter/spot_market_stats/all [WS] — Live market statistics feed across all spot markets (WebSocket).GET
/ws/lighter/bo_market_stats/all [WS] — Live statistics feed across all Up/Down prediction markets (WebSocket).GET
/ws/lighter/asset_stats/all [WS] — Live collateral and asset statistics feed across all assets (WebSocket).GET
/ws/lighter/candle/{market_id}/{resolution} [WS] — Live trade OHLCV candlestick stream for one market and resolution (WebSocket).GET
/ws/lighter/mark_price_candle/{market_id}/{resolution} [WS] — Live mark-price OHLCV candlestick stream for one market and resolution (WebSocket).GET
/ws/lighter/height [WS] — Live ZK-rollup L2 block height tick stream (WebSocket).GET
/ws/lighter/pool_info/{account_index} [WS] — Live public liquidity/staking pool statistics and share NAV updates (WebSocket).GET
/ws/lighter/account_all/{account_index} [WS] — Live public on-chain account/pool positions, assets, funding, and trades stream (WebSocket).Markets
GET
/api/v1/orderBooks — All perpetual, spot, and prediction order books with market IDs, fees, and precision.GET
/api/v1/orderBookDetails — Detailed market specifications, mark/last prices, 24h volume, OI, and margin parameters.GET
/api/v1/funding-rates — Current funding rates across Lighter and peer venues (Binance, Bybit, Hyperliquid).GET
/api/v1/stockFinancials — Company profile, valuation, and financial fundamentals for equity/RWA perpetual markets.GET
/api/v1/upcomingEarnings — Upcoming corporate earnings release calendar for listed equity perpetuals.On-Chain Accounts & Txs
GET
/api/v1/account — Public on-chain account state: collateral, margin, open positions, and pool shares by index or L1 address.GET
/api/v1/accountsByL1Address — Resolve all Lighter account and subaccount indexes belonging to an L1 Ethereum address.GET
/api/v2/pnl — V2 public historical PnL series with trade, pool, and staking PnL breakdown summary.Stats & Leaderboards
GET
/api/v1/exchangeStats — 24-hour trade counts, base/quote volumes, and last prices across all markets.GET
/api/v1/exchangeMetrics — Historical protocol-wide time series (volume, fees, OI, TPS, active accounts, buybacks).GET
/api/v1/executeStats — Execution quality and slippage comparison between Lighter and major centralized exchanges.GET
/api/v1/publicPoolsMetadata — Public liquidity and staking pools metadata (LLP, staking pools, user vaults) with TVL and APY.System & Config
GET
/api/v1/systemConfig — Protocol configuration including liquidity pool and staking pool account indexes.GET
/api/v1/tokenlist — Full catalog of listed crypto, equity, and RWA tokens with metadata and icons.GET
/api/v1/assetDetails — Collateral and spot asset specifications including decimals, margin modes, and caps.GET
/api/v1/deposit/networks — Supported cross-chain deposit networks with chain IDs and explorer links.ZK Explorer
GET
/explorer/blocks — Latest Lighter ZK-rollup L2 blocks with height, timestamps, and transaction counts.GET
/explorer/blocks/{height} — Detailed ZK-rollup block record and included transactions by block height.GET
/explorer/batches/{batch_number} — Detailed ZK batch record including L1 commit/verify tx hashes and state roots.GET
/explorer/accounts/{account_index}/logs — Public on-chain L2 execution logs (orders, trades, transfers) for an account index.GET
/explorer/search — Search the ZK explorer by block height, batch number, transaction hash, or account.