dpguthrie / dpguthrie/yahooquery

Ticker.history return messy tz info

Open
#208 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Hi I notice the price history returns messy tz info when working with more than one ticker in different tz

Example:
tmp_ticker= yq.Ticker( ['CLK24.NYM', '6618.HK'])
a= tmp_ticker.history(interval='5m', start='2023-07-10').reset_index()

part of returns:

6618.HK,2023-07-13 15:45:00+08:00,55.50000,55.80000,55.50000,55.70000,147000.00000
6618.HK,2023-07-13 15:50:00+08:00,55.80000,55.90000,55.70000,55.75000,157050.00000
6618.HK,2023-07-13 15:55:00+08:00,55.80000,55.80000,55.55000,55.60000,86600.00000
6618.HK,2023-07-13 **04:05:00-04:00**,55.60000,55.70000,55.60000,55.70000,359100.00000
6618.HK,2023-07-14 09:30:00+08:00,55.70000,56.15000,55.35000,55.90000,0.00000
6618.HK,2023-07-14 09:35:00+08:00,55.70000,55.75000,55.10000,55.35000,80950.00000

pd.__version__ =1.5.3
yq.__version__= 2.3.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.