Skip to content

Commit f9839fa

Browse files
authored
Fix code formatting in Coinbase universe selection example
Updated example code for initializing universe settings.
1 parent 0de744d commit f9839fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

03 Writing Algorithms/14 Datasets/06 CoinAPI/07 Coinbase 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 Coinbase 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.universe_settings.asynchronous = True
86
self.set_brokerage_model(BrokerageName.COINBASE, AccountType.CASH)
97
self._universe = self.add_universe(CryptoUniverse.coinbase(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)