def main(): #注册策略 #载入订阅股票代码 loadSubStocks() #创建数据连接对象 dataServerInstance = CDataProcess( HOST, PORT, SUB_ALL_STOCK, g_subStocks, REQUEST_TYPE, REQUEST_FLAG, datetime.datetime.strptime(START_TIME, "%Y-%m-%d %H:%M:%S"), datetime.datetime.strptime(END_TIME, "%Y-%m-%d %H:%M:%S")) #创建数据监听器 creatListener(dataServerInstance.bufferStack) dataServerInstance.run()
def main(): #注册策略 #载入订阅股票代码 loadSubStocks() #创建数据连接对象 dataServerInstance = CDataProcess( HOST,PORT, SUB_ALL_STOCK, g_subStocks, REQUEST_TYPE, REQUEST_FLAG, datetime.datetime.strptime(START_TIME,"%Y-%m-%d %H:%M:%S"), datetime.datetime.strptime(END_TIME,"%Y-%m-%d %H:%M:%S")) #创建数据监听器 creatListener(dataServerInstance.bufferStack) dataServerInstance.run()