Lean
$LEAN_TAG$
|
Base class that provides shared code for the ISetupHandler implementations More...
Static Public Member Functions | |
static void | SetupCurrencyConversions (IAlgorithm algorithm, UniverseSelection universeSelection) |
Will first check and add all the required conversion rate securities and later will seed an initial value to them. More... | |
static bool | InitializeDebugging (AlgorithmNodePacket algorithmNodePacket, WorkerThread workerThread) |
Initialize the debugger More... | |
static void | LoadBacktestJobCashAmount (IAlgorithm algorithm, BacktestNodePacket job) |
Sets the initial cash for the algorithm if set in the job packet. More... | |
static void | LoadBacktestJobAccountCurrency (IAlgorithm algorithm, BacktestNodePacket job) |
Sets the account currency the algorithm should use if set in the job packet More... | |
static Dictionary< SecurityType, List< TickType > > | GetConfiguredDataFeeds () |
Get the available data feeds from config.json, More... | |
static void | SetBrokerageTradingDayPerYear (IAlgorithm algorithm) |
Set the number of trading days per year based on the specified brokerage model. More... | |
Properties | |
static TimeSpan | AlgorithmCreationTimeout = TimeSpan.FromSeconds(Config.GetDouble("algorithm-creation-timeout", 90)) [get] |
Get the maximum time that the creation of an algorithm can take More... | |
Base class that provides shared code for the ISetupHandler implementations
Definition at line 40 of file BaseSetupHandler.cs.
|
static |
Will first check and add all the required conversion rate securities and later will seed an initial value to them.
algorithm | The algorithm instance |
universeSelection | The universe selection instance |
Definition at line 53 of file BaseSetupHandler.cs.
|
static |
Initialize the debugger
algorithmNodePacket | The algorithm node packet |
workerThread | The worker thread instance to use |
Definition at line 170 of file BaseSetupHandler.cs.
|
static |
Sets the initial cash for the algorithm if set in the job packet.
Should be called after initialize LoadBacktestJobAccountCurrency
Definition at line 192 of file BaseSetupHandler.cs.
|
static |
Sets the account currency the algorithm should use if set in the job packet
Should be called before initialize LoadBacktestJobCashAmount
Definition at line 211 of file BaseSetupHandler.cs.
|
static |
Get the available data feeds from config.json,
Definition at line 223 of file BaseSetupHandler.cs.
|
static |
Set the number of trading days per year based on the specified brokerage model.
algorithm | The algorithm instance |
Definition at line 244 of file BaseSetupHandler.cs.
|
staticget |
Get the maximum time that the creation of an algorithm can take
Definition at line 45 of file BaseSetupHandler.cs.