Update the trading settings of an account
PUT/v1/accounts/:id/trading
Replaces the model, capital gains budgets, lot selection method, tax rates, tax budget and security restrictions of the account with the given ID with the ones in the request body, and returns the account as Get an account returns it without balances. Send every required field. A field you leave out or send as null is cleared. The security restrictions you send replace all of the account's. If your firm has no account with that ID, the response is 404.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
The account you updated.
id is not a whole number, or the request body is invalid, for example securityRestrictions is missing, or a restriction's treatment is not hold_only, sell_no_tax or exclude.
The access token is missing, invalid, or expired.
The access token does not have the write:household scope.
Your firm has no account with that ID.
Too many requests. Wait the number of seconds in the Retry-After-per-person header (script-audience tokens) or the Retry-After header (other requests) before you retry. See Rate limit.