Learn R Programming

rbitcoinchartsapi (version 1.0.4)

GetHistoricTradeData: This function will return the 2000 most recent trades which are delayed by approximately 15 minutes.

Description

The symbols that are available can be found here.

Usage

GetHistoricTradeData(params)

Arguments

params
Any parameter accepted by this web service call -- see here.

Details

Note that calling this function with invalid parameters will result in an empty data frame.

Examples

Run this code
params <- list (symbol="btceUSD")
 tryCatch(
     historicTradeData <- GetHistoricTradeData (params),
     error =
         function (e) {
             print (
                 paste (
                     "An exception was thrown -- details follow: ",
                     e,
                     sep=""
                 )
             )
         }
     )

Run the code above in your browser using DataLab