Description Usage Arguments Examples
View source: R/public_candles.R
GET Candlestick/Kline/OHLC data
1 2 3 4 5 6 7 8 9 10 11 12 |
exchange |
Which exchange to use for price and market data. Choices are "binance", "binance-us", "bitstamp", "bittrex", "coinbase-pro", "crypto.com", "ftx", "ftx-us", "gemini", "huobi", "kraken","kucoin", and "poloniex". |
base_asset |
Base asset (default "BTC") |
quote_asset |
Quote asset (default "USD") |
dry_run |
If TRUE, call httr2::req_dry_run, which shows the API call without actually sending it. |
... |
Query parameters passed to API call |
time_frame |
Parameter used for chart interval and timeframe.
|
start_time |
Parameter used for chart beginning time.
|
end_time |
Parameter used for chart end time.
|
limit |
Parameter used to limit number of candles.
|
candle_type |
Type of candles.
|
1 2 3 4 5 6 7 8 9 10 11 12 | public_candles("binance", time_frame = "1m")
public_candles("bitstamp", time_frame = 60, limit = 1)
public_candles("bittrex", time_frame = "MINUTE_1")
public_candles("coinbase-pro")
public_candles("crypto.com", time_frame = "1m")
public_candles("ftx", time_frame = 60)
public_candles("ftx-us", time_frame = 60)
public_candles("gemini", time_frame = "1m")
public_candles("huobi", time_frame = "1min")
public_candles("kraken")
public_candles("kucoin", time_frame = "1min")
public_candles("poloniex", time_frame = 300, start_time = 1546300800, end_time = 1546646400)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.