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 free

Historical protocol-wide time series (volume, fees, OI, TPS, active accounts, buybacks).

Parameters

nameintypedescription
periodquerystr
h | d | w | m | q | y | all
requiredWindow period.
example: w
kindquerystr
volume | 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
requiredMetric kind.
example: volume
filterquerystroptionalOptional filter (byMarket).
valuequerystroptionalFilter 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"