zkLighter API
The zkLighter REST API is the programmatic interface to the Lighter exchange. Read operations cover system configuration, order books and their resting orders, recent trades, candles and mark-price candles, funding rates, exchange statistics, accounts and account limits, positions and PnL, public pools, API keys, referrals, and deposit, transfer and withdrawal history. Write operations are signed L2 transactions submitted through sendTx and sendTxBatch, covering order creation, cancellation and modification, transfers, withdrawals, public pool share mint and burn, leverage and margin updates, and account tier changes. A parallel WebSocket stream at wss://mainnet.zklighter.elliot.ai/stream delivers the same domain as real-time channels.
Documentation
Documentation
https://apidocs.lighter.xyz/docs/get-started
APIReference
https://apidocs.lighter.xyz/reference/systemconfig
Specifications
OpenAPI
https://raw.githubusercontent.com/api-evangelist/lighter/refs/heads/main/openapi/lighter-zklighter-openapi-original.json
AsyncAPI
https://raw.githubusercontent.com/api-evangelist/lighter/refs/heads/main/asyncapi/lighter-zklighter-asyncapi.yml