在回测模式:在 def init(C): 里面,直接购买股票后,为什么调用get_trade_detail_data得到的数据是空的?即刚才买入的委托订单数据为什么没有?
passorder(23,1102,A.acct,'000002.SZ',3,0,100000,2,C) #买入股票:以金额的方式
order_list = get_trade_detail_data(A.acct, 'stock', 'order')
for order in order_list:
print('init_order_list=',str(order.m_strInstrumentID),order.m_strOrderSysID,order.m_strRemark,'计数 =',C.count)
deal_list = get_trade_detail_data(A.acct, 'stock', 'deal')
for order in deal_list:
print('init_deal_list=',str(order.m_strInstrumentID),order.m_strOrderSysID,order.m_strRemark,'计数 =',C.count)
|