LIGHTER.XYZ · ZK PERP DEX · ORDER-BOOK FIREHOSE · sub-100ms

Lighter.xyz API streaming the order-book firehose

Lighter is a zero-knowledge order-book perp DEX. Bitquery streams every fill, order placement, funding settlement and liquidation across BTC, ETH and SOL perps — over WebSocket and GraphQL (fixed-cost Kafka on Enterprise). Subscribe to the live tape or query history (live window on self-service; archive add-ons or Enterprise for deep backfills), with no node to run.

9.4K/min
fills streamed live
40+
perp markets covered
120K+
order events / minute
<100ms
place-to-socket latency
Lighter.OrderBookLIVElighter-perps · d-stream
SeqEventMarket · sidePrice / size
200 · WebSocket · 38msstreaming.bitquery.io
Trusted by 40,000+ developers & teams like
Binance logoChainalysis logoTRM Labs logoNansen logo0x logoCoinMarketCap logoCoin Metrics logoBybit logoLukka logo3Commas logoNexo logoTether logo
40+
Chains supported
1PB+
Blockchain data indexed
10B+
API calls / month
99.9%
Production uptime
01
Delivery channels

Pick your latency. Same Lighter data underneath.

The WebSocket d-stream is the fastest feed we ship for Lighter — fills and order events the instant they settle. Step down to GraphQL or Datashares when history or bulk volume matters; fixed-cost Kafka and deep archive are Enterprise.

FastestWebSocket · d-stream
<100ms

GraphQL subscriptions over the Lighter order-book firehose — fills, placements and liquidations the instant they settle.

Best for: market-making, HFT
Kafka
<400ms

Enterprise fixed-cost topics with offset replay — never miss a fill, backfill cleanly on reconnect.

Best for: pipelines, durability (Enterprise)
GraphQL
query

The same schema for historical reads — backtest funding, OI and liquidations from day one.

Best for: history, backtests
Datashares
bulk

Full Lighter trade and order history delivered to your warehouse — Snowflake, BigQuery, S3.

Best for: quant, research
02
What we decode

The whole Lighter order book, in one stream.

One subscription spans the entire Lighter perp DEX — trades, order book, funding, liquidations, positions and open interest — filterable by market, side or wallet.

DataVenueWhat streams
TrTrades & fillsLighterEvery matched fill with long/short side, price, size and the taker/maker wallets
ObOrder bookLighterLive place, modify and cancel events across every perp market's bids and asks
FnFundingLighterFunding-rate settlements per market, the index it tracks and each trader's payment
LqLiquidationsLighterForced-close events with side, notional, liquidation price and the affected account
PsPositionsLighterPosition opens, increases, reductions and PnL realisation per wallet and market
OiOpen interestLighterAggregated open interest per market, updated as positions move in real time
+ ZK proof events, L2 settlement batches & every market we add
03
Forget polling the Lighter node

Running your own Lighter feed is a second full-time job.

Polling the Lighter API means rate limits, reconnect handling and stitching the order book back together yourself. Bitquery hands you decoded events on one stream.

What you're doing
Polling the Lighter node
Bitquery stream
Read fills in real time
Poll + dedupe REST pages
Subscribe to a WebSocket stream
Reconstruct the order book
Replay every place / cancel
Decoded order events, typed
Lowest latency
Fight rate limits
Sub-100ms, managed
Never miss a fill
Handle reconnects yourself
Kafka offset replay (Enterprise)
Backtest funding & OI
Scrape and store history
Same schema, day-one → now
04
Build it real-time

What teams ship on Lighter streams.

Every one is a filter on the same firehose — subscribe over WebSocket and react in milliseconds.

WebSocket

Market-making feed

Stream every fill and order-book update across BTC, ETH and SOL perps to quote tighter and manage inventory with sub-100ms reaction time.

Read the docs
WebSocket

Liquidation tracker

Catch forced-close events the instant they settle — side, notional and liquidation price — to front-run cascades or feed a risk dashboard.

Read the docs
Kafka

Order-flow analytics

Pipe fills, placements and funding into your warehouse with offset replay for live dashboards and trader analytics that never drop an event.

Read the docs

What teams say about our data

"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."

A
Alexander Karsten
Nansen
<100ms
place-to-socket stream latency
40+
Lighter perp markets covered
Order-book
Fills, funding & liquidations

Bitquery does the hard work of parsing blockchain transaction data into a usable form so that we don't have to. We use their interface to diagnose issues with complex transactions and their analytics as a starting point for our own.

0x Protocol logo
Alex Knaggs
0x Protocol

They proved they had the technology to deliver sophisticated data solutions. We extended our support through the Binance X fellowship — building an open-source library of visualization widgets on their blockchain data.

Director, Binance X logo
Flora Sun
Director, Binance X

The complex raw data is available at different levels of detail and from different viewpoints — whether we need simple aggregated transfers or parameters for failed contract calls. The support is responsive, friendly and quick.

Backend Developer, Blockpit logo
Jan Dreske
Backend Developer, Blockpit

Partnering with Bitquery has been highly cost-effective — leveraging their established infrastructure rather than building our own let us rapidly expand our blockchain support and reach a much broader segment of on-chain users.

Co-Founder, Syla logo
Nick Christie
Co-Founder, Syla

Bitquery's products are very intuitive and easy to use. We currently use their products to obtain DEX-related trading and liquidity information, which saves us the manpower and tedious technical details required to develop our own system. Their excellent technical team deserves special praise; they provide near-24/7 support and resolve issues quickly. I greatly appreciate their products and work ethic.

Ourbit logo
Data Team
Ourbit

Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.

Webacy
Webacy
webacy.com

Pricing

Start free. Scale when you ship.

Self-service plans cover 9 core chains with flat-rate add-ons — no surprise invoices. Every paid plan starts with a 7-day free trial.

Personal

For side projects, learning & testing. Personal use only — no commercial use.

$39/ month

billed annually ($468/yr) · save 20%

+ Add-on points anytime · $40 / 1M
  • 100k API points / mo ≈ 20k calls
  • 30 req/min · 3 simultaneous
  • Full GraphQL & REST schema
  • Real-time data · 9 core chains 30-day trades · 4–8h on-chain
  • API only — no streams
  • Community support
Start free trial

Pro

For trading bots, alerts & dashboards on live DEX and price data.

$79/ month

billed annually ($948/yr) · save 20%

+ Flat-rate add-ons — points, minutes & GB
  • 1M API points / mo ≈ 200k calls
  • 90 req/min · 6 simultaneous
  • 100k stream-minutes + 5 GB
  • 100 concurrent streams
  • Trading-data streams live DEX & prices
  • Commercial-use license
  • Real-time data · 9 core chains 30-day trades · 4–8h on-chain
  • Community + Telegram support
Start free trial
Most popular

Scale

For production real-time apps — every stream, scale on demand.

$239/ month

billed annually ($2,868/yr) · save 20%

+ Flat-rate add-ons — points, minutes & GB
  • 5M API points / mo ≈ 1M calls
  • 240 req/min · 12 simultaneous
  • 2M stream-minutes + 50 GB
  • 1,000 concurrent streams
  • All streams onchain + mempool
  • Commercial-use license
  • Dedicated Slack support
Choose Scale →

Enterprise

Full history, unlimited streams & bulk delivery at scale.

Custom

flat platform fee — no metering

◆ Flat platform fee — modelled, not metered
  • Complete history · 40+ chains
  • Unlimited WebSocket streaming no stream-min or GB limit
  • Custom points & rate limits
  • Kafka fixed-cost · S3 bulk export
  • Coinpath® money flow
  • SLA · SSO · dedicated support
Talk to sales

Flat-rate add-ons on every open plan: $40 / 1M points · $20 / 100k stream-minutes · $8 / GB (bought yearly · save 20%) — same price at any volume, billed only for what you add.

Historical data is sold separately: self-service plans are real-time only. Per-chain archive packs start at $100/mo ($70/mo billed yearly); transfers, balances & holders are $150/mo ($120/mo yearly). See historical add-ons →

FAQ

Lighter.xyz data, answered.

What is the Lighter.xyz API?
It is Bitquery's feed for Lighter, a zero-knowledge order-book perp DEX. We decode every fill, order placement, funding settlement and liquidation and deliver them live over WebSocket, Kafka and GraphQL — no Lighter node to run.
How low is the latency?
The WebSocket d-stream targets sub-100ms from order to your socket, so market-makers and HFT teams react to fills and liquidations as they settle.
Which markets and data are covered?
All Lighter perp markets — BTC, ETH, SOL and 40+ more — with trades and fills, the full order book, funding rates, liquidations, positions and open interest, plus ZK proof events and L2 settlement batches.
Can I backtest funding and open interest?
Yes. The GraphQL schema exposes the same Lighter data historically, so you can backtest funding, OI and liquidations from day one. Use Datashares for bulk delivery to your warehouse.
Do I need to run a node or poll the Lighter API?
No. Bitquery is fully hosted — there is no node to operate and no REST pagination to dedupe. You connect with an API key and subscribe to exactly the markets and events you need.
How do I get started?
Grab a free API key at account.bitquery.io, then connect to streaming.bitquery.io with a GraphQL subscription from the docs.

Stream Lighter.xyz in milliseconds.

7-day free trial — every market decoded, no node to run. Subscribe to the order-book firehose and react to the next fill.

7-day free trial · Plans from $49/mo · WebSocket · GraphQL · Kafka on Enterprise