GET /trade/v1/{chainId}/batch_quote/single

By passing in the params, you will receive all available quotes for the trade from our supported DEXs.

By passing in the params, you will receive all available quotes for the trade from our supported DEXes

post
Authorizations
Path parameters
chainIdnumber · enumRequired

Chain id of the network

Example: 1Possible values:
Body
amountsstring[]Required

Amount of tokens being quoted

Example: ["100000","120000","160000"]
fromTokenAddressstringRequired

The address of the token being quoted. If native, use address zero.

Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
toTokenAddressstringRequired

The address of the token to receive in exchange. If native, use address zero.

Example: 0xdac17f958d2ee523a2206206994597c13d831ec7
Responses
200
Batch quotes for the given trade parameters.
application/json
post
POST /trade/v1/{chainId}/batch_quote/single HTTP/1.1
Host: 
Authorization: Bearer Bearer
Content-Type: application/json
Accept: */*
Content-Length: 166

{
  "amounts": [
    "100000",
    "120000",
    "160000"
  ],
  "fromTokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "toTokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
200

Batch quotes for the given trade parameters.

[
  []
]

Last updated

Was this helpful?