forex_candles: Forex Candles

Description Usage Arguments Examples

View source: R/forex_candles.R

Description

Get forexcandles

Usage

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

Arguments

symbol

Forex symbol

resolution

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

from

Begin date - default 30-days from today

to

End date - current date

format

json

adjusted

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

Examples

1
2
3
4
5
6
7
8
9
forex_candles('OANDA:EUR_USD')
forex_candles('OANDA:EUR_USD', resolution = '1') # Not working?
forex_candles('OANDA:EUR_USD', resolution = '5')
forex_candles('OANDA:EUR_USD', resolution = '15')
forex_candles('OANDA:EUR_USD', resolution = '30')
forex_candles('OANDA:EUR_USD', resolution = '60')
forex_candles('OANDA:EUR_USD', resolution = 'D', from = today() - 365, to = today())
forex_candles('OANDA:EUR_USD', from = today() - 365, resolution = 'W')
forex_candles('OANDA:EUR_USD', from = today() - 365, resolution = 'M')

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