yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

ticker "HSTECH.HK" , history data not showing ,but only current day data listed

Open OliverYangKe opened this issue 2 years ago • 2 comments

Describe bug

for ticker "HSTECH.HK", it is a index in HONGKONG market, should be ^HTI , and there is an error to get history data while only today data is showing. https://hk.finance.yahoo.com/quote/HSTECH.HK/history?p=HSTECH.HK

Simple code that reproduces your problem

1 Failed download: ['HSTECH.HK']: Exception("%ticker%: Period 'max' is invalid, must be one of ['1d', '5d']")

Debug log

is bad data

Bad data proof

Screenshot 2023-12-07 at 14 07 44

yfinance version

0.2.32

Python version

No response

Operating system

No response

OliverYangKe avatar Dec 07 '23 06:12 OliverYangKe

For proof you need to show that Yahoo has the data.

ValueRaider avatar Dec 07 '23 09:12 ValueRaider

For this ticker Yahoo provides only last price. Valid period for request is one year

bot-unit avatar Dec 07 '23 09:12 bot-unit