API Reference

lean live add-security

Introduction

Represents a command to add a security to the algorithm.

$ lean live add-security [OPTIONS] PROJECT

Description

Arguments

The lean live add-security command expects the following arguments:

ArgumentDescription
<project>The path to the project directory or algorithm file to which you want to add the security.

Options

The lean live add-security command supports the following options:

OptionDescription
--ticker <string>[required]
--market <string>[required]
--security-type <string>[required]
--resolution <string>The resolution of the symbol to add
--fill-data-forwardThe fill forward behavior, true to fill forward, false otherwise - defaults to true
--leverage <float>The leverage for the security, defaults to 2 for equity, 50 for forex, and 1 for everything else
--extended-market-hoursThe extended market hours flag, true to allow pre/post market data, false for only in market data
--lean-config <file>The Lean configuration file that should be used (defaults to the nearest lean.json)
--verboseEnable debug logging
--helpDisplay the help text of the lean live add-security command and exit

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: