QuantConnect Lean Algorithmic Trading Engine
The equity ticker symbol
The QuantConnect.Resolution of market data, Tick, Second, Minute, Hour, or Daily. Default is QuantConnect.Resolution.Minute
The equity's market, . Default value is null and looked up using BrokerageModel.DefaultMarkets in AddSecurity<T>(SecurityType,String,Resolution,String,Boolean,Decimal,Boolean)
If true, returns the last available data even if none in that timeslice. Default is true
The requested leverage for this equity. Default is set by SecurityInitializer
True to send data during pre and post market sessions. Default is false
AddEquity Method
Creates and adds a new QuantConnect.Securities.Equity.Equity security to the algorithm
Syntax

Parameters

ticker
The equity ticker symbol
resolution
The QuantConnect.Resolution of market data, Tick, Second, Minute, Hour, or Daily. Default is QuantConnect.Resolution.Minute
market
The equity's market, . Default value is null and looked up using BrokerageModel.DefaultMarkets in AddSecurity<T>(SecurityType,String,Resolution,String,Boolean,Decimal,Boolean)
fillDataForward
If true, returns the last available data even if none in that timeslice. Default is true
leverage
The requested leverage for this equity. Default is set by SecurityInitializer
extendedMarketHours
True to send data during pre and post market sessions. Default is false

Return Value

Requirements

Target Platforms: Microsoft .NET 4.5 or Mono 3.10 or above.

See Also