portfolio
Get Balance
Returns the balance and portfolio value for a member. Both values include all exchange indexes unless exchange_index is provided. Pass subaccount to use a subaccount instead of the primary account. This endpoint also accepts API keys with the 'read::portfolio_balance' scope.
get/portfolio/balance
Query parameters
subaccountinteger
Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0.
exchange_indexinteger
Identifier for an exchange shard.
Exchange index used to scope the balance and portfolio value. If omitted, both include all exchange indexes.
Response
Balance retrieved successfully
Example response
{
"balance_dollars": "0.5600",
"balance_breakdown": [
{
"balance": "0.5600"
}
]
}