Skip to content

Commit 2d2f2ac

Browse files
authored
Fix example code for Kraken Crypto universe selection
1 parent f9839fa commit 2d2f2ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

03 Writing Algorithms/14 Datasets/06 CoinAPI/08 Kraken Crypto Price Data/08 Universe Selection.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<p>To select a dynamic universe of Kraken Crypto pairs, call the <code class="csharp">AddUniverse</code><code class="python">add_universe</code> method with a <code>CryptoUniverse</code> object. A <a href="/docs/v2/writing-algorithms/universes/crypto">Crypto universe</a> uses a selection function to select Crypto pairs based on their OHLCV and dollar volume of the previous day as of midnight Coordinated Universal Time (UTC).</p>
22

33
<div class="section-example-container">
4-
<pre class="python">from QuantConnect.Data.universe_selection import *
5-
6-
def initialize(self) -&gt; None:
4+
<pre class="python">def initialize(self) -&gt; None:
75
self.set_brokerage_model(BrokerageName.KRAKEN, AccountType.MARGIN)
86
self.universe_settings.asynchronous = True
97
self._universe = self.add_universe(CryptoUniverse.kraken(self.universe_selection_filter))
@@ -26,4 +24,4 @@
2624
select c.Symbol;
2725
}</pre>
2826
</div>
29-
<p>For more information about universe settings, see <a href="/docs/v2/writing-algorithms/universes/settings">Settings</a>.</p>
27+
<p>For more information about universe settings, see <a href="/docs/v2/writing-algorithms/universes/settings">Settings</a>.</p>

0 commit comments

Comments
 (0)