pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
1.94k stars 291 forks source link

when run example code, failure(python3.11) YFTzMissingError('$%ticker%: possibly delisted; No timezone found') #246

Closed xinmans closed 2 days ago

xinmans commented 3 weeks ago

when run below example code, failure(python3.11)

import ffn

print(ffn.get('aapl:Open,aapl:High,aapl:Low,aapl:Close', start='2010-01-01', end='2014-01-01').head())

 python3.11 a.py
Failed to get ticker 'AAPL' reason: Expecting value: line 1 column 1 (char 0)
[*********************100%%**********************]  1 of 1 completed

1 Failed download:
['AAPL']: YFTzMissingError('$%ticker%: possibly delisted; No timezone found')
Failed to get ticker 'AAPL' reason: Expecting value: line 1 column 1 (char 0)
[*********************100%%**********************]  1 of 1 completed

1 Failed download:
['AAPL']: YFTzMissingError('$%ticker%: possibly delisted; No timezone found')
Failed to get ticker 'AAPL' reason: Expecting value: line 1 column 1 (char 0)
[*********************100%%**********************]  1 of 1 completed

1 Failed download:
['AAPL']: YFTzMissingError('$%ticker%: possibly delisted; No timezone found')
Failed to get ticker 'AAPL' reason: Expecting value: line 1 column 1 (char 0)
[*********************100%%**********************]  1 of 1 completed

1 Failed download:
['AAPL']: YFTzMissingError('$%ticker%: possibly delisted; No timezone found')
Empty DataFrame
Columns: [aaplopen, aaplhigh, aapllow, aaplclose]
Index: []
quant12345 commented 2 days ago

@xinmans this is probably clearly related to the library versions. Everything works for me: Python 3.12, pandas 2.2.2, numpy 2.1.1.