You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Exchange Rate

crypto/exchange-rate@1.0.1
1 provider

Get Exchange Rate

Get exchange rate between two currencies

Input
From
To
Result
Rate

1.Choose a provider

2.Use GetExchangeRate with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

from
Code of the source currency, e.g.: "ETH"
to
Code of the target currency, e.g.: "BTC"

Example

Result (object)

rate
Exchange rate, e.g.: "0.06249100"

Example

Implementation details

Provider
mock
Use case
GetExchangeRate
Author
@superface
Source
Verified