等级: 免费版
- 注册:
- 2022-3-10
- 曾用名:
|
发表于 2022-10-13 15:41
来自手机
|
显示全部楼层
for order in order_list: #['编号','报单id', '合约代码','股票名称', '委托下单时间', '方向','开平', '价格', '数量', '已成交', '未成交','订单类型'] order_serial = order.system_id #Serial order_id = order.order_id order_id =str(order_id) order_book_id = order.order_book_id order_stock_name = get_dynainf(order.order_book_id,219) order_time = order.datetime.isoformat() if order.side=='buy': order_side = '买' elif order.side=='sell': order_side = '卖' if order.position_effect=='open': order_position_effect = '开' elif order.position_effect=='close': order_position_effect ='平' order_price = round(order.price,2) order_number = order.quantity order_filled = order.filled_quantity order_unfilled = order.unfilled_quantity order_type = order.type order_trade_price = order.trade_price order_message =order.message order_sign = order.sign |
|