close_all#
- close_all(web3, execution_model, pricing_model, sync_model, state, universe, routing_model, routing_state, interactive=True)[source]#
Close all positions.
Sync reserves before starting
Close any open positions
Display trade execution and position report afterwards
- Parameters:
web3 (Web3) –
execution_model (ExecutionModel) –
pricing_model (PricingModel) –
sync_model (SyncModel) –
state (State) –
universe (TradingStrategyUniverse) –
routing_model (RoutingModel) –
routing_state (RoutingState) –