Get a quote for a limit order according to the provided configuration.
cURL
curl --request POST \ --url https://trade-api.gateway.uniswap.org/v1/limit_order_quote \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "swapper": "<string>", "limitPrice": "<string>", "amount": "<string>", "orderDeadline": 123, "type": "EXACT_INPUT", "tokenIn": "<string>", "tokenOut": "<string>", "tokenInChainId": 1, "tokenOutChainId": 1 }'
{ "requestId": "<string>", "quote": { "encodedOrder": "<string>", "orderId": "<string>", "orderInfo": { "chainId": 1, "nonce": "<string>", "reactor": "<string>", "swapper": "<string>", "deadline": 123, "additionalValidationContract": "0x0000000000000000000000000000000000000000", "additionalValidationData": "0x", "decayStartTime": 123, "decayEndTime": 123, "exclusiveFiller": "<string>", "exclusivityOverrideBps": "<string>", "input": { "startAmount": "<string>", "endAmount": "<string>", "token": "<string>" }, "outputs": [ { "startAmount": "<string>", "endAmount": "<string>", "token": "<string>", "recipient": "<string>" } ] }, "portionBips": 123, "portionAmount": "<string>", "portionRecipient": "<string>", "quoteId": "<string>", "slippageTolerance": 123, "classicGasUseEstimateUSD": "<string>", "aggregatedOutputs": [ { "token": "<string>", "amount": "<string>", "recipient": "<string>", "bps": 123, "minAmount": "<string>" } ] }, "routing": "LIMIT_ORDER", "permitData": { "domain": {}, "values": {}, "types": {} } }
Limit Order Quote request successful.
The response is of type object.
object