Skip to content

brishtiteveja/coinalysis

Repository files navigation

coinmarketcapr

Build Status CRAN_Status_Badge DOWNLOADSTOTAL

Overview

The goal of coinmarketcapr is To get Cryptocurrencies Market Cap Prices from Coin Market Cap

Installation

coinmarketcapr can be directly installed from CRAN:

install.packages("coinmarketcapr")

And the development version can be installed from Github:

# install.packages("devtools")
devtools::install_github("amrrs/coinmarketcapr")

Dependency Packages

  • jsonlite
  • RCurl
  • ggplot2

Getting started

library(coinmarketcapr)
latest_marketcap <- get_global_marketcap('EUR')

coinmarketcapr can be loaded just like any other R-package with library(coinmarketcapr).

Note: If you're trying this behind a Firewall, you might get: Error in open.connection(con, "rb") : Timeout was reached To resolve this error, Please refer this link: Configuring R to Use an HTTP or HTTPS Proxy

Examples

Code

library(coinmarketcapr)

#get the global market cap details and assign it to a dataframe
latest_marketcap <- get_global_marketcap('EUR')

Courtesy

Coinmarketcap API