Lighter DEX

Client-executable: 57
WebSocket streams: 14

Lighter ZK-rollup DEX data: perp and spot order books, candles, funding, pools, leaderboards, accounts, blocks and WebSockets.

Get a free key

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/orderBookOrders — Active order book bids and asks for a market.
GET/api/v1/recentTrades — Most recent executed trades for a market.
GET/api/v1/trades — Cursor-paginated public trade history for a market.
GET/api/v1/candles — Historical trade OHLCV candlesticks for a market and resolution.
GET/api/v1/markPriceCandles — Historical mark-price OHLCV candlesticks for a market and resolution.
GET/api/v1/marketPriceCharts — Compact hourly price sparkline series for one or more markets.
GET/api/v1/upDownCandles — High-resolution candles for short-duration Up/Down prediction markets.
GET/api/v1/funding-rates — Current funding rates across Lighter and peer venues (Binance, Bybit, Hyperliquid).
GET/api/v1/fundings — Historical hourly or daily settled funding rates for a market.
GET/api/v1/priceOracleInfo — Oracle reference feed sources and pre-market status for a symbol.
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.
GET/api/v1/market-news — Curated market news feed for a listed crypto or equity symbol.
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/v1/accountMetadata — Public display name and description metadata for an account or pool.
GET/api/v1/nextNonce — Next expected L2 transaction nonce for an account and API key index.
GET/api/v1/pnl — Public historical PnL time series for an account or public pool.
GET/api/v2/pnl — V2 public historical PnL series with trade, pool, and staking PnL breakdown summary.
GET/api/v1/positionFunding — Public historical position funding payments for an account or pool.
GET/api/v1/apikeys — Publicly registered L2 API key public keys and nonces for an account.
GET/api/v1/tx — Lookup a single L2 transaction by hash or sequence index.
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/boExecuteStats — Up/Down prediction market execution statistics and round counts.
GET/api/v1/events — Active and historical prediction and Up/Down market events.
GET/api/v1/competitions — Trading competitions catalog with schedules, rules, and leaderboard keys.
GET/api/v1/publicPoolsMetadata — Public liquidity and staking pools metadata (LLP, staking pools, user vaults) with TVL and APY.
GET/api/v1/pnlLeaderboard — Trader PnL, volume, and ROI leaderboard across selectable time windows.
GET/api/v1/leaderboard — Weekly and all-time Lighter points leaderboard.
GET/api/v1/savingsSummary — Aggregate 30-day trading fee savings compared to centralized venues.
GET/api/v1/savingsLeaderboard — Top traders ranked by fee savings over the trailing window.
GET/api/v1/guild/list — Directory of public Lighter trading guilds.
GET/api/v1/guild — Detailed profile, statistics, and member roster for a single trading guild.
GET/api/v1/guild/leaderboard — Trading guilds ranked by performance metrics.
GET/api/v1/guild/duel/metrics — Supported scoring metrics for guild duel competitions.
System & Config
GET/ — Exchange status, network ID, and current server Unix timestamp.
GET/info — L1 zkLighter settlement smart contract address.
GET/api/v1/systemConfig — Protocol configuration including liquidity pool and staking pool account indexes.
GET/api/v1/announcement — Active platform announcements, maintenance notices, and market events.
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/feeTiers — Maker and taker fee tier schedule across standard and premium account levels.
GET/api/v1/layer1BasicInfo — Connected L1 Ethereum network provider status and chain IDs.
GET/api/v1/withdrawalDelay — Current L2-to-L1 withdrawal finalization delay in seconds.
GET/api/v1/deposit/networks — Supported cross-chain deposit networks with chain IDs and explorer links.
GET/api/v1/fastbridge/info — Fast-bridge liquidity limit and availability status.
GET/api/v1/leaseOptions — Available LIT token lease durations and annualized rates.
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 — Latest L1-committed ZK-rollup proof batches and verification statuses.
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.