v1
latestOpenAPI 3.0.02026-07-14293257.6 KBDeX Swap
Get Actual Liquidity Amount based on Ratio
This API is used to retrieve the current ratio of the liquidity pool for both tokens that can be used in liquidity providing.
get/api/v1/web3/dex/lpAmounts
Query parameters
tokenAstring required
First token symbol of the pair. E.g USDT from USDT-DAI
tokenBstring required
Second token symbol of the pair. E.g. DAI from USDT-DAI
amountAstring required
Amount of first token to provide liquidity
chainstring required
Blockchain to which the transaction will be sent. See https://thirdfi.readme.io/reference/dexswap-overview#list-of-chains-we-supported for more information.
Response
OK