Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change default start to 1900-01-01
  • Loading branch information
fredrik-corneliusson committed Nov 13, 2022
1 parent 8771abf commit d5fed34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ def history(self, period="1mo", interval="1d",
if interval == "1m":
start = end - 604800 # Subtract 7 days
else:
# max = 1950
_UNIX_TIMESTAMP_1950 = -631159200
start = _UNIX_TIMESTAMP_1950
_UNIX_TIMESTAMP_1900 = -2208994789
start = _UNIX_TIMESTAMP_1900
else:
start = utils._parse_user_dt(start, tz)
params = {"period1": start, "period2": end}
Expand Down

0 comments on commit d5fed34

Please sign in to comment.