31Third.
Search
K
Comment on page

Enzyme

Load current allocation of an Enzyme vault:
get
/0.1/rebalancing/enzyme-vault/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 an Enzyme vault address and a target allocation (tokens + percentages). Additional options are shown in the following request documentation:
post
/0.1/rebalancing/enzyme-vault
Request a rebalancing for an enzyme vault 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": false,
"vaultAddress": "0x1b83ba4527C837d462D5b78d65A097dABae5ea89",
"includeVaultTokens": [],
"excludeVaultTokens": [],
"targetEntries": [
{
"tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"allocation": 0.2
}
]
}
Responses
200: OK