For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Support Center
OverviewAPIResources
OverviewAPIResources
  • REST API Endpoints
    • GETGet Timestamp
    • GETO IDC User Info
      • GETAccount Dependents
      • GETAccount Find
      • GETAccount Item
      • GETAccount Items
      • GETAccount L Dependents
      • GETAccount List
      • GETAccount Suggest
      • POSTAcknowledge SSF Risk Disclosure
      • POSTActivate Swap Access
      • GETCash Balance Dependents
      • GETCash Balance Item
      • GETCash Balance Items
      • GETCash Balance L Dependents
      • GETCash Balance List
      • GETCash Balance Log Dependents
      • GETCash Balance Log Item
      • GETCash Balance Log Items
      • GETCash Balance Log L Dependents
      • POSTGet Cash Balance Snapshot
      • GETMargin Snapshot Dependents
      • GETMargin Snapshot Item
      • GETMargin Snapshot Items
      • GETMargin Snapshot L Dependents
      • GETMargin Snapshot List
      • POSTReset Demo Account State
      • GETShadow Account Dependents
      • GETShadow Account Item
      • GETShadow Account Items
      • GETShadow Account L Dependents
      • GETShadow Account Request Dependents
      • GETShadow Account Request Item
      • GETShadow Account Request Items
      • GETShadow Account Request L Dependents
      • GETShadow Account Request List
      • GETTrading Permission Dependents
      • GETTrading Permission Item
      • GETTrading Permission Items
      • GETTrading Permission L Dependents
      • GETTrading Permission List
      • POSTUpdate Futures Disabled
      • POSTUpdate Swap Enabled
Support Center
LogoLogo
REST API EndpointsAccounting

Get Cash Balance Snapshot

POST
https://demo-d.tradovateapi.com/v1/cashBalance/getcashbalancesnapshot
POST
/v1/cashBalance/getcashbalancesnapshot
1const url = 'https://demo-d.tradovateapi.com/v1/cashBalance/getcashbalancesnapshot';
2const options = {
3 method: 'POST',
4 headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
5 body: '{"accountId":1}'
6};
7
8try {
9 const response = await fetch(url, options);
10 const data = await response.json();
11 console.log(data);
12} catch (error) {
13 console.error(error);
14}
200Successful
1{
2 "errorText": "string",
3 "totalCashValue": 1.1,
4 "totalPnL": 1.1,
5 "initialMargin": 1.1,
6 "maintenanceMargin": 1.1,
7 "netLiq": 1.1,
8 "openPnL": 1.1,
9 "realizedPnL": 1.1,
10 "weekRealizedPnL": 1.1,
11 "withdrawalRejectReason": "NoData",
12 "currencyCashAvailWithdrawalUSD": 1.1,
13 "netLiqSOD": 1.1,
14 "totalCashValueSOD": 1.1,
15 "cashUSD": 1.1,
16 "cashSODUSD": 1.1,
17 "fullInitialMargin": 1.1,
18 "fullInitialMarginSOD": 1.1,
19 "autoLiqLevel": 1.1
20}
### Get a snapshot of an account's current cash balance. > *Note*: Using this endpoint many times in succession is an anti-pattern. If you need to check a `cashBalance` in real-time, instead use a WebSocket connected to the standard Tradovate WebSocket URL and initialize a real-time user data subscription via the `user/syncrequest` endpoint.
Was this page helpful?
Previous

Margin Snapshot Dependents

Next
Built with

Get a snapshot of an account’s current cash balance.

Note: Using this endpoint many times in succession is an anti-pattern. If you need to check a cashBalance in real-time, instead use a WebSocket connected to the standard Tradovate WebSocket URL and initialize a real-time user data subscription via the user/syncrequest endpoint.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
accountIdlongRequired

Response

CashBalanceSnapshot
errorTextstring<=8192 characters

Non-empty if the request failed

totalCashValuedouble
totalPnLdouble
initialMargindouble
maintenanceMargindouble
netLiqdouble
openPnLdouble
realizedPnLdouble
weekRealizedPnLdouble
withdrawalRejectReasonenum
NoData, PendingContactInfoChange
Allowed values:
currencyCashAvailWithdrawalUSDdouble
netLiqSODdouble
totalCashValueSODdouble
cashUSDdouble
cashSODUSDdouble
fullInitialMargindouble
fullInitialMarginSODdouble
autoLiqLeveldouble