Function Resource

Function Repository Resource:

CryptocurrencyData

Source Notebook

Cryptocurrency data retrieval

Contributed by: Anton Antonov

CryptocurencyData[name]

gives daily closing price data for the cryptocurrency name.

CryptocurencyData[name,start]

gives daily closing price data for the cryptocurrency name from start to current date.

CryptocurencyData[name,{start,end}]

gives daily closing price data for the cryptocurrency name from start to end.

CryptocurencyData[name,prop,{start,end}]

gives value of the specified property for the cryptocurrency name from start to end.

Details and Options

Generally speaking, CryptcurrencyData adheres to the signatures design of FinancialData, but there are a number of differences.
ResourceFunction["CryptocurrencyData"] utilizes two data sources: Yahoo Finance and data.bitcoinity.org.
ResourceFunction["CryptocurrencyData"] caches the source-retrived-and-processed data in order to provide results faster.
Here are the options taken:
CurrencyUSDcurrency
LedgerStart{2009, 1, 3}ledger start date
QuantitiesFalsewether quantity units to be used or not
ResultTypeTimeSeriestype of the result
SourceYahooFinancesource for cryptocurrency data

Examples

Basic Examples (3) 

Here is time series for Bitcoin (BTC):

In[1]:=
ResourceFunction[
CloudObject[
  "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]]["BTC"]
Out[1]=
In[2]:=
DateListPlot[%, PlotRange -> All]
Out[2]=

Here is trading volume time series for BTC since 2018:

In[3]:=
DateListPlot[ResourceFunction[
CloudObject[
   "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]]["BTC", "Volume", "Jan 1 2018"], PlotRange -> All]
Out[3]=

Get trading volume data for Bitcoin (BTC) and Ether (ETH) since January 1st 2021:

In[4]:=
ResourceFunction[
CloudObject[
  "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]][{"BTC", "ETH"}, "Volume", "Jan 2021"]
Out[4]=

Here is the corresponding plot:

In[5]:=
DateListPlot[%]
Out[5]=

Scope (8) 

Here are time series of different properties for Bitcoin (BTC) and Ether (ETH):

In[6]:=
ResourceFunction[
CloudObject[
  "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]][{"BTC", "ETH"}, {"Open", "Volume"}]
Out[6]=

Instead of time series we can get Dataset objects instead:

In[7]:=
ResourceFunction[
CloudObject[
  "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]][{"BTC", "ETH"}, {"Open", "Volume"}, "Jan 2021", "ResultType" -> Dataset]
Out[7]=

Get the cryptocurrency summary data from Yahoo Finance:

In[8]:=
ResourceFunction[
CloudObject[
  "https://www.wolframcloud.com/obj/antononcube/DeployedResources/Function/CryptocurrencyData"]][All, "Summary"]
Out[8]=