kouchin555
@kouchin555

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

yfinanceから株式情報を取得しようとするとエラー

Q&A

Closed

解決したいこと

yfinanceからAPIで株式情報を取得しようとするとエラー
今まで動いていたプログラム
症状発生は2月20日、2日前からです
yfinance APIは無料で非サポートと聞いていたので、エラー起きても文句は言えないのですが

Pythonプログラム

import yfinance as yf
import matplotlib.pyplot as plt
from datetime import datetime, timedelta

#データ取得
symbol = "GLDM"
end_date = datetime.today().strftime('%Y-%m-%d')  # 今日の日付
start_date = (datetime.today() - timedelta(days=365)).strftime('%Y-%m-%d')  # 1年前

#Yahoo Finance からデータ取得
data = yf.download(symbol, start=start_date, end=end_date)

発生しているエラー

[*********************100%***********************]  1 of 1 completed
ERROR:yfinance:
1 Failed download:
ERROR:yfinance:['GLDM']: YFRateLimitError('Too Many Requests. Rate limited. Try after a while.')```

0

2Answer

Comments

  1. @kouchin555

    Questioner

    皆さま
    ありがとうございます
    聞いてよかったです

Your answer might help someone💌