Advertisement
mmyjh86

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

Oct 24th, 2020
2,818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement