Change Demo Balance
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed
Bearer authentication of the form Bearer <token>, where token is your auth token.
Non-empty if the request failed
Available to: All authenticated users
Environments: Demo
Rate Limit (organization administrators): None
Rate Limit (all other users): One balance change per account per hour, with a max account balance of $50,000
Quickly adjust the simulated cash balance of a demo account in your organization. Use this endpoint to reset a trader’s balance during an evaluation, top up an account before a new challenge phase, or adjust a balance after a practice session when you don’t need the additional control that adjustCash provides.
errorText field in the response body to determine whether the request succeeded or failed.Difference Between changeDemoBalance and adjustCash
The changeDemoBalance endpoint is available to all traders and has rate limits to protect against abuse. Because adjustCash is restricted to organization administrators with Funds permissions, it supports higher throughput and doesn’t have a rate limit. adjustCash also gives you more control: you can classify the adjustment type, specify the currency, and include an audit comment.
Field Details
The accountId must reference an active demo account within your organization. You can look up account IDs using the Query Builder in the Admin Dashboards or via the /account/list endpoint.
The cashChange value is applied as a change to the current balance (positive values increase the balance and negative values decrease it). The cashChange value must be between -1,000,000 and 1,000,000 (exclusive). The resulting balance cannot exceed $50,000.
If the optional comment field is omitted, the server defaults to “Demo Change”.
Reversing a Change
While you can’t undo a change, you can make another changeDemoBalance call with the opposite cashChange amount.
Common Failure Scenarios
cashChange is outside the allowed range (must be between -1,000,000 and 1,000,000, exclusive)comment exceeds 64 charactersError Messages