Skip to main content
The lighter.assets.perpetual_market_stats_latest table provides the most recent snapshot for each market. One row per market.

Table Details

PropertyValue
Clustering Key(s)to_date("funding_timestamp") (base table)

Table Columns

Market Information

Column NameDescription
market_idMarket identifier
funding_timestampFunding timestamp of the latest snapshot
symbolMarket symbol (e.g., BTC, ETH)
market_type’perp’ or ‘spot’
base_symbolBase asset symbol
quote_symbolQuote asset symbol
collateral_symbolCollateral asset symbol. NULL for spots
base_l1_addressL1 contract address of the base asset. NULL for perpetuals

Prices

Column NameDescription
index_priceLatest oracle/index price
mark_priceLatest mark price
last_trade_priceLatest traded price

Open Interest & Funding

Column NameDescription
open_interestCurrent open interest in USD
current_funding_rateCurrent live funding rate estimate
funding_rateLast settled funding rate

Rolling 24h Metrics

Column NameDescription
daily_base_token_volumeRolling 24h volume in base units
daily_quote_token_volumeRolling 24h volume in quote/USD
daily_price_lowRolling 24h price low
daily_price_highRolling 24h price high
daily_price_changeRolling 24h price change percentage

Metadata

Column NameDescription
_updated_atRow last-updated timestamp

Sample Query

SELECT
    symbol,
    mark_price,
    open_interest,
    current_funding_rate,
    daily_quote_token_volume
FROM lighter.assets.perpetual_market_stats_latest
ORDER BY open_interest DESC