Exchange Rate

V 1.0

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, convert USD to BTC via Tobtc API and get History by timestamp.

Ticker

Ticker is a current Market Prices and exchanges rate API.

Simple requests:

Code Example


Execute
Response from server:
635.86

Success Response

Returns a JSON object with the currency codes as keys. "15m" is the 15 minutes delayed market price, "last" is the most recent market price, "symbol" is the currency symbol.

Error Response

Tobtc

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

Simple requests:

Code Example


Format and Variables:
Parameter Variables Present Experiment with a value')}}
{currency}
Сurrency of exchange
Variants: USD, EUR, GBP, CNY, CAD, AUD, RUB.
Always
{value}
DECIMAL(13,2)

Velue in currency
Real amount with decimals.

Always
  Reset Values Execute
Response from server:
0.02284

Success Response

Example:

0.02284

Error Response

Not enough parameters.
Empty currency parameter.
Empty value parameter.
Wrong currency parameter.
Wrong value parameter.

History Rate

You can get the history of bitcoin exchange rates by sending currency parameter and Unix timestamp. But if you want to get early exchange rate, don't forget that bitcoin network started only on 3 January 2009, and the official exchangers came much later. The exchange rates are stored at intervals of 15 minutes. The request for the timestamp will be rounded up to the nearest 15-minute interval.

Simple requests:

Code Example


Format and Variables:
Parameter Variables Present Experiment with a value
{currency}
Сurrency of exchange
Variants: USD, EUR, GBP, CNY, CAD, AUD, RUB.
Always
{timestamp}
integer

Unix timestamp

Always
  Reset Values Execute
Response from server:
635.86

Success Response

Example:

635.86

Error Response

Not enough parameters.
Empty currency parameter.
Empty timestamp parameter.
Wrong currency parameter.
Wrong timestamp parameter.