エラー内容
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に登録し、再起動。終了。