View source: R/available_intervals.R
available_intervals | R Documentation |
Get available intervals for the available_tickers()
on the available_exchanges()
.
available_intervals(
source = "binance",
type = "ohlc",
futures = TRUE
)
source |
A character-vector of length 1. |
type |
character-vector of length 1. One of,
|
futures |
A logical-vector of length 1. TRUE by default. Returns futures market if TRUE, spot market otherwise. |
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()
An invisible()
character-vector containing the available intervals on
the exchange, market and endpoint.
Sample output
#> i Available Intervals at "bybit" (futures): #> v 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1M, 1w #> [1] "1m" "3m" "5m" "15m" "30m" "1h"
Serkan Korkmaz
Other supported calls:
available_exchanges()
,
available_tickers()
## Not run:
# script start;
# available intervals
# at kucoin futures market
cryptoQuotes::available_intervals(
source = 'kucoin',
futures = TRUE,
type = "ohlc"
)
# available intervals
# at kraken spot market
cryptoQuotes::available_intervals(
source = 'kraken',
futures = FALSE,
type = "ohlc"
)
# script end;
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.