Skip to main content
GET
/
v1
/
swap
/
rate
Get exchange rate
curl --request GET \
  --url https://api.openxswitch.com/v1/swap/rate \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 404,
  "path": "/v1/...",
  "timestamp": "2025-03-13T12:34:56.789Z",
  "message": "Cannot GET /v1/..."
}

Documentation Index

Fetch the complete documentation index at: https://docs.openxswitch.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

toCurrency
string
required

Target currency

Example:

"BTC"

fromCurrency
string
required

Source currency

Example:

"ETH"

toNetwork
string
required

Target blockchain network

Example:

"ETH"

fromNetwork
string
required

Source blockchain network

Example:

"ETH"

amount
string
required

Amount to exchange

Example:

10

Response

Exchange rate retrieved successfully.