---
title: "GetSwapPrices"
method: POST
path: "/rpc/API/GetSwapPrices"
---

# GetSwapPrices

`POST /rpc/API/GetSwapPrices`

Retrieve swap prices for the specified ERC20 token at the address provided as 'buyCurrencyAddress'. The result will be 'null' if the user lacks sufficient funds or if there is insufficient pool liquidity.

## Request body

- APIGetSwapPricesRequest
  - `userAddress` string
  - `buyCurrencyAddress` string
  - `buyAmount` string
  - `chainId` number
  - `slippagePercentage` number

## Response `200`

OK

- APIGetSwapPricesResponse
  - `swapPrices` SwapPrice[] — []SwapPrice
    - `currencyAddress` string, required
    - `currencyBalance` string, required
    - `price` string, required
    - `maxPrice` string, required
    - `transactionValue` string, required

## Other responses

- `4XX` — Client error
- `5XX` — Server error

---

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