Recent Releases of https://github.com/joshuaulrich/quantmod
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.28
Fix FRED URL. Thanks to Nicole Mirea (@nimirea) for the report! #439
Thanks to Michael Chirico for a couple PRs to handle some minor edge cases. #436, #437
Replace "YHOO" with "AAPL" where it is used in documentation, especially in examples. Thanks to @dougedmunds for the report! #435
Update
getSymbols.csv()documentation to note that you have to set theformatargument if the date in the CSV is not in a standard format. Thanks to @reddogg24 for the report that led to this change. #428
- R
Published by joshuaulrich 7 months ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.27
Reduce
getQuote()batch size from 199 to 99. Yahoo started to throw an error for requests of 100 or more symbols at a time. Thanks to @zlfang00 for the report and Ethan B. Smith for the patch! #432, #433Follow best practices by removing the encosing '{}' in
setGeneric("fittedModel<-", ...). Thanks to Michael Chirico for the PR! #431Improve detection of ambiguous 'OHLCVA' colnames in all extractor functions (e.g.
Cl(),OHLC()). This is especially important forLo()becausequantmod::getSymbols("LOW")returns an object where every column name contains the pattern "LOW.". Another example isTTR::stoch(), which returns a column named "slowD". Thanks to Ethan B. Smith for the patch! #24, #305, #306, #426Continue steps to remove
quantmod:::as.zoo.data.frame()by throwing a warning every timequantmod::as.zoo.data.frame()is called. Previously a message was printed the first time the function was called. #414Add
ClOp()function to calculate the return between Close[t-1] and Open[t]. Thanks to Gabriel Kaiser (@GabrielKaiserQFin) for the contribution! #412
- R
Published by joshuaulrich 11 months ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.26
Fix
chart_Series()when 'TA' is a vector. Thanks to @comintel for the report. #403Fix
getOptionChain.yahoo()by using the Yahoo Finance 'crumb' like we do ingetSymbols()andgetQuote(). Thanks to @cotyreh for the report. #407
- R
Published by joshuaulrich about 2 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.25
Fix
getQuote.yahoo()for API changes. Thanks to Ethan B. Smith for the report and patch! Also add error message for users in GDPR countries, since we cannot automatically consent to GDPR and the request fails without consent. #392 #393 #395Fix
getQuote.yahoo()when the user only requested metrics that do not have have a value for 'regularMarketTime'. Set the value to NA in these cases so the output remains the same regardless of whether the endpoint returns a 'regularMarketTime' or not. Thanks to @mehdiMBH for the report! #255Add fields to
getQuote.yahoo()that are returned when no fields are explicitly requested. Thanks to @Courvoisier13 for the report! #335Add intraday endpoint to
getSymbols.yahoo(). Thanks to @kapsner for the report and patch! Also allow suppressing the warning if more than 7 days of data are requested (@eddelbuettel). #351 #381 #399Add warning if
getSymbols()is called with tickers that are reserved words because accessing them requires back-quotes (e.g.NA). #401Fix
allReturns()when 'subset' is specified. Thanks to @Panagis1980 for the report! #402
- R
Published by joshuaulrich over 2 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.24
- Fix
getSymbols.oanda()URL. Thanks to @macray76 for the report. #387
- R
Published by joshuaulrich over 2 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.23
Fix
getQuote.yahoo()error. Thanks to Ethan B. Smith (@ethanbsmith) for the report and patch! #382 #383Add
nameargument toadd_TA(). Thanks to @SamoPP for the suggestion! #377 #205
- R
Published by joshuaulrich over 2 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.22
- Move jsonlite from Suggests to Imports so it doesn't cause a problem when a package that doesn't also Suggest jsonlite uses getSymbols(). Thanks to Kurt Hornik for the report and fix! #380
- R
Published by joshuaulrich almost 3 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.21
Fix S3 method issues. R-devel (83995-ish) added a check for possible S3 method issues. Register methods it found that were not registered:
str.replot(),seriesHi.timeSeries(), andseriesLo.timeSeries().It was also confused by
range.bars()andunique.formula.names(). Removeunique.formula.names()because it wasn't exported or used internally. Renamerange.bars()torangeBars(), which isn't exported.Thanks to Kurt Hornik for the report! #375
Remove "^" prefix from
getSymbols()return value. When the 'Symbols' argument has a "^" prefix andauto.assign = TRUE: *getSymbols()removes the "^" from the object it creates, but * returns the 'Symbols' argument unchanged, and * removes the "^" from the column names of the object it creates.The example below will create an object named
IXICbut the value ofsymwill be "^IXIC".sym <- getSymbols("^IXIC")That means
x <- get(sym)will not work because an object named^IXICdoesn't exist. #371Add 'from' and 'to' arguments to
getSymbols.FRED(). Users expect to be able to set the 'from' and 'to' arguments for FRED data like they can for Yahoo data. Those values were ignored and the entire series was always returned. #368Change interval to 1d for
getDividends()andgetSplits(). The "3mo" setting caused some dividends to be missing for companies that issued monthly dividends. Note that the response to this request also includes all the OHLCV data. But it's small (less than 1MB for 60+ years of daily data). #372Handle errors in
getSplits()andgetDividends().getDividends()didn't handle cases where the download failed, or when dividends needed to be split-adjusted but there were no splits. It also tried to set colnames on the empty xts object that's returned when there are no dividends.getSplits()had the same colnames issue. Check for no splits by testing forNULLbecause that's more explicit. Thanks to Chris Cheung for the report! #366Export
HL(),is.HL(), andhas.HL()functions and add documentation. These were added in 0.4.18 but not exported or included in the documentation.Use Yahoo Finance v8 JSON endpoint and remove the v7 CSV endpoint. There seems to be a rate limit for the number of tickers you can request via the CSV endpoint. The yfinance python library uses the JSON endpoint and doesn't seem to have rate limit issues. #360, #362, #364
- R
Published by joshuaulrich almost 3 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.20
Remove check for Yahoo Finance cookies because the site no longer responds with a cookie, and that caused the connection attempt to fail. This affected
getSymbols(),getDividends(), andgetSplits(). Thanks to several users for reporting, and especially to @pverspeelt and @alihru for investigating potential fixes! #358Update
getSymbols.yahooj()for changes to the web page. #312Add
HL()and supporting functions. These are analogues toHLC(),OHLC(), etc.Thanks for Karl Gauvin for the nudge to implement them.Add adjusted close to
getSymbols.tiingo()output. Thanks to Ethan Smith for the suggestion and patch! #289, #345Use a Date index for
getSymbols.tiingo()daily data. Thanks to Ethan Smith for the report! #350Remove unneeded arguments to the
getSymbols.tiingo()implementation. Thanks to Ethan Smith for the suggestion and patch! #343, #343Load dividends and splits data into the correct environment when the user provides a value for the
envargument. The previous behavior always loaded the data into the environment the function was called from. Thanks to Stewart Wright for the report and patch! #33Make
getOptionChain()return all the fields that Yahoo Finance provides. Thanks to Adam Childers (@rhizomatican) for the patch! #318, #336Add orats as a source for
getOptionChain(). Thanks to Steve Bronder (@SteveBronder) for the suggestion and implementation! #325Improve the error message when
getSymbols()cannot import data for a symbol because the symbol is not valid or does not have historical data. Thanks to Peter Carl for the report. #333Fix the
getMetals()example in the documentation. The example section previously had an example ofgetFX(). Thanks to Gerhard Nachtmann (@nachti) for the report and patch! #330Fix
getQuote()so it returns data when the ticker symbol contains an "&". Thanks to @pankaj3009 for the report! #324Fix
addMACD()whencolis specified. Thanks to @nvalueanalytics for the report! #321
- R
Published by joshuaulrich over 3 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.18
Fix issues handling https:// in
getSymbols.yahooj(). Thanks to @lobo1981 and @tchevri for the reports and @ethanbsmith for the suggestion to move from XML to xml2. #310 #312Fix
getSymbols.yahoo(),getDividends(), andgetSplits()so they all handle download errors and retry again. Thanks for @helgasoft for the report ongetSymbols.yahoo()and @msfsalla for the report ongetDividends()andgetSplits(). #307 #314Add implied volatility and last trade date to
getOptionChain()output. Thanks to @hd2581 and @romanlelek for the reports. And thanks to @rjvelasquezm for noticing the error whenlastTradeDateisNULL. #224 #304Fix
getOptionChain()to throw a warning and returnNULLfor every expiry that doesn't have data. #299Add "Defaults" handling to
getQuote()andgetQuote.yahoo(). Thanks to @ethanbsmith for the report. #291Add Bid and Ask fields to the output from
getQuote(). Thanks to @jrburl for the report and PR. #302Fix "Defaults" to handle unexported function (e.g.
getQuote.av(). Thanks to @helgasoft for the report. #316importDefaults()doesn't callget()on vector with length > 1. Thanks to Kurt Hornik for the report. #319
- R
Published by joshuaulrich about 5 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4.17
chartTheme()now works when quantmod is not attached. Thanks to Kurt Hornik for the report.
- R
Published by joshuaulrich over 5 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4-16
- Remove disk I/O from
getSymbols()andgetQuote(). This avoids any disk contention, and makes the implementation pattern more consistent with other functions that import data. Thanks to Ethan Smith suggestion and PR. #280 #281 - Make
getQuote()robust to symbols without data, so it does not error if one or more symbols are not found. Also return quotes in the same order as the 'Symbols' argument. Thanks to Ethan Smith feature request and PR. #279 #282 #288 - Handle semicolon-delimited symbol string handling to main
getQuote()function. This makesgetQuote()consistent withgetSymbols(). Thanks to Ethan Smith suggestion and PR. #284 #285 - Fix ex-dividend and pay date mapping.
getQuote()returned the dividend pay date labeled as the ex-dividend date. Thanks to @matiasandina for the report. #287 - Fix Yahoo Finance split ratio. The delimiter changed from "/" to ":". For example, a 2-for-1 split was 1/2 but is now "2:1". Thanks to @helgasoft for the report. #292
- Error messages from
getQuote.alphavantage()andgetQuote.tiingo()no longer contain the API key when symbols can't be found. #286 - Fix
getQuote.alphavantage()by replacing the defunct batch quote request with a loop over the single quote request. Thanks to @helgasoft for the report and patch. #296 - Update
getOptionChain()to handle empty volume or open interest Thank to @jrburl for the report and PR. #299
- R
Published by joshuaulrich almost 6 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4-15
Changes
- Add an environment variable to control whether to run tests that import from Yahoo Finance.
getDividends()tests were failing because Yahoo Finance wasn't returning all dividend history for "CF". - Write one message the first time
quantmod::as.zoo.data.frame()is called. This method was added years beforezoo::as.zoo.data.frame()existed, but it should be deprecated in favor of the zoo version. The package that owns the class should also own the methods.
- R
Published by joshuaulrich almost 6 years ago
https://github.com/joshuaulrich/quantmod - CRAN release 0.4-14
BUG FIXES
- Fix
getSymbols.tiingo()so the Open and Close columns aren't swapped. Thanks to Steve Bronder for the report and PR. #233 #234 - Fix
getQuote.yahoo()for quotes in multiple timezones. Thanks to Philippe Verspeelt for the report and PR. #246 #248 - Update
getDividends()because Yahoo Finance now provides raw dividends instead of split-adjusted dividends. Thanks to Douglas Barnard for the report. #253 - Fix
futures.expiry(). Thanks to @pjheink for the report. #257 - Fix
getSymbols.tiingo()to return correct columns for ticker "LOW". Thanks to @srtg4we5gsetrgwhreyt the report. #259 - Fix
getSymbols.yahooj()to avoid infinite loop when the requested symbol doesn't have data. Thanks to Wouter Thielen for the review. #63 - Update
getSplits()because Yahoo Finance now provides the actual split adjustment ratio, instead of the inverse (e.g. now 1/2 instead of 2/1). #265
NEW FEATURES
- Extend
getQuote()to support Tiingo. Thanks to Ethan Smith for the feature request and PR. #247 #250 - Extend
getSymbols()to catch errors for individual ticker symbols and continue processing any remaining ticker symbols, instead of throwing an error. More useful error messages are also provided. Thanks to @helgasoft for testing and feedback. #135
- R
Published by joshuaulrich almost 6 years ago
https://github.com/joshuaulrich/quantmod - CRAN version 0.4-13
BUG FIXES
- Fix
getQuote.yahoo()when a field has no data for all requested tickers. #208 - Expose weekly and monthly adjusted prices from Alpha Vantage's API. #212
- Fix
saveChart()(it actually saves a chart now!). #154 - Update Oanda URL, which fixes
getSymbols.oanda()andgetFX(). #225
NEW FEATURES
- Add
getQuote.alphavantage(), thanks to Ethan Smith for the PR. #213, #223 - Add
getSymbols.tiingo()to import data from Tiingo. Thanks to Steve Bronder for the PR. #220
BREAKING CHANGES
- Google Finance no longer provides data for historical prices or financial statements, so all Google data sources are defunct. #221
- R
Published by joshuaulrich about 7 years ago