Get a vector of all available exchanges passed into the source
argument of the get-functions.
Arguments
- 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.
Value
An invisible()
character-vector containing available exchanges
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 supported calls:
available_intervals()
,
available_tickers()
Examples
# script start;
# 1) available exchanges
# on ohlc-v endpoint
cryptoQuotes::available_exchanges(
type = "ohlc"
)
#> ℹ Available Exchanges:
#> ✔ binance, bitmart, bybit, crypto.com, huobi, kraken, kucoin, mexc
# 2) available exchanges
# on long-short ratios
cryptoQuotes::available_exchanges(
type = "lsratio"
)
#> ℹ Available Exchanges:
#> ✔ binance, bybit, kraken
# script end;