Get Account Balance
/accounts/{accountId}/stateReturn the current balance and buying-power snapshot for the specified account.
Path Parameters
The account identifier.
Response
Successful response.
Status indicator. ok on success.
Account state snapshot.
Cash balance. Negative when the account carries margin debt.
Total account equity (cash + market value of positions).
Total market value of all open positions.
Intraday profit/loss in account currency.
Intraday profit/loss as a decimal fraction (e.g. -0.1117 = -11.17%).
Total unrealized profit/loss across all open positions.
Additional computed fields. Known IDs: dayBP, overnightBP, daytradeLeft, marginRequirement, dayTradeTimes.
Field identifier.
Field value.
Response
Unauthorized — missing or invalid authentication.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response
Error response.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response Example
{
"s": "OK",
"d": {
"cash": -741504.84,
"equity": 1015356.46,
"mkt": 1756861.30,
"dayPL": -127711.66,
"dayPLP": -0.1117,
"unrealizedPL": 212276.61,
"customFields": [
{ "id": "dayBP", "value": 1447119.17 },
{ "id": "overnightBP", "value": 835568.39 },
{ "id": "daytradeLeft", "value": "Unlimited" },
{ "id": "marginRequirement", "value": 427607.33 },
{ "id": "dayTradeTimes", "value": 0 }
]
}
}