exchangeMetrics
Get exchange metrics. When filtering by market, use the market symbol as a value.
get/api/v1/exchangeMetrics
Query parameters
periodstring · enumRequiredPossible values:
For tps: h, d or w. For buyback/buyback_usdc and all other kinds: w, m, q, y or all. Allowed values: h, d, w, m, q, y, all.
kindstring · enumRequiredPossible values:
Metric to retrieve; period availability depends on this value.
filterstring · enumOptionalPossible values:
Use byMarket to select one market for trade-related metrics; omit for exchange totals. Allowed values: byMarket.
valuestringOptional
Market symbol when filter=byMarket, for example ETH.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
400
Bad request
application/json
get/api/v1/exchangeMetrics
GET /api/v1/exchangeMetrics?period=h&kind=volume HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
"code": 200,
"message": "text",
"metrics": [
{
"timestamp": 1640995200,
"data": 93566.25
}
]
}Last updated
Was this helpful?