#1988·zipline

cancel_all_orders_for_asset 失败

作者: abhilashchowdhary创建于 2017年10月16日更新于 2026年9月23日
标签Question

`cancle_all_orders_for_asset` at https://GitHub.com/quantopian/zipline/blob/master/zipline/finance/blotter.py#L199 fails in `assert not orders` because the `open_orders` dictionary has an order that is not open, and `cancel` at https://GitHub.com/quantopian/zipline/blob/master/zipline/finance/blotter.py#L178 cannot cancel an order that is not open.

内容来源: quantopian/zipline