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
ParameterInTypeRequiredDescription
exchange_idquerystringfalseFilter 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

StatusMeaningDescriptionSchema
200OK (opens in a new tab)Collection of positons.Positions
490Not ApplicableExchange is unreachable.MessageReject

Copyright 2022 COINAPI LTD or its affiliates. All rights reserved.
StatusPage: