示例#1
0
 def _get_instrument_bars(self, category, market, code, start=0, count=700):
     while True:
         try:
             cmd = GetInstrumentBars(self._api.client, lock=self._api.lock)
             cmd.setParams(category, market, code, start=start, count=count)
             return cmd.call_api()
         except Exception as e:
             pass
示例#2
0
 def get_instrument_bars(self, category, market, code):
     cmd = GetInstrumentBars(self.client)
     cmd.setParams(category, market, code, start=0, count=0)
     return cmd.call_api()
示例#3
0
 def get_instrument_bars(self, category, market, code, start=0, count=700):
     cmd = GetInstrumentBars(self.client)
     cmd.setParams(category, market, code, start=start, count=count)
     return cmd.call_api()