GetMarketData: This function will return an array with elements for each...

Description Usage Arguments Examples

Description

General market data can be accessed here.

Usage

1
GetMarketData(params)

Arguments

params

Any parameter accepted by this web service call – see here

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
params <- list (currency="USD")
 tryCatch(
     usd <- GetMarketData (params),
     error =
         function (e) {
             print (
                 paste (
                     "An exception was thrown -- details follow: ",
                     e,
                     sep=""
                 )
             )
         }
     )

Example output

Loading required package: RJSONIO
Loading required package: RCurl
Loading required package: bitops
[1] "An exception was thrown -- details follow: Error in function (type, msg, asError = TRUE) : Could not resolve host: api.bitcoincharts.com\n"

rbitcoinchartsapi documentation built on May 2, 2019, 4:02 a.m.