iexfinance icon indicating copy to clipboard operation
iexfinance copied to clipboard

get_historical_data() documentation

Open rsheftel opened this issue 4 years ago • 2 comments

The get_historical_data() function ( https://addisonlynch.github.io/iexfinance/stable/stocks.html#daily ) appears to return the adjusted data as defined in the IEX docs ( https://iexcloud.io/docs/api/#historical-prices ).

I would suggest in the function documentation to make clear that the returned values are the adjusted values.

I would also request an option to return the un-adjusted values as well because IEX only adjusts for splits and not dividends which is unusual and unexpected behavior.

rsheftel avatar Sep 30 '19 21:09 rsheftel

Thanks. Perhaps it would be better to return the unadjusted values by default given the unusual behavior you pointed out. I will also add a parameter (adjusted) to this function.

addisonlynch avatar Oct 08 '19 22:10 addisonlynch

It looks like in the new v0.5 release you now return the entire data provided by IEX including raw un-adjusted and adjusted data. You can close this now.

rsheftel avatar Jan 10 '21 23:01 rsheftel