ricequant / rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
5.33k stars 1.61k forks source link

为什么instrument设计order_book_id 和 trading_code, ctp交易的时候 order_book_id 和交易所代码不一致,无法subscribe #806

Closed louis-xuy closed 1 year ago

louis-xuy commented 1 year ago

rqalpha订阅期货数据是通过order_book_id, 而交易所对应的代码是trading_code 字段,

Cuizi7 commented 1 year ago

order_book_id 是米筐内部协议,使用 rqalpha、rqdatac 及其他米筐产品的时候请使用 order_book_id。