init
This commit is contained in:
@@ -19,11 +19,9 @@ if __name__ == "__main__":
|
||||
|
||||
if not os.path.exists(os.path.join(RESOURCE_PATH, "log")):
|
||||
os.mkdir(os.path.join(RESOURCE_PATH, "log"))
|
||||
logFp = open(os.path.join(RESOURCE_PATH, "log", today_str + "_" + stock_code + ".log"), "w", encoding='utf-8')
|
||||
|
||||
MAX_PRICE = 30000
|
||||
hts.buyRealTime(today_str, analyzed_day=1000, logFp=logFp, MAX_PRICE=MAX_PRICE)
|
||||
logFp.close()
|
||||
MAX_PRICE = 300000
|
||||
hts.buyRealTime(today_str, MAX_PRICE=MAX_PRICE)
|
||||
|
||||
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
|
||||
hts.insertStockData(today, stock_code, stock_name)
|
||||
|
||||
Reference in New Issue
Block a user