API Reference
lean live
Introduction
Interact with the local machine.
$ lean live [OPTIONS] COMMAND [ARGS]...
Description
The lean live command provides subcommands for managing live trading on your local machine using Docker.
Use lean live deploy to start a new local live deployment, lean live stop to stop a running deployment, and lean live liquidate to liquidate positions in a running deployment.
You can also interact with a running algorithm using lean live add-security, lean live submit-order, lean live cancel-order, lean live update-order, and lean live command.
See the subcommand pages for full details on each operation.
Commands
The lean live command expects the following arguments:
| Argument | Description |
|---|---|
add-security | Represents a command to add a security to the algorithm |
cancel-order | Represents a command to cancel a specific order by id |
command | Send a command to a local running live trading project |
deploy | Start live trading a project locally using Docker |
liquidate | Liquidate the given symbol from the latest deployment of the given project |
stop | Stop an already running local live trading project |
submit-order | Represents a command to submit an order to the algorithm |
update-order | Represents a command to update a specific order by id |