ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.96k stars 2.45k forks source link

No options data. again ! #1861

Closed mmx5 closed 9 months ago

mmx5 commented 9 months ago

Describe bug

can't recive options data of the stock. it returns empty list.

Simple code that reproduces your problem

import yfinance as yf import sys yf.enable_debug_mode()

print('run') print(sys.version)

s_ticker = '^XSP' ticker = yf.Ticker(s_ticker)

data = ticker.get_fast_info()

data = ticker.info

data = ticker.options print('**** OPTIONS DATES ^XSP *') print(data) print('**** END OPTIONS DATES ^XSP *') print(' ')

Debug log

run 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] **** OPTIONS DATES ^XSP * () **** END OPTIONS DATES ^XSP *

Bad data proof

No response

yfinance version

0.2.25

Python version

3.10.0

Operating system

win 10 22H2

mmx5 commented 9 months ago

After 2 days it strangely works back just after couple of mins i opened this issue. so i'm closing the issue.

ValueRaider commented 9 months ago

Why did you skip the first instruction? I'm genuinely asking, this is the real problem.

Are you up-to-date?

mmx5 commented 9 months ago

Yes, i am.

ValueRaider commented 9 months ago

0.2.25 is not latest