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

lookback #84

Closed
drsramd opened this issue Nov 4, 2018 · 1 comment · Fixed by #86
Closed

lookback #84

drsramd opened this issue Nov 4, 2018 · 1 comment · Fixed by #86
Labels
Milestone

Comments

@drsramd
Copy link

drsramd commented Nov 4, 2018

Summary (include Python version)

python 3.6.4
stock.StockReader.get_time_series returns '1m' lookback date regardless of lookback parameter passed (e. g. pass '6m' still returns '1m' data

Date/time of issue

2018/11/03

Expected behavior

data from 2018/06/03 to 2018/11/03 returned

Actual behavior

data from 2018/10/03 to 2018/11/03 returned

@addisonlynch
Copy link
Owner

addisonlynch commented Nov 11, 2018

This appears to be a bug in 0.3.4. The repair will be pushed to the master branch tomorrow. Once downloading the development repo, use the range_ parameter to specify the desired period.

For 1m:

from iexfinance import Stock

aapl = Stock("AAPL")
aapl.get_time_series(range_='1m')

for 6m:

a.get_time_series(range_='6m')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants