Bitcoincharts provides financial and technical data related to the Bitcoin network and this data can be accessed via a JSON application programming interface (API) and can be used for ad hoc reporting purposes.
The Bitcoincharts JSON-based web services API makes working with BitcoinCharts data in the R Project for Statistical Computing straightforward and we have developed a package in R to facilitate this — see the API usage examples below.
Examples
library (rbitcoinchartsapi
)
weightedPrices <- GetWeightedPrices ()
marketDataParams <- list (currency=USD
)
usd <- GetMarketData (marketDataParams)
weightedPrices$ILS
usd[[1]]$latest_trade
historicTradeDataParams <- list (symbol=btceUSD
)
historicTradeData <- GetHistoricTradeData (historicTradeDataParams)
head (historicTradeData)