curl --request GET \
--url https://api.orderly.org/v1/position_history \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>'{
"success": true,
"data": {
"rows": [
{
"position_id": 1,
"status": "closed",
"type": "liquidated",
"symbol": "PERP_ETH_USDC",
"avg_open_price": 61016.1,
"avg_close_price": 61016.1,
"max_position_qty": 56.6,
"closed_position_qty": 56.6,
"side": "LONG",
"trading_fee": 0.015,
"accumulated_funding_fee": 0.11,
"insurance_fund_fee": 0,
"liquidator_fee": 0,
"liquidation_id": null,
"realized_pnl": -9.09691927314905,
"open_timestamp": 1685429350571,
"close_timestamp": 1685429350571,
"last_update_timestamp": 1685429350571,
"leverage": 10
}
]
},
"timestamp": 1702989203989
}Limit: 10 requests per 1 second per user
GET /v1/position_history
curl --request GET \
--url https://api.orderly.org/v1/position_history \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>'{
"success": true,
"data": {
"rows": [
{
"position_id": 1,
"status": "closed",
"type": "liquidated",
"symbol": "PERP_ETH_USDC",
"avg_open_price": 61016.1,
"avg_close_price": 61016.1,
"max_position_qty": 56.6,
"closed_position_qty": 56.6,
"side": "LONG",
"trading_fee": 0.015,
"accumulated_funding_fee": 0.11,
"insurance_fund_fee": 0,
"liquidator_fee": 0,
"liquidation_id": null,
"realized_pnl": -9.09691927314905,
"open_timestamp": 1685429350571,
"close_timestamp": 1685429350571,
"last_update_timestamp": 1685429350571,
"leverage": 10
}
]
},
"timestamp": 1702989203989
}OK
true
Show child attributes
Show child attributes
1
"closed"
"liquidated"
"PERP_ETH_USDC"
61016.1
61016.1
56.6
56.6
"LONG"
0.015
0.11
0
0
null
-9.09691927314905
1685429350571
1685429350571
1685429350571
10
1702989203989