# #-- truncated for speeding up developement # instList =instList[0:150]; # #-- end truncation # index,credentials,fr,to s = Session(users[lgIdx]['user'],users[lgIdx]['pwd']) s.login() socketMktSum = s.marketSummarySocket(); mktsumThread = threading.Thread(target=marketSumParser,args=(socketMktSum,)) mktsumThread.start() lgIdx+=1 s = Session(users[lgIdx]['user'],users[lgIdx]['pwd']) s.login() socketTicker = s.tickerSocket(); tickerThread = threading.Thread(target=tickerParser,args=(socketTicker,)) tickerThread.start() lgIdx+=1 # ---bypass for speeding up development # np.save('tmpInstList.txt', instList) # instList=np.load('tmpInstList.txt.npy') # print len(instList) # ---end bypass #-- CrowdLogin # s = Session(users[lgIdx]['user'],users[lgIdx]['pwd']) # totalSocket = []; # config.validateSocket= dict(); # config.validateInstrument= dict();