---
title: "Get Actual Liquidity Amount based on Ratio"
method: GET
path: "/api/v1/web3/dex/lpAmounts"
tags: ["DeX Swap"]
---

# Get Actual Liquidity Amount based on Ratio

`GET /api/v1/web3/dex/lpAmounts`

This API is used to retrieve the current ratio of the liquidity pool for both tokens that can be used in liquidity providing.

## Query parameters

- `tokenA` string, required
- `tokenB` string, required
- `amountA` string, required
- `chain` string, required

## Response `200`

OK

- object
  - `statusCode` number
  - `message` string
  - `data` object
    - `tokenA` string — First token symbol of the pair. E.g USDT from `USDT-DAI`
    - `tokenB` string — Second token symbol of the pair. E.g. DAI from `USDT-DAI`
    - `amountA` string — Amount of first token to provide liquidity
    - `amountB` string — Amount of second token to provide liquidity

## Other responses

- `401` — Unauthorized
- `403` — Forbidden Resources

---

[API](https://skmtc.net/thirdfi/apis/thirdfi-api.md) · [All operations](https://skmtc.net/thirdfi/apis/thirdfi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thirdfi/thirdfi-api/versions/4d70807293f6/schema)
