After you calculated a rebalancing it might be that you have to refresh quotes. For example if you have a user interface and user don't directly execute received rebalancings.
Currently we consider rebalancings to be valid for 5 minutes however quotes should be refresed more often. A good starting point would be 20 or 30 seconds. (Make sure to not fire refresh calls to our API every second or you might get blocked.)
Refresh the quotes of a previously calculated rebalancing
GET/0.1/rebalancing/refresh-expired-quotes
Query parameters
Header parameters
Response
Body
trades*array of TradeDto (object)
List of trades which will be executed to fulfill the rebalancing.
txHandler*string
Address of the contract to send the txData to. It will be our batch trade contract if it is a rebalancing transaction. However, in some special cases, it may also be a different contract, for example, in the case of wrapping ETH into WETH.
txData*object
Call data to execute the rebalancing. (Must be sent to the txHandler contract address.)
txValue*integer (int64)
Call value to execute the rebalancing. (Must be sent to the txHandler contract address.)