mmyjh86

[YouTube] 벡테스팅 - 변동성돌파전략 : 데이터 수집

Oct 24th, 2020
882
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import pandas as pd
  3. import time
  4. os.mkdir("코스피")
  5.  
  6. ticker_list = stock.get_market_ticker_list("20200831")
  7. for ticker in ticker_list:
  8.     df = stock.get_market_ohlcv_by_date("20200101", "20200831", ticker)
  9.     df.to_excel(f"코스피/{ticker}.xlsx")
  10.     time.sleep(0.5)
RAW Paste Data