Skip to main content
POST
private/get_block_trades

Authorizations

X-DeriveWallet
string
header
required

The wallet the request acts for.

X-DeriveTimestamp
string
header
required

The current time in milliseconds, as a decimal string.

X-DeriveSignature
string
header
required

EIP-191 signature of the timestamp, by the wallet or one of its session keys.

Body

application/json
direction
enum<string> | null

Returns the blocks in which any of the caller's trades has this direction.

Available options:
buy,
sell
from_timestamp
integer<int64> | null
instrument_name
string | null

Returns the blocks with a trade in this instrument.

page
integer<uint32> | null
Required range: x >= 0
page_size
integer<uint32> | null
Required range: x >= 0
subaccount_id
integer<int64> | null
to_timestamp
integer<int64> | null
wallet
string | null

Response

Success

block_trades
object[]
required
pagination
object
required

Response envelope for paginated RPCs.