Lean
$LEAN_TAG$
USTreasuriesETFUniverse.cs
1
/*
2
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
using
System;
17
using
System.Collections.Generic;
18
19
namespace
QuantConnect.Algorithm.Framework.Selection
20
{
21
/// <summary>
22
/// Universe Selection Model that adds the following US Treasuries ETFs at their inception date
23
/// 2002-07-26 IEF iShares 7-10 Year Treasury Bond ETF
24
/// 2002-07-26 SHY iShares 1-3 Year Treasury Bond ETF
25
/// 2002-07-26 TLT iShares 20+ Year Treasury Bond ETF
26
/// 2007-01-11 SHV iShares Short Treasury Bond ETF
27
/// 2007-01-11 IEI iShares 3-7 Year Treasury Bond ETF
28
/// 2007-01-11 TLH iShares 10-20 Year Treasury Bond ETF
29
/// 2007-12-10 EDV Vanguard Ext Duration Treasury ETF
30
/// 2007-05-30 BIL SPDR Barclays 1-3 Month T-Bill ETF
31
/// 2007-05-30 SPTL SPDR Portfolio Long Term Treasury ETF
32
/// 2008-05-01 TBT UltraShort Barclays 20+ Year Treasury
33
/// 2009-04-16 TMF Direxion Daily 20-Year Treasury Bull 3X
34
/// 2009-04-16 TMV Direxion Daily 20-Year Treasury Bear 3X
35
/// 2009-08-20 TBF ProShares Short 20+ Year Treasury
36
/// 2009-11-23 VGSH Vanguard Short-Term Treasury ETF
37
/// 2009-11-23 VGIT Vanguard Intermediate-Term Treasury ETF
38
/// 2009-11-24 VGLT Vanguard Long-Term Treasury ETF
39
/// 2010-08-06 SCHO Schwab Short-Term U.S. Treasury ETF
40
/// 2010-08-06 SCHR Schwab Intermediate-Term U.S. Treasury ETF
41
/// 2011-12-01 SPTS SPDR Portfolio Short Term Treasury ETF
42
/// 2012-02-24 GOVT iShares U.S. Treasury Bond ETF
43
/// </summary>
44
public
class
USTreasuriesETFUniverse
:
InceptionDateUniverseSelectionModel
45
{
46
/// <summary>
47
/// Initializes a new instance of the USTreasuriesETFUniverse class
48
/// </summary>
49
public
USTreasuriesETFUniverse
() :
50
base(
51
"qc-us-treasuries-etf-basket"
,
52
new Dictionary<string, DateTime>()
53
{
54
{
"IEF"
,
new
DateTime(2002, 7, 26)},
55
{
"SHY"
,
new
DateTime(2002, 7, 26)},
56
{
"TLT"
,
new
DateTime(2002, 7, 26)},
57
{
"IEI"
,
new
DateTime(2007, 1, 11)},
58
{
"SHV"
,
new
DateTime(2007, 1, 11)},
59
{
"TLH"
,
new
DateTime(2007, 1, 11)},
60
{
"EDV"
,
new
DateTime(2007, 12, 10)},
61
{
"BIL"
,
new
DateTime(2007, 5, 30)},
62
{
"SPTL"
,
new
DateTime(2007, 5, 30)},
63
{
"TBT"
,
new
DateTime(2008, 5, 1)},
64
{
"TMF"
,
new
DateTime(2009, 4, 16)},
65
{
"TMV"
,
new
DateTime(2009, 4, 16)},
66
{
"TBF"
,
new
DateTime(2009, 8, 20)},
67
{
"VGSH"
,
new
DateTime(2009, 11, 23)},
68
{
"VGIT"
,
new
DateTime(2009, 11, 23)},
69
{
"VGLT"
,
new
DateTime(2009, 11, 24)},
70
{
"SCHO"
,
new
DateTime(2010, 8, 6)},
71
{
"SCHR"
,
new
DateTime(2010, 8, 6)},
72
{
"SPTS"
,
new
DateTime(2011, 12, 1)},
73
{
"GOVT"
,
new
DateTime(2012, 2, 24)}
74
}
75
)
76
{
77
78
}
79
}
80
}
Algorithm.Framework
Selection
USTreasuriesETFUniverse.cs
Generated by
1.8.17