GET
/api/v1/on-chain/{asset}/metrics/listHobbyist tier+ · 30 req/minDirectory of metrics ingested for this asset — for populating chart dropdowns.
A thin wrapper over `/api/v1/on-chain/{asset}` summary mode that trades the latest VALUE for a minimal directory-style response. Clients use it to build 'what can I chart for this asset?' dropdowns without pulling every metric's current reading. Empty array is a valid 200 for assets we haven't ingested yet.
Path parameters
Segments of the URL path, validated server-side.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| asset | string | required | — | Short alphabetic asset code. |
Query parameters
This endpoint takes no query parameters.
Response shape
Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.
data payloadtypescript
// Wrapped in the standard envelope:
// {
// data: /* shape below */,
// meta?: { total?: number; limit?: number; offset?: number; ... }
// }
{
asset: string;
metrics: Array<{ metricName: string; latestTs: number; source: string | null }>;
}Example
Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.
Requestbash
curl -sS "http://localhost:3000/api/v1/on-chain/BTC/metrics/list"Responsejson
{
"data": {
"asset": "BTC",
"metrics": [
{ "metricName": "CapMrktCurUSD", "latestTs": 1744761600000, "source": "coinmetrics" },
{ "metricName": "AdrActCnt", "latestTs": 1744761600000, "source": "coinmetrics" }
]
},
"meta": { "total": 2 }
}Next
Check the error code reference, or get an API key to try the request against your own account.