For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How can I cancel all orders?
-
how to cancel all open orders at the moment?
-
-
@ololo said in How can I cancel all orders?:
how to cancel all open orders at the moment?
At the beginning of next:
[self.cancel[o] for o in self.broker.orders if o.status < 4]
All status below 4 are live.
-
@run-out said in How can I cancel all orders?:
[self.cancel[o] for o in self.broker.orders if o.status < 4]
Thanks bro, it helps a lot with a little change:
[self.cancel(o) for o in self.broker.orders if o.status < 4]