QuantConnect Lean Algorithmic Trading Engine
Symbols we wish to liquidate
Custom tag to know who is calling this.
Liquidate Method (QCAlgorithm)
Liquidate all holdings and cancel open orders. Called at the end of day for tick-strategies.
Syntax

Parameters

symbolToLiquidate
Symbols we wish to liquidate
tag
Custom tag to know who is calling this.

Return Value

Array of order ids for liquidated symbols
Requirements

Target Platforms: Microsoft .NET 4.5 or Mono 3.10 or above.

See Also