stock_candles: Stock Candles

Description Usage Arguments Examples

View source: R/stock_candles.R

Description

Get stock candles

Usage

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

Arguments

symbol

Stock ticker

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
stock_candles('NVDA')
stock_candles('NVDA', resolution = '1')
stock_candles('NVDA', resolution = '5')
stock_candles('NVDA', resolution = '15')
stock_candles('NVDA', resolution = '30')
stock_candles('NVDA', resolution = '60')
stock_candles('NVDA', resolution = 'D')
stock_candles('NVDA', from = lubridate::today() - 365, resolution = 'W')
stock_candles('NVDA', from = lubridate::today() - 365, resolution = 'M')

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