API Reference
lean live cancel-order
Introduction
Represents a command to cancel a specific order by id.
$ lean live cancel-order [OPTIONS] PROJECT
Description
Sends a command to a running local live trading algorithm to cancel a specific open order.
The --order-id option is required and must match the ID of the order you want to cancel.
The algorithm must already be running via lean live deploy before you use this command.
Options
The lean live cancel-order command supports the following options:
| Option | Description |
|---|---|
--order-id <integer> | [required] |
--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 cancel-order command and exit |