Historical Data
Users can fetch historical data using various REST endpoints, mainly:
Several of these are heavy (see the weights in Rate Limits), so paginate and cache the results.
Alternatively, you can use export to obtain CSVs of trades or funding payments for a specific account index. Supply both start_timestamp and end_timestamp (Unix milliseconds), or omit both for the available history. Large exports may require a smaller date range; see Export account data.
Free Public Dataset (AWS Open Data)
For bulk historical trades and hourly open interest, use the free public dataset on the AWS Open Data Registry. It is part of the AWS Public Blockchain Data dataset and can be downloaded without an AWS account, credentials or payment.
Files are in Parquet format, with one file per UTC day for each dataset. Data starts at mainnet genesis (January 17, 2025), and new daily files are published each day. Open interest is sampled hourly within each daily file.
Trades
s3://aws-public-blockchain/v1.1/lighter/core/mainnet/trades/date=YYYY-MM-DD/trades.parquet
Hourly open interest
s3://aws-public-blockchain/v1.1/lighter/core/mainnet/open_interest_hourly/date=YYYY-MM-DD/oi.parquet
Use --no-sign-request with the AWS CLI to access the public bucket anonymously.
The legacy export/historicalTrades endpoint is a separate access route with its own access requirements, documented in the API reference. It is not needed to download the free public dataset above; no transfer or payment is required for public-bucket access.
Migrating from the previous bucket
Update your scripts to use the public bucket and the full network-specific prefix shown above. The dataset folder names have changed:
trade-daily/
trades/
open-interest-hourly/
open_interest_hourly/
Replace --request-payer requester with --no-sign-request. Daily partition and file names remain date=YYYY-MM-DD/trades.parquet and date=YYYY-MM-DD/oi.parquet.
Aggregated trades
Use Aggregated trades to retrieve fills grouped by order, trade type and maker/taker role on Lighter mainnet. The endpoint supports optional start_timestamp / end_timestamp filters in milliseconds and up to 1,000 orders per page (default 100). The start is inclusive and the end is exclusive; both apply to the stored order aggregate's last fill time.
Historical Trade Events
The public dataset contains global trade events. List available dates or download a daily file for Lighter Core:
Hourly Open Interest
Hourly open interest for every perpetual market is available under open_interest_hourly/, as one Parquet file per UTC day. Each row is the end-of-hour snapshot of one market:
hour
timestamp (UTC)
Start of the hour
symbol
string
Market symbol, e.g. BTC
open_interest
double
Open interest in the base asset
mark_price
double
Mark price at the snapshot
open_interest_usd
double
open_interest * mark_price
List available dates or download a daily file for Lighter Core:
Users can fetch historical data using various REST endpoints, mainly:
Alternatively, you can use export to obtain CSVs of trades or funding payments for a specific account index. Supply both start_timestamp and end_timestamp (Unix milliseconds), or omit both for the available history. Large exports may require a smaller date range; see Export account data.
Free Public Dataset (AWS Open Data)
For bulk historical trades and hourly open interest, use the free public dataset on the AWS Open Data Registry. It is part of the AWS Public Blockchain Data dataset and can be downloaded without an AWS account, credentials or payment.
Files are in Parquet format, with one file per UTC day for each dataset. Data starts at mainnet genesis (June 26, 2026), and new daily files are published each day. Open interest is sampled hourly within each daily file.
Trades
s3://aws-public-blockchain/v1.1/lighter/robinhood/mainnet/trades/date=YYYY-MM-DD/trades.parquet
Hourly open interest
s3://aws-public-blockchain/v1.1/lighter/robinhood/mainnet/open_interest_hourly/date=YYYY-MM-DD/oi.parquet
Use --no-sign-request with the AWS CLI to access the public bucket anonymously.
The legacy export/historicalTrades endpoint is a separate access route with its own access requirements, documented in the API reference. It is not needed to download the free public dataset above; no transfer or payment is required for public-bucket access.
Migrating from the previous bucket
Update your scripts to use the public bucket and the full network-specific prefix shown above. The dataset folder names have changed:
trade-daily/
trades/
open-interest-hourly/
open_interest_hourly/
Replace --request-payer requester with --no-sign-request. Daily partition and file names remain date=YYYY-MM-DD/trades.parquet and date=YYYY-MM-DD/oi.parquet.
Historical Trade Events
The public dataset contains global trade events. List available dates or download a daily file for Lighter on Robinhood Chain:
Hourly Open Interest
Hourly open interest for every perpetual market is available under open_interest_hourly/, as one Parquet file per UTC day. Each row is the end-of-hour snapshot of one market:
hour
timestamp (UTC)
Start of the hour
symbol
string
Market symbol, e.g. BTC
open_interest
double
Open interest in the base asset
mark_price
double
Mark price at the snapshot
open_interest_usd
double
open_interest * mark_price
List available dates or download a daily file for Lighter on Robinhood Chain:
Last updated
Was this helpful?