Last updated 10 months ago
This function is used to calculate the amount of liquidity that exists for a specific pair up to the specified exchange rate.
public async getRateLiquidityDepthByPair( sourceToken: string, targetToken: string, rate: string )
This function returns a string with the amount of liquidity available at the specified rate.
sourceToken
token address
The token being sold.
targetToken
The token being bought.
rate
string (number)
The number of target tokens per base token.