Lean
$LEAN_TAG$
|
Provides a base implementation of IBrokerageFactory that provides a helper for reading data from a job's brokerage data dictionary More...
Public Member Functions | |
abstract void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
abstract IBrokerageModel | GetBrokerageModel (IOrderProvider orderProvider) |
Gets a brokerage model that can be used to model this brokerage's unique behaviors More... | |
abstract IBrokerage | CreateBrokerage (LiveNodePacket job, IAlgorithm algorithm) |
Creates a new IBrokerage instance More... | |
virtual IBrokerageMessageHandler | CreateBrokerageMessageHandler (IAlgorithm algorithm, AlgorithmNodePacket job, IApi api) |
Gets a brokerage message handler More... | |
Protected Member Functions | |
BrokerageFactory (Type brokerageType) | |
Initializes a new instance of the BrokerageFactory class for the specified brokerageType More... | |
Static Protected Member Functions | |
static T | Read< T > (IReadOnlyDictionary< string, string > brokerageData, string key, ICollection< string > errors) |
Reads a value from the brokerage data, adding an error if the key is not found More... | |
Properties | |
Type | BrokerageType [get] |
Gets the type of brokerage produced by this factory More... | |
abstract Dictionary< string, string > | BrokerageData [get] |
Gets the brokerage data required to run the brokerage from configuration/disk More... | |
Properties inherited from QuantConnect.Interfaces.IBrokerageFactory | |
Type | BrokerageType [get] |
Gets the type of brokerage produced by this factory More... | |
Dictionary< string, string > | BrokerageData [get] |
Gets the brokerage data required to run the brokerage from configuration/disk More... | |
Provides a base implementation of IBrokerageFactory that provides a helper for reading data from a job's brokerage data dictionary
Definition at line 27 of file BrokerageFactory.cs.
|
protected |
Initializes a new instance of the BrokerageFactory class for the specified brokerageType
brokerageType | The type of brokerage created by this factory |
Definition at line 80 of file BrokerageFactory.cs.
|
pure virtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
<filterpriority>2</filterpriority>
Implemented in QuantConnect.Brokerages.Paper.PaperBrokerageFactory, and QuantConnect.Brokerages.Backtesting.BacktestingBrokerageFactory.
|
pure virtual |
Gets a brokerage model that can be used to model this brokerage's unique behaviors
orderProvider | The order provider |
Implements QuantConnect.Interfaces.IBrokerageFactory.
Implemented in QuantConnect.Brokerages.Paper.PaperBrokerageFactory, and QuantConnect.Brokerages.Backtesting.BacktestingBrokerageFactory.
|
pure virtual |
Creates a new IBrokerage instance
job | The job packet to create the brokerage for |
algorithm | The algorithm instance |
Implements QuantConnect.Interfaces.IBrokerageFactory.
Implemented in QuantConnect.Brokerages.Paper.PaperBrokerageFactory, and QuantConnect.Brokerages.Backtesting.BacktestingBrokerageFactory.
|
virtual |
Gets a brokerage message handler
Implements QuantConnect.Interfaces.IBrokerageFactory.
Definition at line 71 of file BrokerageFactory.cs.
|
staticprotected |
Reads a value from the brokerage data, adding an error if the key is not found
T | : | IConvertible |
Definition at line 88 of file BrokerageFactory.cs.
|
get |
Gets the type of brokerage produced by this factory
Definition at line 41 of file BrokerageFactory.cs.
|
get |
Gets the brokerage data required to run the brokerage from configuration/disk
The implementation of this property will create the brokerage data dictionary required for running live jobs. See IJobQueueHandler.NextJob
Definition at line 52 of file BrokerageFactory.cs.