Learn R Programming

cryptoQuotes (version 1.3.0)

availableIntervals: Get available intervals

Description

[Deprecated]

Usage

availableIntervals(source = "binance", type = "ohlc", futures = TRUE)

Value

An invisible()

character vector containing the available intervals on the exchange, market and endpoint

Arguments

source

A character-vector of length 1. binance by default. See available_exchanges() for available exchanges.

type

character-vector of length 1. See details

futures

A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise.

Author

Serkan Korkmaz

Details

Available types

  • ohlc: Open, High, Low, Close and Volume

  • lsratio: Long-Short ratio

  • fundingrate: Funding rates

  • interest: Open perpetual contracts on both sides

Limits

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

Run this code
if (FALSE) {
  # script:
  # date: 2023-10-06
  # author: Serkan Korkmaz, serkor1@duck.com
  # objective:
  # script start;

  # available intervals
  # at kucoin futures market
  cryptoQuotes::available_intervals(
    source = 'kucoin',
    futures = TRUE
  )

  # available intervals
  # at kraken spot market
  cryptoQuotes::available_intervals(
    source = 'kraken',
    futures = FALSE
  )

  # script end;
}

Run the code above in your browser using DataLab