Skip to content

Commit

Permalink
Merge pull request #1170 from ranaroussi/patch/default-start
Browse files Browse the repository at this point in the history
Backport #1169 (default start)
  • Loading branch information
ValueRaider authored Nov 13, 2022
2 parents 2d32a6e + d11cd85 commit bca5693
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 @@ -167,7 +167,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 bca5693

Please sign in to comment.