Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the names in `getSybols.tiingo` so Open is not swapped with Close #234

Closed
SteveBronder opened this issue Apr 28, 2018 · 1 comment
Closed

Comments

@SteveBronder
Copy link
Contributor

@SteveBronder SteveBronder commented Apr 28, 2018

Description

Open and Close need to be swapped for adjusted column names in getSymbols.tiingo for t 6c6ddbe

See here

https://github.com/joshuaulrich/quantmod/blob/master/R/getSymbols.R#L1409

Minimal, reproducible example

riingo <- riingo_prices(c("IBM"), start_date = "2018-04-21", end_date = Sys.Date(), resample_frequency = "daily")

#     open   high     low  close  volume
# 1 145.03 145.96 144.330 145.86 5315625
# 2 146.51 147.30 144.530 145.56 4916476
# 3 145.79 146.40 144.111 145.94 7324654
# 4 146.60 147.36 146.200 146.72 4265812
# 5 146.84 147.25 145.660 146.48 3205482

getSymbols("IBM", src= "tiingo",from= "2018-04-21", to= Sys.Date(),adjust =TRUE)
#              IBM.Open IBM.High IBM.Low IBM.Close IBM.Volume
# 2018-04-23   145.86   145.96 144.330    145.03    5315625
# 2018-04-24   145.56   147.30 144.530    146.51    4916476
# 2018-04-25   145.94   146.40 144.111    145.79    7324654
# 2018-04-26   146.72   147.36 146.200    146.60    4265812
# 2018-04-27   146.48   147.25 145.660    146.84    3205482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.