---
title: "Get exchange rates between token pairs across blockchains."
method: POST
path: "/"
---

# Get exchange rates between token pairs across blockchains.

`POST /`

## Request body

- object[]
  - `domestic_blockchain` string, required — Identifier for the domestic blockchain network
  - `domestic_token` string, required — Address of the domestic token
  - `foreign_blockchain` string, required — Identifier for the foreign blockchain network
  - `foreign_token` string, required — Address of the foreign token

## Response `200`

Successful response

- object[]
  - `domestic_blockchain` string — Identifier for the domestic blockchain network
  - `domestic_token` string, required — Address of the domestic token
  - `foreign_blockchain` string — Identifier for the foreign blockchain network
  - `foreign_token` string, required — Address of the foreign token
  - `price` number, required — Exchange rate between the two tokens

## Other responses

- `400` — Invalid request payload
- `500` — Server error

## Changes

> 8 revisions in range; 1 could not be searched.

- **2025-01-09** `5f780da5c2a3` — 1 breaking, 1 warning
  - the response's body type/format changed from `object`/`` to `array`/`` for status `200`
  - removed the optional property `exchange_rates` from the response with the `200` status
- **2025-01-09** `46c03d2a8a7c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gluexprotocol/apis/gluex-exchange-rates-api/changes/post.md)

---

[API](https://skmtc.dev/gluexprotocol/apis/gluex-exchange-rates-api.md) · [All operations](https://skmtc.dev/gluexprotocol/apis/gluex-exchange-rates-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gluexprotocol/gluex-exchange-rates-api/revisions/4c41d3c79213/schema)
