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

Description Usage Arguments Value Note References See Also Examples

View source: R/market_btcchina.R

Description

Send request to btcchina market API.

Usage

1
2
market.api.query.btcchina(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.

Value

Character string a response from markets API call.

Note

Market specific btcchina method param should be provided in req object.

References

https://www.btcc.com/apidocs/spot-exchange-market-data-rest-api https://www.btcc.com/apidocs/spot-exchange-trade-json-rpc-api

See Also

market.api.query

Examples

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)

jangorecki/Rbitcoin documentation built on May 18, 2019, 12:24 p.m.