---
spec: trading.yaml
operationId: getAccountBalance
---

Return the current balance and buying-power snapshot for the specified account.

## Response Examples

```json 200
{
  "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          }
    ]
  }
}
```

```json error
{
  "s": "invalid_grant",
  "errmsg": "Invalid grant, the account may not exist or may not be opened yet."
}
```
