This code is based on https://github.com/daroczig/binancer package Use it at your own risk
Change binance.com
with binance.us
An R client to some Cryptocurrency exchanges:
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.