Agara

Get portfolio summary

GET
/trade/v1/portfolio/summary

Authorization

Authorization
Required
Bearer <token>

Personal access token issued from the web app's Settings → API tokens page. Send as Authorization: Bearer agt_….

In: header

Scope: portfolio:read

Query Parameters

exchangesstring

Optional AGARA exchange filter. Omit it to query the AGARA wallet.

curl -X GET "https://app.agara.xyz/trade/v1/portfolio/summary?exchanges=string" \
  -H "Authorization: Bearer <token>"

Aggregated balance + positions value + open commitments across all your wallets.

{
  "summaries": [
    {
      "as_of": "2019-08-24T14:15:22Z",
      "cash_balance_micro": "1000000",
      "exchange": "AGARA",
      "free_cash_micro": "1000000",
      "open_cost_basis_micro": "1000000",
      "open_unrealized_pnl_micro": "1000000",
      "portfolio_value_micro": "1000000",
      "positions_value_micro": "1000000"
    }
  ]
}