Skip to content

Commit fb58ae8

Browse files
authored
Merge pull request #2153 from DerekMelchin/bug-alt-dataset-code-gen-fix
Fix alt datasets code generator
2 parents 1dff564 + 2b3b327 commit fb58ae8

File tree

88 files changed

+390
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+390
-225
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"type": "landing",
3-
"heading": "QuantConnect",
4-
"subHeading": "",
5-
"content": "<p>\nQuantConnect was founded in 2012 to serve quants everywhere with the best possible algorithmic trading technology. Seeking to disrupt a notoriously closed-source industry, QuantConnect takes a radically open-source approach to algorithmic trading. Through the QuantConnect web platform, more than 50,000 quants are served every month.\n</p>",
6-
"alsoLinks": [],
2+
"type": "landing",
3+
"heading": "QuantConnect",
4+
"subHeading": "",
5+
"content": "<p>QuantConnect was founded in 2012 to serve quants everywhere with the best possible algorithmic trading technology. Seeking to disrupt a notoriously closed-source industry, QuantConnect takes a radically open-source approach to algorithmic trading. Through the QuantConnect web platform, more than 50,000 quants are served every month. </p>",
6+
"alsoLinks": [],
77
"featureShortDescription": {}
8-
}
8+
}

03 Writing Algorithms/14 Datasets/02 QuantConnect/06 Fear and Greed/04 Data Summary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
</tr></tbody></table>
1414

1515

16-
<p>The latest daily data points are about two days since the VIX and SPX prices are inputs into the index and their latest daily prices are also two days old.</p>
16+
<p>The latest daily data points are about two days since the VIX and SPX prices are inputs into the index and their latest daily prices are also two days old. New data is available at 9 AM EST.</p>

03 Writing Algorithms/14 Datasets/02 QuantConnect/07 International Future Universe/05 Requesting Data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
SetStartDate(2013, 12, 20);
2525
SetEndDate(2014, 2, 20);
2626
SetCash(1000000);
27-
UniverseSettings.Asynchronous = True;
27+
UniverseSettings.Asynchronous = true;
2828
var future = AddFuture(Futures.Indices.HangSeng);
2929
// Set our contract filter for this Future chain.
3030
_future.SetFilter((universe) =&gt; universe.StandardsOnly().FrontMonth());

03 Writing Algorithms/14 Datasets/02 QuantConnect/07 International Future Universe/98 Example Applications.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h4>Classic Algorithm Example</h4>
7373
// Note that we will trade the contract with the highest open interest for liquidity.
7474
_hsiFuture = AddFuture(
7575
Futures.Indices.HangSeng,
76-
extendedMarketHours: True,
76+
extendedMarketHours: true,
7777
dataMappingMode: DataMappingMode.LastTradingDay,
7878
contractDepthOffset: 0
7979
);

03 Writing Algorithms/14 Datasets/02 QuantConnect/08 US ETF Constituents/03 Getting Started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
return [x.symbol for x in constituents]</pre>
1616
<pre class="csharp">public override void Initialize()
1717
{
18-
UniverseSettings.Asynchronous = True;
18+
UniverseSettings.Asynchronous = true;
1919
// Use the following method for a Classic Algorithm
2020
_universe = AddUniverse(Universe.ETF("SPY", Market.USA, UniverseSettings, ETFConstituentsFilter));
2121

03 Writing Algorithms/14 Datasets/02 QuantConnect/08 US ETF Constituents/05 Requesting Data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
SetStartDate(2018, 1, 1);
1818
SetEndDate(2020, 8, 25);
1919
SetCash(100000);
20-
UniverseSettings.Asynchronous = True;
20+
UniverseSettings.Asynchronous = true;
2121
_universe = AddUniverse(Universe.ETF("SPY", UniverseSettings, ETFConstituentsFilter));
2222
}
2323
}

03 Writing Algorithms/14 Datasets/02 QuantConnect/08 US ETF Constituents/98 Example Applications.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h4>Classic Algorithm Example</h4>
6565
# Liquidate the ones not in top 10 weights
6666
for security in changes.removed_securities:
6767
if security.invested:
68-
self.liquidate(security.symbol, tag='Removed From Universe')
68+
self.liquidate(security.symbol, 'Removed From Universe')
6969

7070
for security in changes.added_securities:
7171
# Historical data
@@ -82,7 +82,7 @@ <h4>Classic Algorithm Example</h4>
8282
SetStartDate(2016, 1, 1);
8383
SetEndDate(2021, 1, 1);
8484
SetCash(100000);
85-
UniverseSettings.Asynchronous = True;
85+
UniverseSettings.Asynchronous = true;
8686
UniverseSettings.Resolution = Resolution.Minute;
8787

8888
// Add universe selection on SPY's constituents to select only from large cap stocks
@@ -146,7 +146,7 @@ <h4>Classic Algorithm Example</h4>
146146
// Liquidate the ones not in top 10 weights
147147
foreach (var security in changes.RemovedSecurities.Where(x =&gt; x.Invested))
148148
{
149-
Liquidate(security.Symbol, tag: "Removed From Universe");
149+
Liquidate(security.Symbol, "Removed From Universe");
150150
}
151151

152152
foreach (var security in changes.AddedSecurities)
@@ -251,7 +251,7 @@ <h4>Framework Algorithm Example</h4>
251251
SetStartDate(2016, 1, 1);
252252
SetEndDate(2021, 1, 1);
253253
SetCash(100000);
254-
UniverseSettings.Asynchronous = True;
254+
UniverseSettings.Asynchronous = true;
255255
UniverseSettings.Resolution = Resolution.Minute;
256256

257257
// Add universe selection on SPY's constituents to select only from large cap stocks
@@ -265,7 +265,7 @@ <h4>Framework Algorithm Example</h4>
265265
// Set up portfolio construction model that invest by the insight weights
266266
var pcm = new InsightWeightingPortfolioConstructionModel();
267267
// Avoid excessive rebalance on insight changes
268-
pcm.RebalanceOnInsightChanges = False;
268+
pcm.RebalanceOnInsightChanges = false;
269269
SetPortfolioConstruction(pcm);
270270

271271
AddRiskManagement(new NullRiskManagementModel());

03 Writing Algorithms/14 Datasets/02 QuantConnect/10 US Equity Coarse Universe/05 Requesting Data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
SetStartDate(2021, 1, 1);
2626
SetEndDate(2021, 7, 1);
2727
SetCash(100000);
28-
UniverseSettings.Asynchronous = True;
28+
UniverseSettings.Asynchronous = true;
2929

3030
// Option 1: Subscribe to individual US Equity assets
3131
AddEquity("IBM");

03 Writing Algorithms/14 Datasets/02 QuantConnect/10 US Equity Coarse Universe/98 Example Applications.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ <h4>Classic Algorithm Example</h4>
6464
SetEndDate(2021, 7, 1);
6565
SetCash(100000);
6666

67-
// Set Asynchronous to True to improve speed performance
68-
UniverseSettings.Asynchronous = True;
67+
// Set Asynchronous to true to improve speed performance
68+
UniverseSettings.Asynchronous = true;
6969
// Requesting data
7070
AddUniverse(FundamentalSelectionFunction);
7171
}
@@ -159,8 +159,8 @@ <h4>Framework Algorithm Example</h4>
159159
SetEndDate(2021, 7, 1);
160160
SetCash(100000);
161161

162-
// Set Asynchronous to True to improve speed performance
163-
UniverseSettings.Asynchronous = True;
162+
// Set Asynchronous to true to improve speed performance
163+
UniverseSettings.Asynchronous = true;
164164

165165
// Requesting data
166166
SetUniverseSelection(

03 Writing Algorithms/14 Datasets/02 QuantConnect/11 US Equity Option Universe/05 Requesting Data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
SetStartDate(2020, 6, 1);
3838
SetEndDate(2021, 6, 1);
3939
SetCash(100000);
40-
UniverseSettings.Asynchronous = True;
40+
UniverseSettings.Asynchronous = true;
4141
// Requesting data
4242
var option = AddOption("GOOG");
4343
_optionSymbol = option.Symbol;

0 commit comments

Comments
 (0)