[Mod] query all instruments available from RQData server

This commit is contained in:
vn.py 2019-10-19 18:09:50 +08:00
parent b117e84167
commit 73e893cfdb

View File

@ -57,7 +57,7 @@ class RqdataClient:
) )
try: try:
df = rqdata_all_instruments(date=datetime.now()) df = rqdata_all_instruments()
for ix, row in df.iterrows(): for ix, row in df.iterrows():
self.symbols.add(row['order_book_id']) self.symbols.add(row['order_book_id'])
except (RuntimeError, AuthenticationFailed): except (RuntimeError, AuthenticationFailed):