init
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user