This vignette is to help you get started with Coinmarketcapr Package that helps to extract and monitor price and market cap of Cryptocurrencies from CoinMarketCap. Simply, Coinmarketcapr is an R-binding for Coinmarketcap API that lists Price, Marketcap, Transaction Volume of many Cryptocurrencies and tokens.

Basic Functions

This package contains three primary functions:

Getting Valid Currrenices

This function get_valid_currencies() lists a character vector with all the valid currencies (ISO Codes) supported by Coinmarketcap API. These currency codes can be used in other functions like get_global_marketcap() to extract values in the given currency.

Plotting Top Cryptocurrencies

This function plot_top_currencies() makes it straightforward to make a barplot of top cryptocurrencies by their rank which is actually based on Market cap.

library(coinmarketcapr)
plot_top_currencies('USD',5)
Plotting Top 5 Cryptocurrencies

Plotting Top 5 Cryptocurrencies

Plotting with Themes

plot_top_currencies() outputs a ggplot object hence using + operator a new ggplot2 theme can be applied. ggthemes package has got a rich set of out-of-box themes to use with.

Plot with Themes

Plot with Themes

Courtesy

Coinmarketcapr is powered by Coinmarketcap.com https://coinmarketcap.com/api/