Refresh Quotes

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
Query parameters
rebalancingIdstringRequired

ID of a previously calculated rebalancing

Header parameters
x-api-keystringOptional

31Third API key (Request via [email protected])

chain-idstringOptional

Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)

Responses
chevron-right
200Success
application/json
idstringRequired

Unique ID of the calculated rebalancing.

Example: 0096124c-19df-4459-8cbb-7615fdc7c157
creationDatestring · date-timeRequired

Rebalancing creation timestamp

baseValueInUsdnumberRequired

Total value of assets in the rebalancing base allocation. (in USD)

Example: 12345.67
sellValueInUsdnumberRequired

The proportion of value that is taken out for trades, meaning sold. (in USD)

Example: 12345.67
estimatedValueLossInUsdnumberRequired

Estimated loss of total portfolio value. (in USD; fees are already included in this value)

Example: 12.34
estimatedTargetValueInUsdnumberRequired

Estimated total value of the rebalancing target allocation. (in USD; fees are already included in this value)

Example: 12345.67
estimatedReceiveValueInUsdnumberRequired

Estimated value of assets received after all trades. (in USD; fees are already included in this value)

Example: 12345.67
minReceiveValueInUsdnumberRequired

Minimal total portfolio value after the rebalancing. (in USD; slippage and fees are included in this value)

Example: 12325.67
estimatedImpactnumberRequired

Estimated impact. (0.01 = 1%; fees are already included in this value)

Example: 0.0023
maxImpactnumberRequired

Maximal impact. (0.01 = 1%; slippage and fees are included in this value)

Example: 0.0027
estimatedGasUnitsinteger · int64Required

Estimated gas units for this trade. (in WEI)

Example: 20000000000000000
suggestedGasPriceinteger · int64Required

Suggested gas price [LOW/MARKET/AGGRESSIVE] fetched from a block explorer (e.g. Etherscan). (in WEI)

Example: 20000000000000000
estimatedGasFeesinteger · int64Required

Estimated gas fees for the rebalancing. (in WEI)

Example: 20000000000000000
estimatedGasFeesInUsdnumberRequired

Estimated gas fees for the rebalancing. (in USD)

Example: 23.45
estimatedProtocolFeesInUsdnumberRequired

Estimated protocol fees for the rebalancing. (in USD)

Example: 23.45
txHandlerstringRequired

[Just if a batch trade is requested, otherwise use txHandler per trade] 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.

txDataobjectRequired

[Just if a batch trade is requested, otherwise use txData per trade] Call data to execute the rebalancing. (Must be sent to the txHandler contract address.)

txValueinteger · int64Required

Call value to execute the rebalancing. (Must be sent to the txHandler contract address.)

tokensWithoutPricePairstringRequired

List of tokens for which no price pair could be found.

Example: ["0x3ed3b47dd13ec9a98b44e6204a523e766b225811"]
executablebooleanRequired

Is executable based on wallet permissions for smart contracts

Example: ["true"]
expirationTimestampstring · date-timeRequired

If the rebalancing contains RFQ/OTC trades this is a hard deadline.If not this can be considered as soft deadline. A new rebalancing should be calculated since after some time market prices might have changed in a way that another composition of trades might be better.

Example: 2025-10-17T08:27:04.604Z
earliestRefreshQuotesTimestampstring · date-timeRequired

Earliest timestamp when quotes for this rebalancing can be refreshed

suggestedRefreshQuotesTimestampstring · date-timeRequired
get
/1.3/rebalancing/refresh-expired-quotes
200Success

Last updated