GET
/
api
/
v1
/
user
/
portfolio
{
  "positions": [
    {
      "epoch": 100,
      "funding_index": 1000,
      "margin": 5000,
      "market_addr": "0x42f1ee729364e2095a2f08019a56b310ba8980288dd1c6bbbd769f19182c692c",
      "price": 50000,
      "seq": 12345,
      "sid": "pos_123",
      "size": 1000,
      "timestamp": 1640995200
    }
  ],
  "summary": {
    "total_available_balance": 17500,
    "total_balance": 25000,
    "total_margin_used": 7500,
    "total_positions": 3,
    "total_vaults": 2
  },
  "user_addr": "0x1234567890abcdef...",
  "vault_balances": [
    {
      "asset_addr": "0x9876543210fedcba...",
      "balance": 10000,
      "id": "1"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

Successfully retrieved user portfolio

The response is of type object.