Get price for pair
GET
https://api.entrswap.io/v1/{chainID}/price
Request
Path Params
chainID
enum<integer>
required
Allowed values:
110561372504216143114
Default:
1
Example:
1
Query Params
fromTokenAddress
string
required
Default:
0xdac17f958d2ee523a2206206994597c13d831ec7
Example:
0xdac17f958d2ee523a2206206994597c13d831ec7
toTokenAddress
string
required
Default:
0x6b175474e89094c44da98b954eedeac495271d0f
Example:
0x6b175474e89094c44da98b954eedeac495271d0f
amount
integer
required
Default:
1500000000
Example:
1500000000
slippage
number
required
Default:
1
Example:
1
gasPrice
string | null
optional
Example:
16000000000
feeRecipient
string
optional
buyTokenPercentageFee
or sellTokenPercentageFee
.Default:
0xdac17f958d2ee523a2206206994597c13d831ec7
buyTokenPercentageFee
number
optional
sellTokenPercentageFee
number
optional
excludeAggregator
string
optional
includeAggregator
string
optional
withGas
boolean
optional
Default:
false
rfqOnly
boolean