Learn R Programming

Rbitcoin (version 0.9.2)

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

Description

Send request to bitmarket market API.

Usage

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

Arguments

url
character with url on which query needs to be passed.
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.

References

https://www.bitmarket.pl/docs.php?file=api_private.html

See Also

market.api.query

Examples

Run this code
## Not run: 
# # ticker
# market.api.query.bitmarket(url = 'https://www.bitmarket.pl/json/LTCPLN/ticker.json')
# # wallet
# market.api.query.bitmarket(url = 'https://www.bitmarket.pl/api2/',
#                            req = list(method = 'info'),
#                            key = '', secret = '')
# ## End(Not run)

Run the code above in your browser using DataLab