Rbitcoin: R & bitcoin integration

Description References See Also Examples

Description

Utilities related to Bitcoin and other cryptocurrencies. Core functionalities are:

You need to note that imported digest package docs states: Please note that this package is not meant to be deployed for cryptographic purposes for which more comprehensive (and widely tested) libraries such as OpenSSL should be used. Still digest is one of the top downloaded package from CRAN.
To do not get banned by market's API anti-DDoS protection user should use: Sys.sleep(10) between the API calls or antiddos function.
It is advised to maintain your API keys security level as tight as possible, if you do not need withdraw api method be sure to disable it for api keys.
You can print debug messages of Rbitcoin to console using verbose argument in FUNs or options("Rbitcoin.verbose" = 1).
Two params ssl.verify and curl.verbose have been deprecated since 0.8.5. They can and should be controlled using options("RCurlOptions"). SSL verify is by default active.
At the time of writing the most recent market's API version were used:

SSL is by default active, to disable SSL set RCurlOptions to ssl.verify* = FALSE and cainfo = NULL, see examples. In case of SSL error try update certificate CA file (cacert.pem in location mentioned below as cainfo), see references for CA file source. Alternatively you can always disable SSL.

For others package-level options see examples.

BTC donation: bitcoin:15Mb2QcgF3XDMeVn6M7oCG6CQLw4mkedDi

References

Package discussion thread: https://bitcointalk.org/index.php?topic=343504
Example SSL CA file source: http://curl.haxx.se/docs/caextract.html

See Also

market.api.process, blockchain.api.process, wallet_manager, Rbitcoin.plot, api.dict, available_wallet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# default options used by Rbitcoin

# print Rbitcoin processing to console set "Rbitcoin.verbose" to 1 (or more)
options(Rbitcoin.verbose=0)

# print Rcurl processing to console set RCurlOptions[["verbose"]] to TRUE
options(RCurlOptions=list(ssl.verifypeer = TRUE,
                          ssl.verifyhost = TRUE,
                          cainfo = system.file("CurlSSL","cacert.pem",package="RCurl"),
                          verbose = FALSE))

# currency type dictionary used by wallet_manager
options(Rbitcoin.ct.dict = list(
  crypto = c('BTC','LTC','NMC', ...),
  fiat = c('USD','EUR','GBP', ...)
))

## End(Not run)

Rbitcoin documentation built on May 2, 2019, 3:41 p.m.