Strategy Methods¶
Strategy methods are the methods that you will use inside of a strategy to do things such as submit orders, get pricing data and more. We have divided them into sections for you so that you get get a sense of what each one is used for.
Every strategy method will be used inside of one of your functions or lifecycle methods (eg. inside of on_trading_iteration()) and is usually preceded by “self.” (eg. self.submit_order())
Check out the list of available strategy methods below:
Contents:
- Order Management
- self.create_order
- self.submit_order
- self.submit_orders
- self.cancel_order
- self.cancel_orders
- self.cancel_open_orders
- self.get_selling_order
- self.sell_all
- self.get_order
- self.get_orders
- self.get_position
- self.get_positions
- self.get_tracked_order
- self.get_tracked_orders
- self.get_tracked_position
- self.get_tracked_positions
- self.get_asset_potential_total
- Data
- Options
- DateTime
- Miscellaneous