Order Management#

Order Management functions are used to create, submit, cancel orders and more. You can see a list of them below:

Strategy.create_order(asset, quantity, side)

Create a new order for this strategy.

Strategy.submit_order(order, **kwargs)

Submit an order or a list of orders for assets

Strategy.submit_orders(orders, **kwargs)

[Deprecated] Submit a list of orders

Strategy.cancel_order(order)

Cancel an order.

Strategy.cancel_orders(orders)

Cancel orders in all strategies.

Strategy.cancel_open_orders()

Cancel all the strategy open orders.

Strategy.get_selling_order(position)

Get the selling order for a position.

Strategy.sell_all([cancel_open_orders, ...])

Sell all strategy positions.

Strategy.get_order(identifier)

Get a tracked order given an identifier.

Strategy.get_orders()

Get all the current open orders.

Strategy.get_asset_potential_total(asset)

Get the potential total for the asset (orders + positions).