Skip to content

Commit

Permalink
Merge pull request #1169 from ppeloton/fix-issue-980
Browse files Browse the repository at this point in the history
Fixing issue 980 by changing default timestamp for start parameter in…
  • Loading branch information
ValueRaider authored Nov 13, 2022
2 parents 2a0e149 + 9ba3d5a commit ea95d71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def history(self, period="1mo", interval="1d",
if interval == "1m":
start = end - 604800 # Subtract 7 days
else:
start = -631159200
#time stamp of 01/01/1900
start = -2208994789
else:
start = utils._parse_user_dt(start, tz)
params = {"period1": start, "period2": end}
Expand Down

0 comments on commit ea95d71

Please sign in to comment.