Skip to main content
POST
Request indicative swap quote

Path Parameters

workspaceId
string
required

Query Parameters

fromAssetId
string
required

ID of the source asset

toAssetId
string
required

ID of the destination asset

fromAmount
string<decimal>

Amount of the from-asset. Exactly one of fromAmount or toAmount must be specified.

toAmount
string<decimal>

Amount of the to-asset. Exactly one of fromAmount or toAmount must be specified.

Response

OK

fromAmount
string<decimal>
required

Amount of the from-asset (echo of the request)

Example:

"120.015"

fromAssetId
string
required

ID of the source asset

Example:

"2"

minPrice
string<decimal>
required

Minimum acceptable price (quote/base) for the on-chain order. Solvers cannot fill below this. Multiply by 10^18 and pass as CreateOrderParams.maxPrice_e18 (the contract's legacy field name).

Example:

"973.4500"

minToAmount
string<decimal>
required

Hard floor on the to-asset amount, enforced by minPrice in the on-chain order. Solvers cannot fill below this.

Example:

"116912.53"

oracleFeePercent
string<decimal>
required

Oracle protocol fee in percent applied to the order

Example:

"0.02"

solverFeePercent
string<decimal>
required

Solver protocol fee in percent applied to the order

Example:

"0.05"

toAmount
string<decimal>
required

Indicative expected amount of the to-asset. May drift slightly toward minToAmount between quote time and order execution.

Example:

"117500.03"

toAssetId
string
required

ID of the destination asset

Example:

"5002"