---
title: "Convert between forex and crypto at live rates"
method: GET
path: "/v1/convert/{from}/{to}"
tags: ["Convert"]
---

# Convert between forex and crypto at live rates

`GET /v1/convert/{from}/{to}`

## Request

- Base URL: `https://api.sifting.io`
- URL: `https://api.sifting.io/v1/convert/{from}/{to}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/sifting/apis/siftingio-market-data-api/docs/v1/convert/:from/:to/get.ts> (a function with typed inputs; its response is checked against the schema)

Converts an amount between any supported forex or crypto symbols at the current mid-market rate. Converting an asset to itself returns rate 1.

## Path parameters

- `from` string, required
- `to` string, required

## Query parameters

- `amount` number

## Response `200`

Converted amount and the rate applied.

- ConvertResult
  - `from` string: Echo of the source symbol.
  - `to` string: Echo of the target symbol.
  - `amount` number: Amount sent in.
  - `rate` number: Rate applied; amount × rate = result.
  - `result` number: Converted amount.
  - `t` integer: Timestamp of the underlying market rate (Unix epoch ms).

## Other responses

- `401`: Missing or invalid API key.
- `404`: Resource not found.
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/sifting/apis/siftingio-market-data-api.md) - [All operations](https://skmtc.dev/sifting/apis/siftingio-market-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sifting/apis/siftingio-market-data-api/revisions/c570068c2359?raw)
