Lean
$LEAN_TAG$
|
Defines factory types for brokerages. Every IBrokerage is expected to also implement an IBrokerageFactory. More...
Public Member Functions | |
IBrokerageModel | GetBrokerageModel (IOrderProvider orderProvider) |
Gets a brokerage model that can be used to model this brokerage's unique behaviors More... | |
IBrokerage | CreateBrokerage (LiveNodePacket job, IAlgorithm algorithm) |
Creates a new IBrokerage instance More... | |
IBrokerageMessageHandler | CreateBrokerageMessageHandler (IAlgorithm algorithm, AlgorithmNodePacket job, IApi api) |
Gets a brokerage message handler More... | |
Properties | |
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... | |
Defines factory types for brokerages. Every IBrokerage is expected to also implement an IBrokerageFactory.
Definition at line 29 of file IBrokerageFactory.cs.
IBrokerageModel QuantConnect.Interfaces.IBrokerageFactory.GetBrokerageModel | ( | IOrderProvider | orderProvider | ) |
Gets a brokerage model that can be used to model this brokerage's unique behaviors
orderProvider | The order provider |
Implemented in QuantConnect.Brokerages.BrokerageFactory, QuantConnect.Brokerages.Paper.PaperBrokerageFactory, and QuantConnect.Brokerages.Backtesting.BacktestingBrokerageFactory.
IBrokerage QuantConnect.Interfaces.IBrokerageFactory.CreateBrokerage | ( | LiveNodePacket | job, |
IAlgorithm | algorithm | ||
) |
Creates a new IBrokerage instance
job | The job packet to create the brokerage for |
algorithm | The algorithm instance |
Implemented in QuantConnect.Brokerages.BrokerageFactory, QuantConnect.Brokerages.Paper.PaperBrokerageFactory, and QuantConnect.Brokerages.Backtesting.BacktestingBrokerageFactory.
IBrokerageMessageHandler QuantConnect.Interfaces.IBrokerageFactory.CreateBrokerageMessageHandler | ( | IAlgorithm | algorithm, |
AlgorithmNodePacket | job, | ||
IApi | api | ||
) |
Gets a brokerage message handler
Implemented in QuantConnect.Brokerages.BrokerageFactory.
|
get |
Gets the type of brokerage produced by this factory
Definition at line 34 of file IBrokerageFactory.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 43 of file IBrokerageFactory.cs.