An R client to some Cryptocurrency exchanges:
- Binance API docs: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md
- Huobi API docs: https://github.com/huobiapi/API_Docs_en/wiki
Example on getting data from Binance on the most recent Bitcoin/USDT changes:
library(binancer)
binance_klines('BTCUSDT', interval = '1m')
Extend this to multiple pairs:
rbindlist(lapply(c("ETHBTC", "LTCBTC"), binance_klines, interval = "1d", limit = 200))
Same on Huobi:
huobi_klines('btcusdt')