Description Usage Arguments Examples
View source: R/forex_candles.R
Get forexcandles
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",
...
)
|
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') |
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.