init
This commit is contained in:
@@ -33,7 +33,7 @@ if __name__ == "__main__":
|
||||
if stock['stock_code'] not in BUY_LIST:
|
||||
BUY_LIST[stock['stock_code']] = {}
|
||||
|
||||
BUY_LIST[stock['stock_code']]['MAX_BUY_PRICE'] = config['MAX_BUY_PRICE']
|
||||
MAX_BUY_PRICE = config['MAX_BUY_PRICE']
|
||||
BUY_LIST[stock['stock_code']]['BUY_LIST_1'] = config['BUY_LIST_1']
|
||||
BUY_LIST[stock['stock_code']]['BUY_LIST_1']["disparity"] = hts.getDisparityLimit(stock)
|
||||
|
||||
@@ -53,7 +53,7 @@ if __name__ == "__main__":
|
||||
data_signal = hts.analyze(result_tic_m30)
|
||||
# data.drop(data.index[:len(data) - analyzed_day], inplace=True)
|
||||
|
||||
hts.buyRealTime(stock, data, data_signal, BUY_LIST[stock['stock_code']]['MAX_BUY_PRICE'], BUY_LIST[stock['stock_code']]['BUY_LIST_1'])
|
||||
hts.buyRealTime(stock, data, data_signal, MAX_BUY_PRICE, BUY_LIST[stock['stock_code']]['BUY_LIST_1'])
|
||||
|
||||
if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0):
|
||||
vm = psutil.virtual_memory()
|
||||
|
||||
Reference in New Issue
Block a user