getLiquidityByPair

This function gets the total amount of liquidity available for a given token pair.

public async getLiquidityByPair(sourceToken: string, targetToken: string)
Name
Type
Description

sourceToken

token address

The first token in the pair.

targetToken

token address

The second token in the pair.

Returns

The total amount of liquidity contained by strategies in the pair.

Last updated