def _testGet(self): codes = ['600096'] #codes = stock.get_codes() a = agl.tic_toc() for code in codes: try: LiveData().getHisdat(code) LiveData().getFenshi(code) LiveData().getFiveMinHisdat(code) except: print 'except' + code
def Run(self): if not stock.IsKaiPan() and not is_force_run: return a = agl.tic_toc() codes = self._getCodes() #codes = ['300033'] for code in codes: #try: self.ExePolicy(code) #except Exception as e: #print str(e) self.LoopEndEvent()
def main(args): a = agl.tic_toc() print('save fenshi to redis, predict 1 hour') getAllFenshi()