Skip to main content
GET
/
api
/
v2
/
portfolio
Get unified portfolio
curl --request GET \
  --url https://api.quantdesk.app/api/v2/portfolio \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "balances": [
      {
        "asset": "USDC",
        "amount": 5000
      }
    ],
    "positions": [
      {
        "market": "SOL-PERP",
        "side": "long",
        "size": 12.5,
        "entry_price": 160.1,
        "current_price": 168.42,
        "unrealized_pnl": 104,
        "leverage": 5
      }
    ],
    "orders": [
      {
        "id": "ord_1a2b3c",
        "market": "SOL-PERP",
        "side": "buy",
        "type": "limit",
        "price": 165,
        "size": 10,
        "status": "open"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer JWT obtained from the wallet session flow. See the Authentication guide.

Response

Unified portfolio

success
boolean
Example:

true

data
object