Skip to content

Commit fcc7aaf

Browse files
committed
Fix query1 on types int & bool
1 parent ef2fbac commit fcc7aaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

yfinance/scrapers/quote.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,8 @@ def _fetch(self, proxy):
257257
query1_info[k] = v["fmt"] if k in {"regularMarketTime", "postMarketTime"} else v["raw"]
258258
elif isinstance(v, str):
259259
query1_info[k] = v.replace("\xa0", " ")
260-
if "firstTradeDateMilliseconds" in query1_info:
261-
query1_info["firstTradeDateMilliseconds"] = pd.Timestamp(
262-
query1_info["firstTradeDateMilliseconds"], unit="ms", tz="UTC"
263-
).tz_convert(query1_info.get("exchangeTimezoneName", "UTC"))
260+
elif isinstance(v, (int, bool)):
261+
query1_info[k] = v
264262
self._info = query1_info
265263

266264
def _fetch_complementary(self, proxy):

0 commit comments

Comments
 (0)