Swap Rate

Get the exchange rate between any two supported currencies, including fiat, Bitcoin, sats, and msats.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this endpoint to get the exchange rate between any two supported currencies, including fiat (government-issued currencies such as USD), Bitcoin, sats (satoshis, or 0.00000001 BTC), and msats (millisatoshis, or one-thousandth of a satoshi).

Understand the response

  • rate: How much of to you get for 1 unit of from.
  • inverseRate: How much of from you need to get 1 unit of to.

For example, if from is USD and to is BTC, a rate of 0.00001987 means you get 0.00001987 BTC for 1 USD.

The inverseRate is not a simple reciprocal of rate because each direction includes its own fee (the cost charged for that conversion).

This means both values already include the spread (the gap between the buy price and sell price).

Find supported currencies

To get the list of supported currencies and their IDs, check the Get All Currencies endpoint.

Query Params
string
required
Defaults to 2

Id of the source currency

string
required
Defaults to 3

Id of the target currency

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json