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

Perp market as listed, for example BTC or xyz:TSLA. Not a spot pair or an outcome.

Query Parameters

window
enum<string>
default:24h

Look-back that ends at end.

Available options:
1h,
4h,
24h,
72h,
7d
end
integer

End of the window, in epoch milliseconds on a UTC hour. Defaults to the latest completed hour.

action
enum<string>
default:all

Position action to count. entry is open or flip.

Available options:
all,
open,
add,
reduce,
close,
flip,
entry
side
enum<string>
default:all

Position side.

Available options:
all,
long,
short
liquidity
enum<string>
default:all

Only taker fills or only maker fills.

Available options:
all,
taker,
maker
group_by
enum<string>
default:none

How to split the rows: by action, by side, or by PnL or account-size cohort.

Available options:
none,
action,
side,
cohort_pnl,
cohort_size
interval
enum<string>

Time buckets, aligned to UTC. 1h works up to a 72-hour window. Without it, the whole window is one bucket.

Available options:
1h,
4h,
1d

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.