Lean  $LEAN_TAG$
MarginInterestRates.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 
17 using System;
18 
20 {
21  /// <summary>
22  /// Collection of dividends keyed by <see cref="Symbol"/>
23  /// </summary>
24  public class MarginInterestRates : DataDictionary<MarginInterestRate>
25  {
26  /// <summary>
27  /// Initializes a new instance of the <see cref="MarginInterestRate"/> dictionary
28  /// </summary>
30  {
31  }
32 
33  /// <summary>
34  /// Initializes a new instance of the <see cref="MarginInterestRate"/> dictionary
35  /// </summary>
36  /// <param name="frontier">The time associated with the data in this dictionary</param>
37  public MarginInterestRates(DateTime frontier)
38  : base(frontier)
39  {
40  }
41 
42  /// <summary>
43  /// Gets or sets the Dividend with the specified ticker.
44  /// </summary>
45  /// <returns>
46  /// The Dividend with the specified ticker.
47  /// </returns>
48  /// <param name="ticker">The ticker of the element to get or set.</param>
49  /// <remarks>Wraps the base implementation to enable indexing in python algorithms due to pythonnet limitations</remarks>
50  public new MarginInterestRate this[string ticker] { get { return base[ticker]; } set { base[ticker] = value; } }
51 
52  /// <summary>
53  /// Gets or sets the Dividend with the specified Symbol.
54  /// </summary>
55  /// <returns>
56  /// The Dividend with the specified Symbol.
57  /// </returns>
58  /// <param name="symbol">The Symbol of the element to get or set.</param>
59  /// <remarks>Wraps the base implementation to enable indexing in python algorithms due to pythonnet limitations</remarks>
60  public new MarginInterestRate this[Symbol symbol] { get { return base[symbol]; } set { base[symbol] = value; } }
61  }
62 }