---
title: "Exchange rates"
method: GET
path: "/v2/xrates/"
tags: ["Reference"]
---

# Exchange rates

`GET /v2/xrates/`

## Request

- Base URL: `https://magicmarkets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://magicmarkets.com/v2/xrates/`
- Auth: API key in header `X-Api-Key`

Returns current exchange rates.

## Response `200`

Exchange rate list

- XRatesEnvelope
  - `status` 'ok'
  - `data` XRate[]
    - `ccy` string: Currency code (e.g. USD, EUR, USDT)
    - `rate` number: Exchange rate to USDT

## Other responses

- `401`: Authentication failed - API key missing, malformed, or rejected.
- `403`: Authorization failed - the key is valid but cannot perform this action.
- `429`: Rate limit hit. Honour the `Retry-After` header.
- `500`: Unexpected internal error. Quote `data[1]` (the token) when contacting support.

---

[API](https://skmtc.dev/magicmarkets/apis/magicmarkets-api.md) · [All operations](https://skmtc.dev/magicmarkets/apis/magicmarkets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magicmarkets/apis/magicmarkets-api/revisions/00c2a7dcce2a?raw)
