掘金社区

【求助】python 模拟盘出现下单错误,ord_rej_reason:999Pinned highlighted

wangjild 发表在问题反馈 2021-06-20 20:51:10

问题反馈
196
1
0

这是在 on_order_status 回调函数中打印出来的 order 对象

999 这个错误码在官网文档中找不到,请问是为什么呢?

{

  "strategy_id": "f52fd1b8-cf73-11eb-8418-909c4ab90488",
  "account_id": "f52fd1b8-cf73-11eb-8418-909c4ab90488",
  "cl_ord_id": "000000019",
  "symbol": "SZSE.123026",
  "side": 1,
  "position_effect": 1,
  "order_type": 2,
  "order_duration": 3,
  "order_qualifier": 2,
  "status": 3,
  "ord_rej_reason": 999,
  "ord_rej_reason_detail": "failed to adjust order by its style: order=strategy_id:\"f52fd1b8-cf73-11eb-8418-909c4ab90488\" account_id:\"f52fd1b8-cf73-11eb-8418-909c4ab90488\" cl_ord_id:\"000000019\" symbol:\"SZSE.123026\" side:1 position_effect:1 order_type:2 order_duration:3 order_qualifier:2 order_style:1 volume:120 created_at:<seconds:1581384540 > updated_at:<seconds:1581384540 > , currentPrice=0, cash=account_id:\"f52fd1b8-cf73-11eb-8418-909c4ab90488\" nav:198519.6877151865 pnl:-1480.3122848134954 fpnl:-493.73602156066613 frozen:198082.53652815244 available:930.8872085947369 cum_inout:200000 cum_trade:231922.6325281525 cum_pnl:-963.3839999999998 cum_commission:23.19226325281525 last_trade:12574.257635726928 last_commission:1.2574257635726929 created_at:<seconds:1577836800 > updated_at:<seconds:1581298140 > , instrument=symbol:\"SZSE.123026\" sec_level:1 multiplier:1 margin_ratio:1 pre_close:113.69 upper_limit:113.69 lower_limit:113.69 info:<symbol:\"SZSE.123026\" sec_type:8 exchange:\"SZSE\" sec_id:\"123026\" sec_name:\"\\344\\270\\255\\347\\216\\257\\350\\275\\254\\345\\200\\272\" sec_abbr:\"zhzz\" price_tick:0.001 underlying_symbol:\"SZSE.300692\" conversion_price:12.31 conversion_start_date:<seconds:1576425600 > listed_date:<seconds:1561910400 > delisted_date:<seconds:1608652800 > > created_at:<seconds:1567958400 > ",

  "order_style": 1,
  "volume": 120,
  "filled_volume": 120,
  "created_at": "2020-02-11 09:29:00",
  "updated_at": "2020-02-11 09:29:00",
  "account_name": "",
  "order_id": "",
  "ex_ord_id": "",
  "algo_order_id": "",
  "position_side": 0,
  "order_business": 0,
  "order_src": 0,
  "position_src": 0,
  "price": 0,
  "stop_price": 0,
  "value": 0,
  "percent": 0,
  "target_volume": 0,
  "target_value": 0,
  "target_percent": 0,
  "filled_vwap": 0,
  "filled_amount": 0,
  "filled_commission": 0,
  "properties": {}
}
评论: 1
  • 你这个是仿真交易,不是实盘,不支持相关委托字段,0_1624323606180_c526ec01-e1a1-495b-a089-603efdb90cee-image.png

    2021-06-22 09:00:09

Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.