Comment on page
SetProtocol
Load current allocation of a SetToken:
get
/0.1/rebalancing/set-token/assets
Parameters
Query
address*
string
Header
chain-id
string
Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)
x-api-key
string
API key
Responses
200: OK
Calculate a rebalancing by passing SetToken address and a target allocation (tokens + percentages). Additional options are shown in the following request documentation:
post
/0.1/rebalancing/set-token
Request a rebalancing for a set token with a target allocation.
Parameters
Header
chain-id
string
Chain ID as hex string. (e.g.: 0x1 for Ethereum mainnet)
x-api-key
string
API key
Body
Example
Schema
{
"walletAddress": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
"maxDeviationFromTarget": 0.005,
"maxSlippage": 0.01,
"excludedSources": [
"Kyber",
"Dodo",
"CryptoCom"
],
"automatedMarketMakerEnabled": true,
"rfqtEnabled": true,
"batchTrade": false,
"revertOnError": true,
"failOnMissingPricePair": true,
"setTokenAddress": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
"targetEntries": [
"string"
],
"includeSetTokens": [],
"excludeSetTokens": []
}
Responses
200: OK
Last modified 8mo ago