Active Positions

GET /active_positions

Retrieve your active positions. Requires a valid API key sent with the x-api-key header.

Responses

GET /active_positions
curl \
 -X GET https://api.everstrike.io/active_positions \
 -H "x-api-key: $API_KEY"
Response example (200)
{
  "code": 200,
  "msg": "string",
  "result": {
    "USD_BTCCALL_PERP": {
      "size": 1,
      "free": 1,
      "locked": 0,
      "realized": 0,
      "funding": 0,
      "fees": 0,
      "fills": [],
      "stats": {
        "size": 1,
        "notional": 0.14,
        "margin": 1,
        "pnl": 0,
        "upnl": 0,
        "rpnl": 0,
        "equity": 1,
        "roe": 0,
        "mark": 2.1,
        "avg_entry": 3.4,
        "leverage": 2.82,
        "lp": 3.7,
        "bankrupt": 3.78,
        "direction": "BUY"
      }
    }
  }
}
Response example (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}