2022-12-18から1日間の記事一覧

python yfinance でのデータ取得

インストール $ pip install yfinance --upgrade --no-cache-dir サンプル import yfinance as yf #ダウのヒストリカル取得 stock_price = yf.download("^DJI", start="2000-1-3", end="2099-12-31") # CSVで出力 stock_price.to_csv(aOutPath) ネタ元 datat…