Description Usage Arguments Value Note References See Also Examples
View source: R/market_btcchina.R
Send request to btcchina market API.
1 2 | market.api.query.btcchina(url, key, secret, req = list(),
verbose = getOption("Rbitcoin.verbose", 0))
|
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 |
Character string a response from markets API call.
Market specific btcchina method
param should be provided in req
object.
https://www.btcc.com/apidocs/spot-exchange-market-data-rest-api https://www.btcc.com/apidocs/spot-exchange-trade-json-rpc-api
1 2 3 4 5 6 7 8 9 | ## Not run:
# ticker
market.api.query.btcchina(url = 'https://data.btcchina.com/data/ticker?market=btccny')
# wallet
market.api.query.btcchina(url = 'https://api.btcc.com/api_trade_v1.php',
req = list(method = 'getAccountInfo', id=1),
key = '', secret = '')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.