For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Position History

Get Position History

Returns historical position records for the authenticated account.

Endpoint

GET /v1/position_history

Mainnet: GET https://api.orderly.org/v1/position_history Testnet: GET https://testnet-api.orderly.org/v1/position_history

Rate limit: 10 requests per second.

Headers

  • orderly-timestamp (string, required): Signed request timestamp in milliseconds.

  • orderly-account-id (string, required): Authenticated account ID.

  • orderly-key (string, required): Public key used to sign the request.

  • orderly-signature (string, required): Signature of the request payload.

Query parameters

  • symbol (string): Optional symbol filter.

  • limit (number, required): Maximum number of history records to return.

Response

HTTP 200 returns success, required data, and server timestamp. data.rows is an array. Each row can include position_id (number), status and type (strings), symbol (string), numeric avg_open_price, avg_close_price, max_position_qty, closed_position_qty, trading_fee, accumulated_funding_fee, insurance_fund_fee, liquidator_fee, liquidation_id (number or null), and realized_pnl; side is a string; open_timestamp, close_timestamp, and last_update_timestamp are numbers; leverage is an integer; and margin_mode is CROSS or ISOLATED.

Last updated