Skip to contents

[Stable]

Get a vector of all available exchanges passed into the source argument of the get-functions.

Usage

available_exchanges(
   type = "ohlc"
)

Arguments

type

character-vector of length 1. One of,

  • "ohlc" - Available exchanges for Open, High, Low, Close and Volume market data. See the get_quote()-function.

  • "lsratio" - Available exchanges for Long-Short ratios. See the get_lsratio()-function.

  • "fundingrate" - Available exchanges for Funding rates. See the get_fundingrate()-function.

  • "interest" - Available exchanges for Open interest on perpetual contracts on both sides. See the get_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()

Author

Serkan Korkmaz

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;