Retrieves crypto currency current and historical information as well as information on the exchanges they are listed on. For current and historical it will retrieve the daily open, high, low and close values for all crypto currencies. This retrieves the historical market data by web scraping tables provided by 'Cryptocurrency Market Capitalizations' < https://coinmarketcap.com>.
Retrieves all the open, high, low, close values for all cryptocurrencies. This retrieves data from CoinMarketCap's historical prices, exchange details and current prices API.
Below are the high level dependencies for the package to install correctly.
R (>= 3.4.0), foreach, rvest, xml2, doSNOW # Ubuntu sudo apt install libxml2-dev libcurl4-openssl-dev libssl-dev
The crypto R-package is installable through CRAN or through github.
# Installing via CRANinstall.packages("crypto", dependencies = TRUE)# Installing via Githubdevtools::install_github("jessevent/crypto")
These are the main functions that are added so far and a brief summary of what they do. Additional parameters are viewable in the documentation for each function.
library(crypto)# Retrieve crypto market history for all-to-n coins?getCoinswill_i_get_rich <- crypto_history(limit=50)# Retrieve crypto market history for specific coin?getCoinswill_i_get_rich_from <- crypto_history("kin")# Get list of coins and rank?listCoinsrich_list <- crypto_list()# Retrieve current crypto market details?getPricesam_i_rich_now <- crypto_prices()# Retrieve exchange details for all coins or specific coin?getExchangeswhere_do_i_get_rich <- crypto_exchanges()# Convert and/or summarise market history into xts object?crypto2xtswhen_will_i_get_rich <- crypto_xts(will_i_get_rich, "week")# Get timeseries market data for token for displaying in charts?daily_marketshow_me_getting_rich <- daily_market('bitcoin')# Get timeseries global market data for all coins or alt coins for displaying in charts?global_marketshow_me_everyone_getting_rich <- global_market()
Please run the below before raising an issue, then include the output from sessionInfo()
This project is licensed under the MIT License - see the <license.md> file for details</license.md>
Thanks to the team at https://coinmarketcap.com for the great work they do and to the team at CoinTelegraph where the images were sourced.
Please star this if you find it useful, and remember the crypto currency market is volatile by nature, please be responsible if trading.
If by chance you do manage to make your fortune through some game-changing model, I'd appreciate your consideration in the below :)
ERC-20: 0x375923Bf82F0b728d23A5704261a6e16341fd860 XRP: rK59semLsuJZEWftxBFhWuNE6uhznjz2bK LTC: LWpiZMd2cEyqCdrZrs9TjsouTLWbFFxwCj
encoding.Rto not change locale for existing windows UTF-8 encoding
The following functions have been renamed and will be deprecated in future versions. Functionality remains the same.
getCoins() -----> crypto_history()listCoins() -----> crypto_list()getExchanges() -----> crypto_exchanges()getPrices() -----> crypto_prices()crypto2xts -----> crypto_xts()
crypto2xts()function to convert
getCoins()into xts object
crypto2xts()can also be used to summarise into specified time periods i.e month, week
listCoins()url to the new coinmarketcap services
getPrices()by introducing replace_na from tidyr package
getPrices()to do with currency conversion
getExchanges()function to retrieve all crypto currencies and their listed exchanges
getPrices()function by adding return(prices)
getPrices()function to retrieve current crypto currency prices
getCoins()function to retrieve crypto currency prices
listCoins()function to retrieve list of crypto currencies
scraper()helper function used in