API Documentation - Methods

viewCoinHistory

Retrieves coin data of the specified type for the provided date range.

Parameters

  • coin (int) - Id of the coin to show history for.
  • start (datetime string) - The start date of the period to get the coin data for. Format as YYYY-MM-DD.
  • end (datetime string) - The end date of the period to get the coin data for. Format as YYYY-MM-DD.
  • dataType (string) - The type of data you would like ot retrieve. See values in getDataTypes. - Default value: 'price'
  • baseCurrency (string) - The base currency to use for price, market cap and trade volume data. See values in getBaseCurrencies. - Default value: 'USD'

Returns

An array of the provided data type over the provided period for the provided coin. Or an exception in case of an invalid parameter.

Example request

https://www.cryptocurrencychart.com/api/coin/history/363/2017-01-01/2017-01-02/marketCap/USD

Example response

{"coin":{"id":363,"name":"Bitcoin","code":"BTC"},"dataType":"marketCap","baseCurrency":"usd","data":[{"date":"2017-01-01","marketCap":"15419010992.00000000"},{"date":"2017-01-02","marketCap":"16249384569.00000000"},{"date":"2017-01-03","marketCap":"16605988581.00000000"}]}

viewCoin

View coin data for a specific date, if no date is specified the most recent coin data is shown.

Parameters

  • coin (int) - Id of the coin to show data for.
  • date (datetime string) - The date of the period to get the coin data for. Format as YYYY-MM-DD. No value returns the most recent data - Default value: NULL
  • baseCurrency (string) - The base currency to use for price, market cap and trade volume data. See values in getBaseCurrencies. - Default value: 'USD'

Returns

An array of coin data in the specified base currency.

Example request

https://www.cryptocurrencychart.com/api/coin/view/363/2017-01-01/USD

Example response

{"coin":{"id":363,"baseCurrency":"usd","dateTime":"2017-01-01","price":"959.14800000","marketCap":"15419010992.00000000","tradeVolume":"82845700.00000000","rank":1,"supply":"16075737.00000000","tradeHealth":"0.98858900","sentiment":"bullish", "firstData":"2013-01-02", "mostRecentData": "2018-01-22"}}

getCoins

Provides a list of available crypto currencies (coins).

Returns

A list of all available coins.

Example request

https://www.cryptocurrencychart.com/api/coin/list

Example response

{"coins":[{"id":2024,"name":"007Coin","code":"007"},{"id":2097,"name":"020LondonCoin","code":"020"},{"id":2512,"name":"0x","code":"ZRX"},{"id":2743,"name":"10M Token","code":"10MT"},{"id":655,"name":"1337","code":"1337"}]}

getDataTypes

Provides a list of data types to use with the viewCoinHistory call.

Returns

An array of data type strings.

Example request

https://www.cryptocurrencychart.com/api/data-type/list

Example response

{"dataTypes":["price","priceChange","priceReturnOnInvestment","marketCap","marketCapChange","marketCapCumulativeChange","marketCapRank","tradeVolume","tradeVolumeChange","tradeVolumeCumulativeChange","priceSentiment","supply","tradeHealth"]}

getBaseCurrencies

Provides a list of base currencies used for the viewCoin and viewCoinHistory calls.

Returns

An array of base currency strings.

Example request

https://www.cryptocurrencychart.com/api/base-currency/list

Example response

{"baseCurrencies":["USD","EUR","AUD","BGN","BRL","CAD","CHF","CNY","CZK","DKK","GBP","HKD","HRK","HUF","IDR","ILS","INR","JPY","KRW","MXN","MYR","NOK","NZD","PHP","PLN","RON","RUB","SEK","SGD","THB","TRY","ZAR"]}