Skip to content

List positions

GET
/accounts/{address}/subaccounts/{subaccount_id}/positions

Parameters

Path Parameters

address*

Owner address (20-byte Ethereum-style, 0x-hex).

Required
subaccount_id*
Type
integer
Required
Format
"uint16"
Minimum
0
Maximum
65535

Responses

Open perpetual positions.

application/json
JSON
[
  
{
  
  
"market_id": 0,
  
  
"symbol": "string",
  
  
"side": "string",
  
  
"size": "1000000",
  
  
"entry_price": "1000000",
  
  
"margin_mode": "string",
  
  
"leverage": 0,
  
  
"liquidation_price": "string",
  
  
"position_value": "1000000",
  
  
"unrealized_pnl": "-12500",
  
  
"realized_pnl": "-12500",
  
  
"return_on_equity_bps": 0,
  
  
"margin_used": "-12500",
  
  
"isolated_margin": "-12500",
  
  
"total_fees_paid": "-12500",
  
  
"total_funding_paid": "-12500"
  
}
]

Playground

Variables
Key
Value

Samples

Powered by VitePress OpenAPI