SetProtocol
Load current allocation of a SetToken:
Calculate a rebalancing by passing SetToken address and a target allocation (tokens + percentages). Additional options are shown in the following request documentation:
Last updated
Load current allocation of a SetToken:
Calculate a rebalancing by passing SetToken address and a target allocation (tokens + percentages). Additional options are shown in the following request documentation:
Last updated
The wallet that is used to execute the rebalancing.
Maximum deviation from the target allocation. (0.01 = 1%)
Maximum allowed slippage for the calculated trades. (0.01 = 1%)
List of DEXs that should not be used. (Supported DEXs can be queried from the /settings/exchanges endpoint).
Enables AMM trades
Enables RFQT trades
Enables batch trading
Enables reverting the whole batch transaction if one single trade fails. Otherwise the already positive executed trades are settled.
If true, an exception is thrown, indicating that no price pair can be found for at least one of the vault tokens. (Only assets with a balance greater than 0 are considered.) If false, the rebalancing is still calculated without considering the tokens with no pairs.
Set token the rebalancing should be calculated for
Wrapper element for target tokens with allocation
Optional. If provided, only the selected tokens are considered for the base allocation. (Cannot be combined with excludeSetTokens.)
Optional. If provided, the selected tokens are not considered for rebalancing. (Cannot be combined with includeSetTokens.)
Unique ID of the calculated rebalancing.
Estimated total portfolio value after the rebalancing. (in USD)
Minimal total portfolio value after the rebalancing. (in USD)
Estimated loss of total portfolio value. (in USD)
Estimated network fees for the rebalancing. (in WEI)
Estimated network fees for the rebalancing. (in USD)
List of tokens for which the allowance has to be increased before executing the rebalancing. (List based on the wallet passed in the rebalancing request.)
List of trades which will be executed to fulfill the rebalancing.
[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.
[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.)
Call value to execute the rebalancing. (Must be sent to the txHandler contract address.)
List of tokens for which no price pair could be found.
Currently, this is not a hard expiration timestamp. The rebalancing transaction can still be executed if the timestamp has expired, but there may already be substantial price changes on the market. (With the introduction of RFQ, the timestamp will be a hard deadline for executing the rebalancing transaction at a given quote. If the timestamp expires, a new quote will be issued with a new timestamp.)