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
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()
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()