crypto_candles: Cryptocurrency Candles

Description Usage Arguments Examples

View source: R/crypto_candles.R

Description

Get cryptocurrency candles

Usage

1
2
3
4
5
6
7
8
9
crypto_candles(
  symbol,
  resolution = "D",
  from = lubridate::today() - 7,
  to = lubridate::today(),
  format = "json",
  adjusted = "true",
  ...
)

Arguments

symbol

Cryptocurrency symbol

resolution

1-minute, 5-minute, 15-minute, 30-minute, 60-minute, daily, weekly and monthly

from

Begin date

to

End date

format

json

adjusted

Adjusted prices ('true') or not ('false')

Examples

1
2
3
4
5
6
7
8
9
crypto_candles('COINBASE:ETC-BTC')
crypto_candles('COINBASE:ETC-BTC', resolution = '1')
crypto_candles('COINBASE:ETC-BTC', resolution = '5')
crypto_candles('COINBASE:ETC-BTC', resolution = '15')
crypto_candles('COINBASE:ETC-BTC', resolution = '30')
crypto_candles('COINBASE:ETC-BTC', resolution = '60')
crypto_candles('COINBASE:ETC-BTC', resolution = 'D', from = today() - 365, to = today())
crypto_candles('COINBASE:ETC-BTC', from = today() - 365, resolution = 'W')
crypto_candles('COINBASE:ETC-BTC', from = today() - 365, resolution = 'M')

threadingdata/finnhubr documentation built on Aug. 10, 2020, 12:48 a.m.