GET /api/v1/exchangeMetrics
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/exchangeMetricsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical protocol-wide time series (volume, fees, OI, TPS, active accounts, buybacks).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
period | query | strh | d | w | m | q | y | all | required | Window period. example: w |
kind | query | strvolume | maker_fee | taker_fee | liquidation_fee | trade_count | liquidation_count | liquidation_volume | inflow | outflow | transfer_fee | withdraw_fee | open_interest | account_count | active_account_count | tps | buyback | buyback_usdc | required | Metric kind. example: volume |
filter | query | str | optional | Optional filter (byMarket). |
value | query | str | optional | Filter value when filter=byMarket. |
Response
type: object
data key: metrics
pagination: none
sample: {
"code": "int",
"metrics": "array[7]"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/exchangeMetrics?period=w&kind=volume"