Positions
Get Position History
Partner Support
User Flows
General API
- Builder Info
- System Info
- USDC Faucet
User API
- Registration
- Key Management
- Account/User Info
- Account Notifications
- Account Config
- Delegate Signer
Trading API
- Order Management
- Liquidations
- Assets/Withdraw/Settle PnL
- Positions
- Funding
Rewards API
- Trading Rewards
- Market Making Rewards
Staking & Valor API
- Staking
- Valor
Builder API
- User Data
- Trading Campaigns
- Fee Setting
- Referral Program
Market Data API
- TradingView
- Funding Rates
- Market Info
Websocket API
- Introduction
- PING/PONG
- Authentication
- Error Response
- Public Market Data
- Private User Data
Positions
Get Position History
Limit: 10 requests per 1 second per user
GET /v1/position_history
GET
/
v1
/
position_history
curl --request GET \
--url https://api-evm.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
}
]
}
}
Headers
Response
200 - application/json
OK
curl --request GET \
--url https://api-evm.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
}
]
}
}