示例#1
0
def lzMonInHandHq(n,arrflag):
	if(inHandHqPEnable == 1):
		while True:
			print("Monitor inHasnd stocks ...")
			envGetConfig("lzStock.conf")
			inHandStock = envGetinHandStock()
			lzStockProcess.initializeMonitorStructure(inHandStock)
			while True:
				if(arrflag[2] == 0):
					lzStockProcess.realInterestStock(inHandStock)
				elif(arrflag[2] == 1 or arrflag[2] == 2):
					arrflag[2] = 0
					break
				time.sleep(1)
示例#2
0
def lzCandidateHq(n,arrflag):
	envGetConfig("lzStock.conf")
	while True:
		if (candidateHqPEnable == 1 and arrflag[1] == 1):
			print('\n''\n ------------------' + 
					time.strftime('%Y-%m-%d : %H-%M-%S', time.localtime(time.time()))
					+ '------------------')
			lzStockProcess.getCandidateStockHq()
			arrflag[1] = 0
		if(arrflag[1] == 2):
			print("trying to reload the candidateStock")
			envGetConfig("lzStock.conf")
			arrflag[1] = 1
		time.sleep(1)