API Reference
lean live liquidate
Introduction
Liquidate the given symbol from the latest deployment of the given project.
$ lean live liquidate [OPTIONS] PROJECT
Description
Sends a liquidation command to the latest deployment of the given local live trading project.
If you provide the --ticker, --market, and --security-type options, only the matching symbol is liquidated.
If you omit those options, all positions in the portfolio are liquidated.
To stop a live deployment without liquidating positions, use lean live stop.
Options
The lean live liquidate command supports the following options:
| Option | Description |
|---|---|
--ticker <string> | The ticker of the symbol to liquidate |
--market <string> | The market of the symbol to liquidate |
--security-type <string> | The security type of the symbol to liquidate |
--lean-config <file> | The Lean configuration file that should be used (defaults to the nearest lean.json) |
--verbose | Enable debug logging |
--help | Display the help text of the lean live liquidate command and exit |