Lean
$LEAN_TAG$
|
This class implements interface ISecurityService providing methods for creating new Security More...
Public Member Functions | |
SecurityService (CashBook cashBook, MarketHoursDatabase marketHoursDatabase, SymbolPropertiesDatabase symbolPropertiesDatabase, ISecurityInitializerProvider securityInitializerProvider, IRegisteredSecurityDataTypesProvider registeredTypes, SecurityCacheProvider cacheProvider, IPrimaryExchangeProvider primaryExchangeProvider=null, IAlgorithm algorithm=null) | |
Creates a new instance of the SecurityService class More... | |
Security | CreateSecurity (Symbol symbol, List< SubscriptionDataConfig > subscriptionDataConfigList, decimal leverage=0, bool addToSymbolCache=true, Security underlying=null) |
Creates a new security More... | |
Security | CreateSecurity (Symbol symbol, SubscriptionDataConfig subscriptionDataConfig, decimal leverage=0, bool addToSymbolCache=true, Security underlying=null) |
Creates a new security More... | |
Security | CreateBenchmarkSecurity (Symbol symbol) |
Creates a new security More... | |
void | SetLiveMode (bool isLiveMode) |
Set live mode state of the algorithm More... | |
This class implements interface ISecurityService providing methods for creating new Security
Definition at line 29 of file SecurityService.cs.
QuantConnect.Securities.SecurityService.SecurityService | ( | CashBook | cashBook, |
MarketHoursDatabase | marketHoursDatabase, | ||
SymbolPropertiesDatabase | symbolPropertiesDatabase, | ||
ISecurityInitializerProvider | securityInitializerProvider, | ||
IRegisteredSecurityDataTypesProvider | registeredTypes, | ||
SecurityCacheProvider | cacheProvider, | ||
IPrimaryExchangeProvider | primaryExchangeProvider = null , |
||
IAlgorithm | algorithm = null |
||
) |
Creates a new instance of the SecurityService class
Definition at line 45 of file SecurityService.cs.
Security QuantConnect.Securities.SecurityService.CreateSecurity | ( | Symbol | symbol, |
List< SubscriptionDataConfig > | subscriptionDataConfigList, | ||
decimal | leverage = 0 , |
||
bool | addToSymbolCache = true , |
||
Security | underlying = null |
||
) |
Creates a new security
Following the obsoletion of Security.Subscriptions, both overloads will be merged removing SubscriptionDataConfig arguments
Implements QuantConnect.Interfaces.ISecurityService.
Definition at line 239 of file SecurityService.cs.
Security QuantConnect.Securities.SecurityService.CreateSecurity | ( | Symbol | symbol, |
SubscriptionDataConfig | subscriptionDataConfig, | ||
decimal | leverage = 0 , |
||
bool | addToSymbolCache = true , |
||
Security | underlying = null |
||
) |
Creates a new security
Following the obsoletion of Security.Subscriptions, both overloads will be merged removing SubscriptionDataConfig arguments
Implements QuantConnect.Interfaces.ISecurityService.
Definition at line 253 of file SecurityService.cs.
Creates a new security
Following the obsoletion of Security.Subscriptions, both overloads will be merged removing SubscriptionDataConfig arguments
Implements QuantConnect.Interfaces.ISecurityService.
Definition at line 263 of file SecurityService.cs.
void QuantConnect.Securities.SecurityService.SetLiveMode | ( | bool | isLiveMode | ) |
Set live mode state of the algorithm
isLiveMode | True, live mode is enabled |
Definition at line 277 of file SecurityService.cs.