Access 'CoinDesk' Bitcoin Price Index API

Extract real-time Bitcoin price details by accessing 'CoinDesk' Bitcoin price Index API < https://www.coindesk.com/api/>.


Build Status CRAN_Status_Badge DOWNLOADSTOTAL

The goal of coindeskr is to access 'CoinDesk' Bitcoin Price Index API in R

Installation

You can install coindeskr from github with:

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

Example

Get Current Bitcoin Price:

library(coindeskr)
get_current_price('EUR',F)
 
#output
              time.updated           time.updatedISO           time.updateduk
1 Jan 1, 2018 19:58:00 UTC 2018-01-01T19:58:00+00:00 Jan 1, 2018 at 19:58 GMT
                                                                                                                                                   disclaimer
1 This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org
  bpi.USD.code bpi.USD.rate  bpi.USD.description bpi.USD.rate_float bpi.EUR.code bpi.EUR.rate bpi.EUR.description
1          USD  13,266.4225 United States Dollar           13266.42          EUR  11,045.6897                Euro
  bpi.EUR.rate_float
1           11045.69

Get Historic Bitcoin Price:

 
library(coindeskr)
get_historic_price('USD','2017-03-01','2017-03-03')
 
#output
 
> get_historic_price('USD','2017-03-01','2017-03-03')
              Price
2017-03-01 1230.016
2017-03-02 1260.924
2017-03-03 1290.786

Courtesy

Powered by Coindesk

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("coindeskr")

0.1.0 by AbdulMajedRaja RS, a year ago


https://github.com/amrrs/coindeskr


Report a bug at https://github.com/amrrs/coindeskr/issues


Browse source code at https://github.com/cran/coindeskr


Authors: AbdulMajedRaja RS [aut, cre]


Documentation:   PDF Manual  


CC0 license


Imports httr, jsonlite

Suggests testthat


See at CRAN