atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
286 stars 125 forks source link

stock_info.get_data (interval = '1m') issue #51

Open shahab-cl opened 3 years ago

shahab-cl commented 3 years ago

If interval is set to 1m, then the end_dte calculation

2021-05-26 13:32:06,612.612 [MainThread] [connectionpool.py:452 - _make_request() ] https://query1.finance.yahoo.com:443 "GET /v8/finance/chart/PCT?period1=1621603926&period2=1622035926&interval=1m&events=div%2Csplits HTTP/1.1" 200 None

Converting period2 (1622035926) comes out to be GMT: Wednesday, May 26, 2021 1:32:06 PM Your time zone: Wednesday, May 26, 2021 9:32:06 AM GMT-04:00 DST Relative: 4 hours ago