Description Usage Arguments Details Value Examples
Get historical data from specified symbols
1 | get_kucoin_prices(symbols, from, to, frequency)
|
symbols |
A |
from |
A |
to |
A |
frequency |
A |
There are several supported frequencies:
"1 minute"
"3 minutes"
"5 minutes"
"15 minutes"
"30 minutes"
"1 hour"
"2 hours"
"4 hours"
"6 hours"
"8 hours"
"12 hours"
"1 day"
"1 week"
A tibble
containing prices data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # import library
library(rucoin)
# get one pair of symbol prices
prices <- get_kucoin_prices(
symbols = "KCS/USDT",
from = "2019-06-01 00:00:00",
to = "2019-06-02 00:00:00",
frequency = "1 hour"
)
# quick check
prices
# get multiple pair of symbols prices
prices <- get_kucoin_prices(
symbols = c("KCS/USDT", "BTC/USDT", "KCS/BTC"),
from = "2019-06-01 00:00:00",
to = "2019-06-02 00:00:00",
frequency = "1 hour"
)
# quick check
prices
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.