Get price for pair
GET
/v1/{chainID}/priceReturns the best route and exchange offer for pair, no calldata for transaction. Works faster than v1/quote.
Request
The blockchain ID.
(Supported list: v1/platforms)
Smart contract address of the sale token.
Smart contract address of the purchase token.
The amount of sale tokens in decimals of the token (Decimals can be taken from the method /tokens/list).
The amount of slippage allowed during the actual execution of the transaction (10 = 1% slippage). If the price changes by more than this percentage, the transaction will revert. Min = 1 (0.1%), max = 500 (50%).
Gas price value for making a transaction in WEI (nAVAX for Avalanche) (1 GWEI = 1000000000 WEI), default value is the value high from /{chainID}/gasprices.
Wallet address for receiving fees.
The commission is paid from the purchase or sale token. It depends on which of the fields is sent in the request: buyTokenPercentageFee
or sellTokenPercentageFee
.
Percentage of commission from the amount of purchase tokens, is taken in favor of 'feeRecipient'. (10 = 1%, maximum value is 500).
Percentage of commission from the amount of sale tokens, is taken in favor of 'feeRecipient'. (10 = 1%, maximum value is 500).
Exclude some aggregators from routing (add several parameters for multiple exclude).
Include some aggregators from routing (add several parameters for multiple include). This parameter cannot be combined with excludedAggregators.
If TRUE choose a route based on gas.
If TRUE: use only RFQ providers for routing.
Note: If set to TRUE, the excludeAggregator and includeAggregator fields are ignored.