GET /v1/flow/agg-delta
#GET /v1/flow/agg-deltagetAggDelta
Taker buys, sells and delta per bar, every exchange summed
| Scope | analytics:read |
|---|---|
| Lowest tier | sandbox |
| Weight (units) | 1; 2 over 1,000 bars; 10 over 30 days |
| History each tier may read | Sandbox: 7 days; Starter: 30 days; Elite (included): 30 days; Developer: 90 days; Business: 90 days |
| SDK | Python client.flow.agg_delta ยท JavaScript cd.flow.aggDelta |
Parameters
| Parameter | In | Type | Description |
|---|---|---|---|
coin required | query | string | Coin ticker, upper case (BTC). |
market | query | "split" | "perp" | "spot" | "all" | Which markets to sum. |
res | query | string | Resolution of the series (5, 15, 30, 60, 240, 1D). |
from | query | string | Start, inclusive: unix seconds or RFC 3339. |
to | query | string | End, exclusive: unix seconds or RFC 3339. Default now. |
Errors
400invalid_param, invalid_cursor401unauthorized: missing, unknown, revoked or expired key403insufficient_scope, tier_required404not_found, not_available, not_in_sandbox422window_too_large429rate_limited (per minute) or quota_exhausted (month; X-Quota-* headers, Retry-After = seconds to the next month); see Retry-After503api_disabled, overloaded
Example
curl "https://api.chartdeck.trade/v1/flow/agg-delta?coin=BTC" \
-H "Authorization: Bearer $CHARTDECK_API_KEY"from chartdeck import Client
client = Client() # reads CHARTDECK_API_KEY
r = client.flow.agg_delta(coin="BTC")
print(r.data, r.meta["attribution"])import { ChartDeck } from '@chartdeck/api';
const cd = new ChartDeck(); // reads CHARTDECK_API_KEY
const r = await cd.flow.aggDelta({ coin: "BTC" });
console.log(r.data, r.meta.attribution);