Update a rebalance
PUT/v1/rebalances/:id
Replaces the trades and the dollar-cost averaging fields of the rebalance with the given ID with the ones in the request body. Trades of the rebalance that the body does not list are deleted, and dollar-cost averaging fields you leave out are cleared. The status does not change. If your firm has no rebalance with that ID, nothing changes and the response is 404. A proposal of a position swap is changed from its swap: for one, nothing changes and the response is 409, naming the swap.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
The ID and the status of the rebalance.
id is not a whole number, or the request body is invalid, for example accounts is missing or an account has no trades.
The access token is missing, invalid, or expired.
The access token does not have the write:rebalance scope.
Your firm has no rebalance with that ID.
The rebalance is a proposal of a position swap. The swap owns its proposals, so change it from the swap.
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.