Skip to content
ChartDeck Developer API docs Account Get an API key

GET /v1/flow/oi-build

#GET /v1/flow/oi-buildgetOiBuild

Open interest build regimes per bar (longs / shorts opening or closing)

Scopeanalytics:read
Lowest tiersandbox
Weight (units)2; 10 over 30 days
History each tier may readSandbox: 7 days; Starter: 30 days; Elite (included): 30 days; Developer: 180 days; Business: 365 days
SDKPython client.flow.oi_build ยท JavaScript cd.flow.oiBuild

Parameters

ParameterInTypeDescription
venue requiredquerystringVenue id (see /v1/venues), lower case.
symbol requiredquerystringThe venue's symbol (BTCUSDT; see /v1/markets).
resquerystringResolution of the series (5, 15, 30, 60, 240, 1D).
fromquerystringStart, inclusive: unix seconds or RFC 3339.
toquerystringEnd, exclusive: unix seconds or RFC 3339. Default now.
nqueryintegerSmoothing bars.
epsquerynumberDead band.
srcquery"venue" | "all"One venue or every venue of the coin.
coinquerystringWith src=all.

Errors

  • 400 invalid_param, invalid_cursor
  • 401 unauthorized: missing, unknown, revoked or expired key
  • 403 insufficient_scope, tier_required
  • 404 not_found, not_available, not_in_sandbox
  • 422 window_too_large
  • 429 rate_limited (per minute) or quota_exhausted (month; X-Quota-* headers, Retry-After = seconds to the next month); see Retry-After
  • 503 api_disabled, overloaded

Example

Shell
curl "https://api.chartdeck.trade/v1/flow/oi-build?venue=binance&symbol=BTCUSDT" \
  -H "Authorization: Bearer $CHARTDECK_API_KEY"
Python
from chartdeck import Client

client = Client()  # reads CHARTDECK_API_KEY
r = client.flow.oi_build(venue="binance", symbol="BTCUSDT")
print(r.data, r.meta["attribution"])
JavaScript
import { ChartDeck } from '@chartdeck/api';

const cd = new ChartDeck();  // reads CHARTDECK_API_KEY
const r = await cd.flow.oiBuild({ venue: "binance", symbol: "BTCUSDT" });
console.log(r.data, r.meta.attribution);

The Developer API documentation is in English.