This commit is contained in:
dosang.yoon
2022-07-17 02:12:38 +09:00
parent 03a6233a9b
commit 5c098d84fb
3 changed files with 339 additions and 251 deletions

View File

@@ -184,48 +184,34 @@ class Simulation:
if __name__ == "__main__":
"""
# to check bying
stock_codes = {
# 122630
"252670": [
('20220627', '20220628'),
('20220701', '20220704'),
],
}
"""
"""
stock_codes = {
# 252670
# 122630
"122630": [
('20220617', '20220620'),
('20220620', '20220621'),
('20220621', '20220622'),
('20220622', '20220623'),
('20220623', '20220624'),
('20220624', '20220627'),
('20220627', '20220628'),
('20220628', '20220629'),
('20220629', '20220630'),
('20220630', '20220701'),
('20220701', '20220704'),
('20220704', '20220705'),
('20220705', '20220706'),
('20220706', '20220707'),
('20220707', '20220708')
('20220707', '20220708'),
('20220708', '20220711'),
('20220711', '20220712'),
('20220712', '20220713'),
('20220713', '20220714'),
('20220714', '20220715')
],
}
"""
path = './hts/data'
"""
path = './hts/backup'
fileList = glob(path + '/122630*.csv')
fileList = sorted(fileList, reverse=True)
stock_codes = {'122630':[]}
for i in range(11, 21):
stock_codes['122630'].append((fileList[i][20:28], fileList[i-1][20:28]))
"""
for stock_code in stock_codes:
simulation = Simulation(stock_code)