Trades

Trade history associated with the authenticated user. Trades are individual fills for a given order.

Get user's trade history

get

Get your trade history (fills). Results are always the authenticated user's trades. Use the order_id filter to limit results to trades for a specific order (the user's order associated with each trade, as returned in the response order_id field).

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
market_idstringOptional

Filter by market ID

instrument_idstringOptional

Filter by instrument ID

trade_idstringOptional

Filter by trade ID

order_idstringOptional

Filter by the user's order ID associated with the trade (canonical filter for "my" trades). Matches the order_id field returned on each trade.

statusstringOptional

Filter by trade status

buyer_order_idstringOptional

Filter by buyer's order ID (legacy; prefer order_id for user's trades)

seller_order_idstringOptional

Filter by seller's order ID (legacy; prefer order_id for user's trades)

triggering_order_idstringOptional

Filter by the order that triggered the trade (legacy; prefer order_id for user's trades)

start_datetimestring · date-timeOptional

Filter trades executed at or after this time (ISO8601 or Unix timestamp)

end_datetimestring · date-timeOptional

Filter trades executed at or before this time (ISO8601 or Unix timestamp)

order_bystring · enumOptional

Field to sort by

Possible values:
order_directionstring · enumOptional

Sort direction

Default: ascPossible values:
nextstringOptional

Cursor for forward pagination. Pass the next_cursor value from a previous response to fetch the next page. Mutually exclusive with prev.

prevstringOptional

Cursor for backward pagination. Pass the prev_cursor value from a previous response to fetch the previous page. Mutually exclusive with next.

limitinteger · max: 100Optional

Number of items to return per page (max: 100)

Default: 50
Responses
chevron-right
200

List of trades

application/json
get
/trading/trades
200

List of trades

Get single trade

get

Returns a single trade with metadata.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
trade_idstringRequired

Unique identifier for the trade (e.g., "trade_d7b40819-0ea6-428b-b00c-deb559206cb7")

Responses
chevron-right
200

Trade details

application/json
get
/trading/trades/{trade_id}

Last updated

Was this helpful?