Skip to contents

The available intervals depends on the exchange that you use as your source of market data. It is, for example, only possible to get monthly data from binance while kucoin doesn’t support it.

To get an overview of the available intervals, the cryptoQuotes::availableIntervals-function can be used. It takes two arguments, source and futures.

Note: The same intervals are not necessarily equal across markets on the same exchange

cryptoQuotes::availableIntervals(
  source = 'kucoin',
  futures = TRUE
)
#>  Available Intervals at kucoin (futures)
#>  1m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 1w
cryptoQuotes::availableIntervals(
  source = 'binance',
  futures = TRUE
)
#>  Available Intervals at binance (futures)
#>  1s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M

The available intervals are directly passed as character using theinterval argument, in the cryptoQuotes::getQuote-function.