// lighter · websocket

Lighter WebSocket Streaming

Live order-book, trade and account updates from Lighter, the zk rollup built for perpetual trading, over one WebSocket connection.

Lighter · websocket● live
stream families
4
transport
WS
01.WHAT'S INCLUDED// Lighter · websocket
  • Order-book snapshots and deltas per market
  • Trade prints as they are matched
  • Account, position and liquidation updates
  • One connection, many market subscriptions
  • Managed endpoint, no infrastructure to run
// factsSPEC
Interface
WebSocket
Streams
order book · trades · accounts · liquidations
Venue
Lighter - application-specific zk rollup for perps
Auth
token, provisioned per subscription
Concurrent connections
quoted per subscription
Free trial
up to 24h, no card
02.HOW IT WORKS// live delivery
// DELIVERY PATH
Lighter node
Supanode edge
WebSocket pub/sub
orderbook · trades · account events
your client
Lighter's native WebSocket pub/sub carries the live orderbook, trades, and account events on one connection. The endpoint is provisioned for you over Telegram.
03.FAQ// 4 questions
Why is there no RPC endpoint for Lighter?

Because there is nothing to talk to. Lighter is an application-specific zk rollup: its circuits prove order matching and liquidations, and it runs no general-purpose virtual machine. There are no smart contracts, so no JSON-RPC exists on any provider. The exchange surface is the interface.

What can I subscribe to?

Order-book state per market as snapshots plus deltas, trade prints as they are matched, and account-level updates covering positions, funding and liquidations. One connection carries many market subscriptions.

Should I use the stream or the indexer?

The stream for what is happening now, the indexer for what already happened. A WebSocket cannot answer a question about last month, and a warehouse cannot tell you about a fill from a second ago. Most trading setups run both.

How is Lighter streaming priced and provisioned?

It is not on sale yet - the Lighter order-book stream is in build. Tell us on Telegram which markets you need and how many connections, and we come back to you first when it opens. Billing, when it opens, is the same as everything else here: crypto-only, monthly and prepaid.

Get Lighter WebSocket Streaming.

Set up over Telegram with an engineer — endpoint, token, tuning.