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

Description Usage Arguments Value References See Also Examples

Description

Send request to bitstamp market API.

Usage

1
2
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

1
2
3
4
5
6
7
8
9
## 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)

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