Project-specific configuration is stored in the project directory in the config.json file. This file is automatically generated when you run lean create-project or lean cloud pull. Just like the global and Lean configuration files, the project configuration is stored as JSON but without support for comments.


The following properties are stored in the config.json file:

descriptionThis property contains the project's description, which is displayed in backtest reports. It must always be a string.
parametersThis property is a key/value object containing the project's parameters. Both the keys and the values must be strings. See and ParametrizedAlgorithm.cs for examples of how to retrieve parameters in your algorithm. The parameter values are sent to your algorithm when you deploy the algorithm, so it's not possible to change the parameter values while the algorithm runs.
cloud-idThis property is set automatically after the project has been pulled from or pushed to the cloud. It contains the id of the project's counterpart in the cloud and must not be modified or removed manually.
local-idThis property is set automatically when the CLI needs to uniquely identify the current project. It contains a unique id that is specific to the project and must not be modified or removed manually.
algorithm-languageThis property contains the language of the project. It is automatically set when the project is created and must not be modified or removed manually.
dockerThis property is a key/value object containing the docker instance's "environment" and "ports" command line run arguments. For example, to expose host port 999 to internal port 6006, write "docker": { "ports": { "999": "6006"} }.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: