// lighter · indexer

Lighter Historical Data Indexer

Lighter trading history - fills, orders, liquidations and funding - in a SQL-queryable ClickHouse warehouse rather than a daily file dump.

Lighter · indexer● live
history from
2025
access
SQL
01.WHAT'S INCLUDED// Lighter · indexer
  • Direct ClickHouse SQL over the trading history
  • Fills with price, size, side and fee
  • Order lifecycle and liquidation events
  • Funding payments per position
  • Custom REST endpoints, quoted per scope
// factsSPEC
History since
2025-01-17 (mainnet genesis)
Coverage
fills · orders · liquidations · funding
Refresh
continuous updates
Interfaces
ClickHouse SQL + custom REST
Database name
lighter
Free trial
up to 24h, no card
02.HOW IT WORKS// query it like a database
query.sqlclickhouse · lighter
1SELECT account_index, sum(size) AS vol
2FROM lighter.fills
3WHERE timestamp > now() - INTERVAL 1 HOUR
4GROUP BY account_index
5ORDER BY vol DESC LIMIT 20
→ 200 OK · 82ms · joins, CTEs, window fns
// HOW TO QUERY
Connect with any ClickHouse client — DBeaver, DataGrip, psql, or the Python client — against the lighter database, then write SQL with joins, CTEs, and window functions.
// INTERFACES
Direct ClickHouse SQL, or a custom REST endpoint shaped to a recurring query (quoted per scope).
03.FAQ// 4 questions
Lighter publishes its own history export. Why use this?

Their export is a file, ours is a database. Lighter regenerates a global historical-trades archive once a day and hands back a presigned download after a one-time on-chain payment. That is fine for a one-off pull and awkward as a foundation: you rebuild your own storage, your own schema and your own refresh loop. Here you connect a SQL client and query.

How far back does it go?

To 17 January 2025, the Lighter mainnet genesis, and forward continuously from there. Anything that reads as all-time on Lighter is measured from that date.

What can I build with it?

Execution-quality and slippage studies, funding-rate research, liquidation post-mortems, market-maker and taker flow analysis, and leaderboard or PnL analytics. Because it is plain SQL, the same warehouse backs notebooks, BI tools and production services.

How is the Lighter indexer priced and provisioned?

It is not on sale yet - the Lighter indexer is in build. Tell us on Telegram which tables you need and roughly how you will query them: that is what decides what gets decoded first. Billing, when it opens, is the same as everything else here: crypto-only, monthly and prepaid.

Get Lighter Historical Data Indexer.

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