lighter.raw.market_stats table contains hourly snapshots of perpetual market statistics.
Table Details
| Property | Value |
|---|---|
| Clustering Key(s) | to_date("funding_timestamp") |
Table Columns
| Column Name | Description |
|---|---|
| market_id | Market identifier |
| symbol | Market symbol (e.g., BTC, ETH) |
| index_price | Oracle/index price at snapshot time |
| mark_price | Mark price for PnL, liquidations, funding |
| last_trade_price | Last traded price at snapshot time |
| open_interest | Open interest in USD at snapshot time |
| open_interest_limit | Maximum OI allowed |
| current_funding_rate | Live funding rate at snapshot time |
| funding_rate | Last settled funding rate |
| funding_timestamp | Snapshot timestamp (hourly) |
| funding_clamp_small | Funding rate lower clamp parameter |
| funding_clamp_big | Funding rate upper clamp parameter |
| daily_base_token_volume | Rolling 24h volume in base token units |
| daily_quote_token_volume | Rolling 24h volume in quote token / USD |
| daily_price_low | Rolling 24h price low |
| daily_price_high | Rolling 24h price high |
| daily_price_change | Rolling 24h price change percentage |