getRateLiquidityDepthByPair
public async getRateLiquidityDepthByPair(
sourceToken: string,
targetToken: string,
rate: string
)Name
Type
Description
Returns
Last updated
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
)sourceToken
token address
The token being sold.
targetToken
token address
The token being bought.
rate
string (number)
The number of target tokens per base token.
This function returns a string with the amount of liquidity available at the specified rate.
Last updated