available_exchanges {cryptoQuotes}R Documentation

Get available exchanges

Description

[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.

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 available exchanges

Author(s)

Serkan Korkmaz

See Also

Other supported calls: available_intervals(), available_tickers()

Examples

# script start;

# 1) available exchanges
# on ohlc-v endpoint
cryptoQuotes::available_exchanges(
  type = "ohlc"
  )

# 2) available exchanges
# on long-short ratios
cryptoQuotes::available_exchanges(
  type = "lsratio"
)

# script end;

[Package cryptoQuotes version 1.3.1 Index]