Basic Examples (3)
Here is time series for Bitcoin (BTC):
Here is trading volume time series for BTC since 2018:
Get trading volume data for Bitcoin (BTC) and Ether (ETH) since January 1st 2022:
Here is the corresponding plot:
Scope (8)
Here are time series of different properties for Bitcoin (BTC) and Ether (ETH):
Instead of time series we can get Dataset objects instead:
Get the cryptocurrency summary data from Yahoo Finance:
Get all classes of metadata and show the corresponding metadata values:
Get Bitcoin (BTC) data from the exchange "coinbase":
Cryptocurrencies symbols and names:
Currencies that can be used CryptocurrencyData:
Exchanges that can be used in CryptocurrencyData with the option "Source" set to "DataBitcoinityOrg":
Options (8)
Currency (2)
The option "Currency" specifies the currency of the results. It is expected to be one of:
Here are examples of opening prices of Ether (ETH) with different currencies:
LedgerStart
The option "LedgerStart" specifies the start date of the cryptocurrency ledger. That start date is used when retrieval of all values is specified.
Quantities (4)
If the option "ResultType" is set to TimeSeries, then the option "Quantities" specifies weather the result time series should be with numeric values with quantity values.
Here we obtain Ether opening price time series:
Here from each time series the values are extracted:
QuantityArray is used in order to have faster data retrieval. After normalizing the results we see the actual quantities and values:
Note that for trading volume the unit "Items" is used, since there is not unit "Coins":
ResultType (1)
The option "ResultType" specifies the type of the results. It is expected to be Automatic, Dataset, or TimeSeries. Automatic is the same as TimeSeries. Here is are examples:
Source (1)
The option "Source" specifies the data source. It is expected to be Automatic, "YahooFinance", "YF", "DataBitcoinityOrg", or "DBO". The abbreviations "YF" and "DBO" correspond to the "YahooFinance" and "DataBitcoinityOrg" respectively. With "YahooFinance" data from the page https://finance.yahoo.com/cryptocurrencies is used. With "DataBitcoinityOrg" data from https://data.bitcoinity.org is used. Here are examples:
Applications (4)
Find 100-day moving averages of a opening price of BTC:
Find the summary of the opening price daily differences for BTC for the passed two years:
Plot a histogram of the corresponding to log 10 of the absolute values:
Note the summary and plot above demonstrate the volatility of BTC.
Show the top eight "priciest" cryptocurrencies using data from the last two weeks:
Plot the opening prices of top cryptocurrencies since 2018:
Properties and Relations (2)
FinancialData has ten of the cryptocurrencies for which CryptocurrencyData can provide data for (through Yahoo Finance.) Here are the cryptocurrencies FinancialData knows the prices of:
Here is a time series for ETH:
FinancialData does not provide cryptocurrency data other than price (e.g. trading volume, etc.) or data from different exchanges. Here are examples of a failed retrieval:
Also, FinancialData returns cryptocurrency results with different units or without units. See comparison with stocks ("GE"):
Here is a 30 day moving average of the price of BTC with using FinancialData:
Here is a 30 day moving average of the price of BTC with using CryptocurrencyData:
Neat Examples (2)
Plot passed year opening prices and trading volumes of the top cryptocurrencies:
Compute correlations between the passed year time series of the top cryptocurrencies: