Get Cash Balance Snapshot
Get a snapshot of an account’s current cash balance.
Available to: All authenticated users
Environments: Demo, Live
Rate Limit: No endpoint-specific limit
Returns a point-in-time snapshot of an account’s cash balance. Identify the account with accountId (the integer entity ID). The response is a CashBalanceSnapshot for that account.
Don’t poll this endpoint for live balances — calling it repeatedly is an anti-pattern. For real-time cash balance, open a WebSocket and start a user/syncRequest subscription, which pushes balance changes as they happen.
Common Failure Scenarios
- The
accountIddoesn’t exist or isn’t owned by the calling user (returnsHTTP 404). - The access token is missing or invalid (returns
HTTP 401).
Error Messages
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
accountId
Response
CashBalanceSnapshot
errorText
Non-empty if the request failed
totalCashValue
totalPnL
initialMargin
maintenanceMargin
netLiq
openPnL
realizedPnL
weekRealizedPnL
withdrawalRejectReason
NoData, PendingContactInfoChange
Allowed values:
currencyCashAvailWithdrawalUSD
netLiqSOD
totalCashValueSOD
cashUSD
cashSODUSD
fullInitialMargin
fullInitialMarginSOD
autoLiqLevel
fundsInTransitUSD
fundsInTransitAppliedToCashUSD