v1

latestOpenAPI 3.0.02026-07-142115792.8 KB
LimitOrderQuote

Get a limit order quote

Get a quote for a limit order according to the provided configuration.

post/limit_order_quote

Request body

swapperstring required

The wallet address which will receive the token.

limitPricestring
amountstring required

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

orderDeadlinenumber
type'EXACT_INPUT' | 'EXACT_OUTPUT' required

The handling of the amount field. EXACT_INPUT means the requester will send the specified amount of input tokens and get a quote with a variable quantity of output tokens. EXACT_OUTPUT means the requester will receive the specified amount of output tokens and get a quote with a variable quantity of input tokens.

tokenInstring required

The token which will be sent, specified by its token address. For a list of supported tokens, see the FAQ.

tokenOutstring required

The token which will be received, specified by its token address. For a list of supported tokens, see the FAQ.

tokenInChainId1 | 10 | 56 | 130 | 137 | 324 | 480 | 1868 | 8453 | 10143 | 42161 | 42220 | 43114 | 81457 | 7777777 | 1301 | 84532 | 11155111 | 143 | 196 required

The unique ID of the blockchain. For a list of supported chains see the FAQ.

tokenOutChainId1 | 10 | 56 | 130 | 137 | 324 | 480 | 1868 | 8453 | 10143 | 42161 | 42220 | 43114 | 81457 | 7777777 | 1301 | 84532 | 11155111 | 143 | 196 required

The unique ID of the blockchain. For a list of supported chains see the FAQ.

Response

Limit Order Quote request successful.

requestIdstring required

A unique ID for the request.

routing'LIMIT_ORDER' required