GET
/api/v1/etf/{asset}/cumulativeHobbyist tier+ · 30 req/minCumulative running-sum flow time series for the asset.
The 'up and to the right' curve — each point is the running total of daily net flow at end-of-day. Good for plotting AUM accumulation against price.
Path parameters
Segments of the URL path, validated server-side.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| asset | enum | required | — | bitcoin | ethereum | btc | eth bitcoinethereumbtceth |
Query parameters
All query parameters are optional unless marked required.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| days | number | optional | 365 | Trailing window. Max 365. |
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: "BTC" | "ETH";
days: number;
points: Array<{ date: string; cumulativeUsdM: number }>; // oldest → newest
}Example
Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.
Requestbash
curl -sS "http://localhost:3000/api/v1/etf/btc/cumulative?days=180" \
-H "Authorization: Bearer cg_live_YOUR_KEY"Responsejson
{
"data": {
"asset": "BTC",
"days": 180,
"points": [
{ "date": "2025-10-19", "cumulativeUsdM": 38000.0 },
{ "date": "2025-10-20", "cumulativeUsdM": 38112.4 },
{ "date": "2025-10-21", "cumulativeUsdM": 38200.5 }
]
},
"meta": { "total": 3, "days": 180, "asset": "BTC" }
}Notes
- Cumulative is windowed — it's the running sum WITHIN the requested window, not lifetime AUM. Use `/aum` for lifetime.
Next
Check the error code reference, or get an API key to try the request against your own account.