- #encoding:gbk
- def init(ContextInfo):
- account = '123456'
- ContextInfo.set_account(account)
- passorder(23,1101, account, '000001.SZ',5,0,200,'',2,'note1',ContextInfo)
- def order_callback(ContextInfo, orderInfo):
- print(f"股票代码:{orderInfo.m_strInstrumentID} 市场代码:{orderInfo.m_strExchangeID} 委托号:{orderInfo.m_strOrderSysID}, 成交数量:{orderInfo.m_nVolumeTraded}, 投资备注:{orderInfo.m_strRemark}")
复制代码
|