Skip to content

Commit

Permalink
fix query jaqs
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdenBear committed Sep 18, 2018
1 parent 395a59f commit 1595df9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rqalpha_mod_fxdayu_source/inday_bars/quantos.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get_bars(self, instrument, frequency, trade_date=None, start_time=None, end_
freq = frequency[:-1] + frequency[-1].upper()
params = dict(symbol=symbol, freq=freq, trade_date=0, **kwargs)
bars, msg = self._api.bar(**params)
if not isinstance(bars, pd.DataFrame):
code = msg.split(",")[0]
if not isinstance(bars, pd.DataFrame) or code != "0":
raise QuantOsQueryError(msg)
else:
break
Expand Down

0 comments on commit 1595df9

Please sign in to comment.