def _short_skip_codes(self): os.chdir("./data/stock/kospi-short") kospi_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") os.chdir("./data/stock/kosdaq-short") kosdaq_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") return kospi_list + kosdaq_list
def _short_skip_codes(self): os.chdir("./update_data/stock-short/kospi-short/{}".format(TODAY)) kospi_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../../") os.chdir("./update_data/stock-short/kosdaq-short/{}".format(TODAY)) kosdaq_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../../") os.chdir("./update_data/stock-short/etf-short/{}".format(TODAY)) etf_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../../") return kospi_list + kosdaq_list + etf_list
def _ohlcv_skip_codes(self): os.chdir("./update_data/stock-ohlcv/kospi-ohlcv") kospi_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") os.chdir("./update_data/stock-ohlcv/kosdaq-ohlcv") kosdaq_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") os.chdir("./update_data/stock-ohlcv/etf-ohlcv") etf_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") return kospi_list + kosdaq_list + etf_list
def _buysell_skip_codes(self): os.chdir("./data/stock-buy/kospi-buy") kospi_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") os.chdir("./data/stock-buy/kosdaq-buy") kosdaq_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") os.chdir("./data/stock-buy/etf-buy") etf_list = [json.split(".")[0] for json in os.listdir()] os.chdir("../../../") return kospi_list + kosdaq_list + etf_list