init
This commit is contained in:
@@ -170,7 +170,7 @@ class HTS_122630 (HTS):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
week = datetime.today().weekday()
|
week = datetime.today().weekday()
|
||||||
if week in (0, 1, 2, 3, 4):
|
if week in (0, 1, 2, 3, 4, 5, 6):
|
||||||
|
|
||||||
today = datetime.today()
|
today = datetime.today()
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
hts = HTS_122630(RESOURCE_PATH, stock_code, buy_count)
|
hts = HTS_122630(RESOURCE_PATH, stock_code, buy_count)
|
||||||
today_str = today.strftime('%Y%m%d')
|
today_str = today.strftime('%Y%m%d')
|
||||||
#today_str = "20220906"
|
today_str = "20220908"
|
||||||
hts.buyRealTime(today_str)
|
hts.buyRealTime(today_str)
|
||||||
|
|
||||||
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
|
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
hts = HTS_252670(RESOURCE_PATH, stock_code, buy_count)
|
hts = HTS_252670(RESOURCE_PATH, stock_code, buy_count)
|
||||||
today_str = today.strftime('%Y%m%d')
|
today_str = today.strftime('%Y%m%d')
|
||||||
#today_str = "20220906"
|
#today_str = "20220908"
|
||||||
hts.buyRealTime(today_str)
|
hts.buyRealTime(today_str)
|
||||||
|
|
||||||
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
|
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
|
||||||
|
|||||||
BIN
resources/hts.db
BIN
resources/hts.db
Binary file not shown.
Reference in New Issue
Block a user