API Reference
lean live submit-order
Introduction
Represents a command to submit an order to the algorithm.
$ lean live submit-order [OPTIONS] PROJECT
Description
Sends a command to a running local live trading algorithm to submit a new order.
The --ticker, --market, --security-type, --order-type, and --quantity options are required.
For limit and stop orders, provide the --limit-price and --stop-price options as applicable.
You can attach a --tag to the order for tracking purposes.
The algorithm must already be running via lean live deploy before you use this command.
Options
The lean live submit-order command supports the following options:
| Option | Description |
|---|---|
--ticker <string> | [required] |
--market <string> | [required] |
--security-type <string> | [required] |
--order-type <string> | [required] |
--quantity <float> | [required] |
--limit-price <float> | The limit price of the order be submitted |
--stop-price <float> | The stop price of the order to be submitted |
--tag <string> | The tag to be attached to the order |
--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 submit-order command and exit |