File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ Calls `GET /orders/{order_id}` and returns an `Order` entity.
120120### REST.cancel_order(order_id)
121121Calls ` DELETE /orders/{order_id} ` .
122122
123+ ### REST.cancel_all_orders()
124+ Calls ` DELETE /orders ` .
125+
123126### REST.list_positions()
124127Calls ` GET /positions ` and returns a list of ` Position ` entities.
125128
Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ def cancel_order(self, order_id):
220220 '''Cancel an order'''
221221 self .delete ('/orders/{}' .format (order_id ))
222222
223+ def cancel_all_orders (self ):
224+ '''Cancel all open orders'''
225+ self .delete ('/orders' )
226+
223227 def list_positions (self ):
224228 '''Get a list of open positions'''
225229 resp = self .get ('/positions' )
You can’t perform that action at this time.
0 commit comments