Exchange Rate

Contents

We get prices from the biggest and the most popular exchange platforms like: coinbase.com, gdax.com, bitstamp.com, bitfinex.com and store them in our database. You can get the current price with different currencies by Ticker API and convert USD to BTC via Tobtc API.

Ticker

Ticker is a current Market Prices and exchanges rate API.

Request:

currency btc, ltc, bch, doge Optional

currency=btc by default

Success Response Reference

Returns a JSON object with the currency codes as keys.

{symbol}, array Currency symbol code ISO 4217. Required
{amount}, decimal Exchange rate. Required
Response example:

Error Response

Playground and Code examples:


Format and Variables:
Parameter Experiment with a value

Currency

 
Response from server:
635.86

ToBTC

Converts the value in the provided currency to a current exchange rate of bitcoins. This interface returns the amount in bitcoins, not Satoshis.

Request:

{currency}, string Сurrency of exchange
usd, eur, gbp, rub.
Required
{value}, DECIMAL(13,2) Velue in currency
Real amount with decimals.
Required

Success Response Reference

Response example:
0.02284

Error Response

Playground and Code examples:

<?php
  $data = file_get_contents("https://apirone.com/api/v1/tobtc?currency=usd&value=100");
  echo $data;
?>
Format and Variables:
Parameter Experiment with a value

Currency

Value

Execute
Response from server:
0.02284

ToLTC

Works same as toltc interface but for Litecoin cryptocurrency.

Request:

{currency}, string Сurrency of exchange
usd, eur, gbp, rub.
Required
{value}, DECIMAL(13,2) Velue in currency
Real amount with decimals.
Required

ToBCH

Works same as tobch interface but for Bitcoin Cash cryptocurrency.

Request:

{currency}, string Сurrency of exchange
usd, eur, gbp, rub.
Required
{value}, DECIMAL(13,2) Velue in currency
Real amount with decimals.
Required

ToDOGE

Works same as todoge interface but for Dogecoin cryptocurrency.

Request:

{currency}, string Сurrency of exchange
usd, eur, gbp, rub.
Required
{value}, DECIMAL(13,2) Velue in currency
Real amount with decimals.
Required