---
title: "Get exchange rate"
method: GET
path: "/api/currency/convert/{fromCode}/{toCode}"
tags: ["Currencies"]
---

# Get exchange rate

`GET /api/currency/convert/{fromCode}/{toCode}`

## Request

- Base URL: `https://api.sandbox.bvnk.com`
- URL: `https://api.sandbox.bvnk.com/api/currency/convert/{fromCode}/{toCode}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/bvnk/apis/bvnk-api-endpoints/docs/api/currency/convert/:fromCode/:toCode/get.ts> (a function with typed inputs; its response is checked against the schema)

Provides a last traded price from connected liquidity providers between two assets.

## Path parameters

- `fromCode` string, required
- `toCode` string, required

## Query parameters

- `amount` number, required

## Response `200`

OK

- ExchangeDto
  - `value` number: The last traded price exchange rate.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/bvnk/apis/bvnk-api-endpoints.md) - [All operations](https://skmtc.dev/bvnk/apis/bvnk-api-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/bvnk/apis/bvnk-api-endpoints/revisions/c386d436bf2c?raw)
