Arguments
- source
A character-vector of length 1.
binanceby default. Seeavailable_exchanges()for available exchanges.- type
character-vector of length 1. One of,
"ohlc"- Available exchanges for Open, High, Low, Close and Volume market data. See theget_quote()-function."lsratio"- Available exchanges for Long-Short ratios See theget_lsratio()-function."fundingrate"- Available exchanges for Funding rates. See theget_fundingrate()-function."interest"- Available exchanges for Open interest on perpetual contracts on both sides. See theget_openinterest()-function.
- futures
A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise.
Value
An invisible()
character-vector containing the available intervals on the exchange, market and endpoint.
Sample output
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()
See also
Other deprecated:
availableExchanges(),
availableTickers(),
getFGIndex(),
getLSRatio(),
getQuote()
Examples
if (FALSE) {
# 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;
}
