Request indicative swap quote
Request an indicative price for a potential swap between two assets without creating an on-chain order. Used by broadcaster integrators to display rates before initiating createOrder. Includes a hard floor (minToAmount) enforced on-chain via maxPrice.
Path Parameters
Query Parameters
ID of the source asset
ID of the destination asset
Amount of the from-asset. Exactly one of fromAmount or toAmount must be specified.
Amount of the to-asset. Exactly one of fromAmount or toAmount must be specified.
Response
OK
Amount of the from-asset (echo of the request)
"120.015"
ID of the source asset
"2"
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).
"973.4500"
Hard floor on the to-asset amount, enforced by minPrice in the on-chain order. Solvers cannot fill below this.
"116912.53"
Oracle protocol fee in percent applied to the order
"0.02"
Solver protocol fee in percent applied to the order
"0.05"
Indicative expected amount of the to-asset. May drift slightly toward minToAmount between quote time and order execution.
"117500.03"
ID of the destination asset
"5002"
