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,
"timestamp": 1702989203989,
"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
}
]
}
}
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,
"timestamp": 1702989203989,
"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
}
]
}
}
OK
The response is of type object
.