Learn R Programming

Rbitcoin (version 0.9.2)

market.api.query.bitstamp: Send request to bitstamp market API

Description

Send request to bitstamp market API.

Usage

market.api.query.bitstamp(url, client_id, key, secret, req = list(), verbose = getOption("Rbitcoin.verbose", 0))

Arguments

url
character with url on which query needs to be passed.
client_id
character. Bitstamp market specific parameter used in private API call authorization (check reference for more information).
key
character API key used in private API calls.
secret
character API secret used in private API calls.
req
list of object passed to API: price and amount of opening order, id of cancelling order, etc..
verbose
integer. Rbitcoin processing messages, print to console if verbose > 0, each subfunction reduce verbose by 1. If missing then getOption("Rbitcoin.verbose",0) is used, by default 0.

Value

R object created by fromJSON decoded result from market's API call. Cancel order is an exception handled by hardcode, as bitstamp will not return json format for that method.

References

https://www.bitstamp.net/api/

See Also

market.api.query

Examples

Run this code
## Not run: 
# # ticker
# market.api.query.bitstamp(url = 'https://www.bitstamp.net/api/ticker/')
# # wallet
# market.api.query.bitstamp(url = 'https://www.bitstamp.net/api/balance/',
#                           client_id = '',
#                           key = '', secret = '')
# ## End(Not run)

Run the code above in your browser using DataLab