v1

latestOpenAPI 3.1.02026-08-0466147138.0 KB
Execution

Get routes for a rebalancing

This is the first of two steps for a rebalancing flow. After providing relevant options as input, this endpoint will return a number of possible routes. The selected route should be used as input for the /rebalancing/start endpoint.

post/rebalancing/calculate

Request body

$schemastring uri

A URL to the JSON Schema for this object.

from_chain_idinteger required
receiver_address_spstring required
slippageinteger required
user_addressstring required

Example request

{
  "$schema": "https://api.superform.xyz/schemas/RebalancingCalculateInput.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

interim_assetstring required
receiver_address_spstring required
slippageinteger required
user_addressstring required