Get open positions
GET/v1/positions
Get current open positions across all or single exchange.
Request
Query Parameters
Filter the balances to the specific exchange.
Responses
- 200
- 490
Collection of positons.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Exchange identifier used to identify the routing destination.
data
object[]
Exchange symbol.
CoinAPI symbol.
Calculated average price of all fills on this position.
The current position quantity.
Possible values: [BUY
, SELL
]
Side of order.
Unrealised profit or loss (PNL) of this position.
Leverage for this position reported by the exchange.
Is cross margin mode enable for this position?
Liquidation price. If mark price will reach this value, the position will be liquidated.
[
{
"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."
}
]
}
]
Exchange is unreachable.
- appliction/json
- Schema
- Example (from schema)
Schema
Message type, constant.
Possible values: [OTHER
, EXCHANGE_UNREACHABLE
, EXCHANGE_RESPONSE_TIMEOUT
, ORDER_ID_NOT_FOUND
, INVALID_TYPE
, METHOD_NOT_SUPPORTED
, JSON_ERROR
]
Cause of rejection.
If the message related to exchange, then the identifier of the exchange will be provided.
Message text.
Value of rejected request, if available.
{
"type": "MESSAGE_REJECT",
"reject_reason": "ORDER_ID_NOT_FOUND",
"exchange_id": "BINANCE",
"message": "Order with ID: BINANCE-7d8a-4888 not found",
"rejected_message": "{\"client_order_id\":\"BINANCE-7d8a-4888\",\"exchange_id\":\"BINANCE\",\"type\":\"ORDER_CANCEL_SINGLE_REQUEST\"}"
}