Description References See Also Examples
Utilities related to Bitcoin and other cryptocurrencies. Core functionalities are:
market.api.query
- launch query on market's API (bitstamp
, btce
, kraken
, bitmarket
). Both public and private API calls supported. All currency pairs supported.
market.api.process
- integration of market's processing structures: pre-process of API request, post-process API results, market error catching. Input and output unified structure. Requires API dictionary definition, for details of package built-in dictionary see api.dict
.
blockchain.api.query
- launch query on blockchain.info API json interface.
blockchain.api.process
- postprocess blockchain api result, transform to data.table
.
Rbitcoin.plot
- illustrate the data returned by some Rbitcoin functions.
wallet_manager
- track the assets amounts and values in multiple wallet sources.
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:
bitstamp v2 (public) / ? (private)
btce v2 (public) / "tapi" (private)
kraken v0
bitmarket v2
mtgox v2 (market already closed)
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
Package discussion thread: https://bitcointalk.org/index.php?topic=343504
Example SSL CA file source: http://curl.haxx.se/docs/caextract.html
market.api.process
, blockchain.api.process
, wallet_manager
, Rbitcoin.plot
, api.dict
, available_wallet
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.