Skip to main content
GET
Compute indicator values

Authorizations

x-api-key
string
header
required

Path Parameters

uid
string
required

Indicator uid, or the slug of a built-in indicator.

Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"sma"

Query Parameters

version
integer

Indicator version (major). Defaults to the latest published version of a built-in indicator; required for your own and bought indicators.

Required range: x >= 1
Example:

3

exchange
string
required

TakeProfit exchange code from /api/v1/marketdata/exchanges.

Example:

"CXBNCE"

symbol
string
required

TakeProfit security symbol from /api/v1/marketdata/exchanges/{exchange}/securities.

Example:

"BTC/USDT"

timeframe
string
required

Timeframe id from /api/v1/indicators/timeframes (count plus unit; units t, s, m, h, d, w, M, Q, y).

Example:

"5m"

from
string

Window start as Unix seconds or RFC3339 timestamp. Without it the window is measured backwards from to. Not available on tick timeframes. Unix seconds or an RFC3339 timestamp.

to
string

Window end, greater than from. Defaults to now when from is omitted. Unix seconds or an RFC3339 timestamp.

period
integer<int64>

Window duration in seconds, counted forward from from or backwards from to. Not supported for tick timeframes.

Required range: x >= 1
limit
integer

Bar count, counted forward from from or backwards from to. Defaults to 1000.

Required range: 1 <= x <= 10000
sessionType
string[]

Optional session filter. Repeat this parameter or pass comma-separated values. Defaults to all sessions.

outputs
string

Comma-separated output ids to return. Defaults to every output that has values.

Response

Computed bars.

meta
object
required
bars
object[]
required
hasMoreBefore
boolean
required

True when older bars exist within the computed history.

historyComplete
boolean
required

True when the window lies within the computed history: a computed bar precedes it, or the computed history holds everything the exchange has. False means the window starts before the oldest computed bar and the computed history is full: only the most recent 10000 bars are computed, so the window was cut there. Always true for a last-N window.