Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

Your API key, sent as Bearer hdk_sk_live_v1_….

Path Parameters

coin
string
required

Market, for example BTC, xyz:TSLA or #232960, which is an outcome side. URL-encode # as %23.

Query Parameters

interval
enum<string>
default:1m

1m is the exact archive, at most 7 days per call. 1s, 15s and 30s cover about the last 23 hours, at most 1 day per call. 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w and 1M have a range of at most 7, 30 or 365 days, depending on bar size.

Available options:
1s,
15s,
30s,
1m,
3m,
5m,
15m,
30m,
1h,
2h,
4h,
8h,
12h,
1d,
3d,
1w,
1M
limit
integer
default:1000

Rows per page.

Required range: 1 <= x <= 5000
start_time
integer

Start time in epoch milliseconds, inclusive. Defaults to 24 hours before end_time.

end_time
integer

End time in epoch milliseconds. Defaults to now.

cursor
string

Opaque cursor from next_cursor. It replaces the range.

Response

OK

data
object[]
required

Result rows.

has_more
boolean
required

true when another page follows.

next_cursor
string | null
required

Cursor for the next page, passed as cursor. null on the last page.

meta
object
required

Response metadata. Its keys depend on the endpoint and are described above.