available_intervals {cryptoQuotes}R Documentation

Get available intervals

Description

[Stable]

Get available intervals for the available_tickers() on the available_exchanges().

Usage

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

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.

Details

Available types

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()

Value

An invisible() character vector containing the available intervals on the exchange, market and endpoint

Author(s)

Serkan Korkmaz

See Also

Other supported calls: available_exchanges(), available_tickers()

Examples

## Not run: 
  # 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;

## End(Not run)

[Package cryptoQuotes version 1.3.0 Index]