代码
RetryDelay = 1500; def CancelPendingOrders(exch, orderType): # 取消所有未完成的挂单, 参数1 交易所 参数2 类型 global RetryDelay orders = _C(exch.GetOrders); #取订单确保成功 for order in orders: if order.Type == orderType: #
本文介绍了BotVS平台上的订单管理,包括如何获取订单、取消订单以及查询未完成订单的详细步骤,通过代码实例展示了具体的操作流程。
代码
RetryDelay = 1500; def CancelPendingOrders(exch, orderType): # 取消所有未完成的挂单, 参数1 交易所 参数2 类型 global RetryDelay orders = _C(exch.GetOrders); #取订单确保成功 for order in orders: if order.Type == orderType: #
1575

被折叠的 条评论
为什么被折叠?