Kyber
Call price and trade estimates on Kyber by using this Resolcer
Kyber Resolver to get buy and sell details. You can view details like source code, ABIs on Etherscan.
Get buy amount
Get buy token details like amount and unit amount.Copy
Parameter
Type
Description
buyToken
string
The buy token symbol.
sellToken
string
The sell token symbol.
sellAmt
number
The amount of tokens to sell. Amount to be written in normal form eg - 1.1 ETH, 100 DAI.
slippage
number
The slippage in percent eg - 1 means 1%, 10 means 10%, etc.
Returns: Object
of buy token details
Return Parameter
Type
Description
buyAmt
number/string
Expected buy token amount.
buyAmtRaw
number/string
Expected buy token amount in decimal form.
unitAmt
number/string
The unit amount is the minimum amount of buy token expected per sell token. It is calculated with the help of slippage. The parameter is passed directly in the kyber connector.
Last updated