---
title: "Get DEX Swap Price"
method: GET
path: "/defi/v1/dex/price"
tags: ["dex"]
---

# Get DEX Swap Price

`GET /defi/v1/dex/price`

Retrieves a swap quotation for a given token pair or a series of tokens along a specified path. By providing an input amount (amountIn), the endpoint calculates and returns the estimated output amounts for each token in the swap path. This allows users to accurately gauge current market pricing and estimate the value of potential swaps on a decentralized exchange, facilitating more informed trading decisions.

> 💡 
**Compute Unit Value:** `70` (Fixed)

## Query parameters

- `dexId` '1000' | '1001' | '1300' | '1301' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1101' | '1200' | '1201' | '2900' | '2901' | '2800' | '2808' | '2809' | '1500' | '1400' | '1402' | '2300' | '2100' | '2101' | '2500' | '2501' | '2700' | '2600' | '2400' | '2401' | '1600' | '1602' | '1604' | '1605' | '1607' | '1608' | '1700' | '1701' | '1702' | '1703' | '1704' | '1706' | '1707' | '2200' | '2201' | '2202' | '2203' | '2204' | '2205' | '2206' | '3000' | '3001' | '3100' | '3300' | '3301' | '3500' | '3501' | '3400' | '3401' | '3600' | '3800' | '3700' — The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-dexs-protocols).
- `path` string, required — Comma-separated values of token addresses whose price is to be fetched.
- `amountIn` string, required — Amount of token.
- `vsCurrencies` string — A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
- `poolFees` string — Different pool based on the fees. By default, it will take the pool with maximum amountOut.
- `slippage` string — Percentage of total swap value. By default, 1.

## Response `200`

Successful response

- object
  - `status` number — Numeric status code indicating success or failure of the API call
  - `msg` string — Human-readable message describing the API result or error
  - `data` object
    - `amountIn` string — Amount of input token in a swap
    - `path` string[] — Array of token addresses representing a swap route
    - `amountsOut` string[] — Expected output amounts from swaps or conversions
    - `priceImpact` object — Price impact details for the swap
      - `percentage` string — Price impact as a percentage (negative indicates unfavorable slippage)
      - `value` string — Price impact value in USD

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
