available_intervals {cryptoQuotes} | R Documentation |
Get available intervals
Description
Get available intervals for the available_tickers()
on the available_exchanges()
.
Usage
available_intervals(
source = "binance",
type = "ohlc",
futures = TRUE
)
Arguments
source |
A character-vector of length 1. |
type |
character-vector of length 1. One of,
|
futures |
A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise. |
Details
The endpoints supported by the available_exchanges()
are not uniform,
so exchanges available for, say, get_lsratio()
is not necessarily
the same as those available for get_quote()
Value
An invisible()
character-vector containing the available intervals on
the exchange, market and endpoint.
Sample output
#> i Available Intervals at "bybit" (futures): #> v 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1M, 1w #> [1] "1m" "3m" "5m" "15m" "30m" "1h"
Author(s)
Serkan Korkmaz
See Also
Other supported calls:
available_exchanges()
,
available_tickers()
Examples
## Not run:
# script start;
# available intervals
# at kucoin futures market
cryptoQuotes::available_intervals(
source = 'kucoin',
futures = TRUE,
type = "ohlc"
)
# available intervals
# at kraken spot market
cryptoQuotes::available_intervals(
source = 'kraken',
futures = FALSE,
type = "ohlc"
)
# script end;
## End(Not run)