API Reference
lean cloud live command
Introduction
Send a command to a running cloud live trading project.
$ lean cloud live command [OPTIONS] PROJECT
Description
Sends a custom command to a running cloud live trading project.
Use the --data option to pass a JSON string representing the command.
The JSON must include a $type field matching a command class defined in your algorithm.
Example usage:
$ lean cloud live command "My Project" --data "{ \"target\": \"BTCUSD\", \"$type\": \"MyCommand\" }"
Options
The lean cloud live command command supports the following options:
| Option | Description |
|---|---|
--data <string> | The command to send, 'str' representation of a 'dict' e.g. "{ \"target\": \"BTCUSD\", \"$type\":\"MyCommand\" }" |
--verbose | Enable debug logging |
--help | Display the help text of the lean cloud live command command and exit |