We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb67b2 commit c95512fCopy full SHA for c95512f
pandas_datareader/yahoo/daily.py
@@ -127,10 +127,14 @@ def url(self):
127
def _get_params(self, symbol):
128
# This needed because yahoo returns data shifted by 4 hours ago.
129
four_hours_in_seconds = 14400
130
- unix_start = int(time.mktime(self.start.timetuple()))
+ #unix_start = int(time.mktime(self.start.timetuple()))
131
+ unix_start = (self.start - datetime.datetime(1970, 1, 1)).total_seconds()
132
unix_start += four_hours_in_seconds
133
+
134
day_end = self.end.replace(hour=23, minute=59, second=59)
- unix_end = int(time.mktime(day_end.timetuple()))
135
136
+ #unix_end = int(time.mktime(day_end.timetuple()))
137
+ unix_end = (day_end - datetime.datetime(1970, 1, 1)).total_seconds()
138
unix_end += four_hours_in_seconds
139
140
params = {
0 commit comments