Exchange Rates

Use Apps.Rate to get exchange rates for assets pair.

Use Apps.Rate to retrive price for asset pair and amount. You can retrieve exchange rate from various sources.

Get sources

You can retrieve a list of available exchange rate sources.

echo 'get exchange rate sources'

curl --location --request GET 'https://api.orangepill.cloud/v1/apps/rate/sources' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'

In response you will get a list of exchange rate sources as an Array.

[
    "default", "bitstamp"
]

Use default source to get exchange rate for FIAT-FIAT pairs.

Get price

You must provide exchange rate source.

echo 'get exchange rate USD 100.10 to BTC from Bitstamp'

curl --location --request GET 'https://api.orangepill.cloud/v1/apps/rate/bitstamp/btc/usd/100.10' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'

In response you will get exchange rate.

0.00233

Last updated