-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1925 from QuantConnect/refactor-reality-model-sni…
…ppets-wrapping Refactor Method/Class Wrapping of Reality Modeling Snippets
- Loading branch information
Showing
37 changed files
with
555 additions
and
245 deletions.
There are no files selected for viewing
18 changes: 12 additions & 6 deletions
18
03 Writing Algorithms/24 Reality Modeling/02 Trade Fills/01 Key Concepts/02 Set Models.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 14 additions & 6 deletions
20
03 Writing Algorithms/24 Reality Modeling/03 Slippage/01 Key Concepts/03 Set Models.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
03 Writing Algorithms/24 Reality Modeling/05 Brokerages/01 Key Concepts/02 Set Models.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
03 Writing Algorithms/24 Reality Modeling/06 Brokerage Message Handler/02 Set Models.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<p>To set a brokerage message handler, in the <code class="csharp">Initialize</code><code class="python">initialize</code> method, call the <code class="csharp">SetBrokerageMessageHandler</code><code class="python">set_brokerage_message_handler</code> method.</p> | ||
|
||
<div class="section-example-container"> | ||
<pre class="csharp">SetBrokerageMessageHandler(new MyBrokerageMessageHandler(this));</pre> | ||
<pre class="python">self.set_brokerage_message_handler(MyBrokerageMessageHandler(self))</pre> | ||
<pre class="csharp">public override void Initialize() | ||
{ | ||
// Set a custom brokerage message handler for the algorithm in Initialize method | ||
// It handles different type of returned message from the broker, helping you filter or abstract for the ones you care about | ||
SetBrokerageMessageHandler(new MyBrokerageMessageHandler(this)); | ||
}</pre> | ||
<pre class="python">def initialize(self) -> None: | ||
# Set a custom brokerage message handler for the algorithm in Initialize method | ||
# It handles different type of returned message from the broker, helping you filter or abstract for the ones you care about | ||
self.set_brokerage_message_handler(MyBrokerageMessageHandler(self))</pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
03 Writing Algorithms/24 Reality Modeling/07 Buying Power/06 Set Models.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.