1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【エラー】pandas_datareaderでiexから株価取得

Posted at

エラー内容

ValueError: The IEX Cloud API key must be provided either through the api_key variable or through the environment variable IEX_API_KEY

エラーの意味

IEXから株価を取得するには、IEX Cloud ConsoleからのAPIキーが必要。それをIEX_API_KEYとして環境変数に登録して欲しい。

参考: https://pandas-datareader.readthedocs.io/en/latest/remote_data.html#remote-data-iex

IEX Cloud Console登録

IEX Cloud Console に無料で登録し、APIキーを取得。

そのあと

APIキーをIEX_API_KEYに登録し、再起動。終了。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?