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

close_only=True doesn't download adjusted closing prices #266

Open
martinemilander opened this issue Apr 9, 2021 · 1 comment
Open

close_only=True doesn't download adjusted closing prices #266

martinemilander opened this issue Apr 9, 2021 · 1 comment

Comments

@martinemilander
Copy link

get_historical_data() doesn't download the adjusted closing prices when close_only=True argument is passed. According to IEX Cloud API Docs the adjusted closing prices should be retrieved.

@NexVeridian
Copy link

NexVeridian commented Apr 10, 2021

It seems to work as expected for me
What output are you seeing with your code

from iexfinance.stocks import get_historical_data
import pandas as pd
from datetime import timedelta

df = pd.DataFrame()
LiveToken = "pk_*********"
StartD = date.today() - timedelta(days=1)
EndD = date.today()

df = get_historical_data("SPY", start=StartD, end=EndD, close_only=True, output_format="pandas", token=LiveToken)
print(df)
             close    volume
2021-04-08  408.52  57863114
2021-04-09  411.49  61104559

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

No branches or pull requests

2 participants