Base class that provides shared code for the ISetupHandler implementations
More...
|
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 41 of file BaseSetupHandler.cs.
◆ Setup()
Primary entry point to setup a new algorithm
- Parameters
-
parameters | The parameters object to use |
- Returns
- True on successfully setting up the algorithm state, or false on error.
Definition at line 53 of file BaseSetupHandler.cs.
◆ SetupCurrencyConversions()
static void QuantConnect.Lean.Engine.Setup.BaseSetupHandler.SetupCurrencyConversions |
( |
IAlgorithm |
algorithm, |
|
|
UniverseSelection |
universeSelection, |
|
|
IReadOnlyCollection< string > |
currenciesToUpdateWhiteList = null |
|
) |
| |
|
static |
Will first check and add all the required conversion rate securities and later will seed an initial value to them.
- Parameters
-
algorithm | The algorithm instance |
universeSelection | The universe selection instance |
currenciesToUpdateWhiteList | If passed, the currencies in the CashBook that are contained in this list will be updated. By default, if not passed (null), all currencies in the cashbook without a properly set up currency conversion will be updated. This is not intended for actual algorithms but for tests or for this method to be used as a helper. |
Definition at line 77 of file BaseSetupHandler.cs.
◆ InitializeDebugging()
Initialize the debugger
- Parameters
-
algorithmNodePacket | The algorithm node packet |
workerThread | The worker thread instance to use |
Definition at line 197 of file BaseSetupHandler.cs.
◆ LoadBacktestJobCashAmount()
◆ LoadBacktestJobAccountCurrency()
◆ GetConfiguredDataFeeds()
static Dictionary<SecurityType, List<TickType> > QuantConnect.Lean.Engine.Setup.BaseSetupHandler.GetConfiguredDataFeeds |
( |
| ) |
|
|
static |
◆ SetBrokerageTradingDayPerYear()
static void QuantConnect.Lean.Engine.Setup.BaseSetupHandler.SetBrokerageTradingDayPerYear |
( |
IAlgorithm |
algorithm | ) |
|
|
static |
Set the number of trading days per year based on the specified brokerage model.
- Parameters
-
algorithm | The algorithm instance |
- Returns
- The number of trading days per year. For specific brokerages (Coinbase, Binance, Bitfinex, Bybit, FTX, Kraken), the value is 365. For other brokerages, the default value is 252.
Definition at line 271 of file BaseSetupHandler.cs.
◆ AlgorithmCreationTimeout
TimeSpan QuantConnect.Lean.Engine.Setup.BaseSetupHandler.AlgorithmCreationTimeout = TimeSpan.FromSeconds(Config.GetDouble("algorithm-creation-timeout", 90)) |
|
staticget |
Get the maximum time that the creation of an algorithm can take
Definition at line 46 of file BaseSetupHandler.cs.
The documentation for this class was generated from the following file: