Developer Portal

My AccountsGET

Lists all trading accounts (portfolios) owned by the authenticated client profile, with the account_id required by every other account-scoped operation. Each entry carries balance, credit, unrealized PnL, used margin, currency, trade status, demo flag and margin-call/stop-out flags, but excludes positions and orders. Start here when no account id is known. Returns an empty accounts array if the profile owns none.

View as Markdown
GET
/profiles/me/accounts

Authorization

AuthorizationRequiredBearer <token>

JWT token obtained from the login endpoint

In: header

curl -X GET "http://localhost:8081/api/v1/profiles/me/accounts" \
  -H "Authorization: Bearer <token>"

Accounts retrieved successfully

{
  "accounts": [
    {
      "account_id": "10034",
      "currency": "EUR",
      "balance": 9900.8,
      "credit": 500,
      "unrealized_pnl": 9093.48,
      "used_margin": 1016.17,
      "in_margin_call": false,
      "in_stop_out": false,
      "status": "TRADE_STATUS_FULL",
      "is_demo": false
    }
  ]
}