getRateLiquidityDepthByPair

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
  )

Returns

This function returns a string with the amount of liquidity available at the specified rate.

Last updated