Development Environment
Configuration
Extension Settings
Follow these steps to view the settings of the Local Platform extension:
- Open VS Code.
- In the top navigation bar, click .
- On the Settings page, in the left navigation menu, click .
The following table describes each setting:
Name | Description |
---|---|
Executable Path: Docker | A path to the Docker installation you want to use. |
Executable Path: Lean | A path to the LEAN CLI executable you want to use. |
Lean: Init | A path to the current organization workspace. |
Sync: Local And Cloud Projects | to synchronize cloud and local projects. Otherwise, . is only available for Institution organizations. |
User: Preferred Language | The programming language to use when creating new projects. | for Python or for C#.
LEAN Settings
The Lean configuration contains settings for locally running the LEAN engine. This configuration is created in the lean.json file when you pull or create an organization workspace. The configuration is stored as JSON, with support for both single-line and multiline comments.
The Lean configuration file is based on the Launcher / config.json file from the Lean GitHub repository. When you pull or create an organization workspace, the latest version of this file is downloaded and stored in your organization workspace. Before the file is stored, some properties are automatically removed because the Local Platform automatically sets them.
The Local Platform can update most of the values of the lean.json file. The following table shows the configuration settings that you need to manually adjust in the lean.json file if you want to change their values:
Name | Description | Default |
---|---|---|
show-missing-data-logs | Log missing data files. This is useful for debugging. | true |
algorithm-manager-time-loop-maximum | The maximum amount of time the algorithm can spend in a single time loop. | 20 |
maximum-warmup-history-days-look-back | The maximum number of days of data the history provider will provide during warm-up in live trading. The history provider expects older data to be on disk. | 5 |
maximum-chart-series | The maximum number of chart series you can create in backtests. | 30 |
maximum-data-points-per-chart-series | The maximum number of data points you can add to a chart series in backtests. | 1,000,000 |