Reset Demo Account State
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: No endpoint-specific limit
Returns the specified simulation accounts to their state as of market open on a given trade date, discarding the activity that occurred after that date. Use this to roll a practice account back to a known starting point — for example, to restart an evaluation phase or clear out test trades.
Provide the accounts to reset in accountIds (an array of integer account entity IDs) and the target date in resetTradeDate. Look up account IDs with the accountList endpoint. The response is a SimpleResponse; check its ok flag and errorText field to confirm the reset.
This endpoint is available on Demo only. Resetting an account’s state cannot be undone.
Common Failure Scenarios
accountIds doesn’t exist or isn’t owned by the calling user.resetTradeDate is missing or not a valid trade date.HTTP 401).Error Messages