Positions
Get open positions GET
Code samples
curl --request GET \
--url https://ems-gateway-aws-eu-central-1-dev.coinapi.io/v1/positions \
--header 'Accept: application/json'
GET /v1/positions
Get current open positions across all or single exchange.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
exchange_id | query | string | false | Filter the balances to the specific exchange. |
Example responses
200 Response
[
{
"exchange_id": "KRAKEN",
"data": [
{
"symbol_id_exchange": "XBTUSD",
"symbol_id_coinapi": "BITMEX_PERP_BTC_USD",
"avg_entry_price": 0.00134444,
"quantity": 7,
"side": "BUY",
"unrealized_pnl": 0,
"leverage": 0,
"cross_margin": true,
"liquidation_price": 0.072323,
"raw_data": "Other information provided by the exchange on this position."
}
]
}
]
490 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK (opens in a new tab) | Collection of positons. | Positions |
490 | Not Applicable | Exchange is unreachable. | MessageReject |
Was this section helpful?