v1
latestOpenAPI 3.0.02026-07-26166415635.8 KBTrading
Get an Open Position for account by Symbol or AssetId
Retrieves the account's open position for the given symbol or asset_id.
get/v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}
Response
The requested Position object
Example response
{
"asset_id": "904837e3-3b76-47ec-b432-046db621571b",
"avg_entry_price": "100.0",
"avg_entry_swap_rate": "1.40",
"change_today": "0.0084",
"cost_basis": "500.0",
"current_price": "120.0",
"exchange": "NASDAQ",
"lastday_price": "119.0",
"market_value": "600.0",
"qty": "5",
"qty_available": "5",
"side": "long",
"swap_rate": "1.50",
"symbol": "AAPL",
"unrealized_intraday_pl": "10.0",
"unrealized_intraday_plpc": "0.0084",
"unrealized_pl": "100.0",
"unrealized_plpc": "0.20",
"usd": {
"avg_entry_price": "71.43",
"change_today": "0.67",
"cost_basis": "333.33",
"current_price": "80.0",
"lastday_price": "79.33",
"market_value": "400.00",
"unrealized_intraday_pl": "6.67",
"unrealized_intraday_plpc": "0.0084",
"unrealized_pl": "66.67",
"unrealized_plpc": "0.2"
}
}