113 lines
4.1 KiB
C#
113 lines
4.1 KiB
C#
/*
|
|
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
|
|
* Lean Algorithmic Trading Engine v2.0. Copyright 2023 QuantConnect Corporation.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
*/
|
|
|
|
using System;
|
|
using QuantConnect.Data.UniverseSelection;
|
|
using QuantConnect.Python;
|
|
|
|
namespace QuantConnect.Data.Fundamental
|
|
{
|
|
/// <summary>
|
|
/// Definition of the FineFundamental class
|
|
/// </summary>
|
|
public partial class FineFundamental : CoarseFundamental
|
|
{
|
|
private readonly FundamentalInstanceProvider _fundamentalInstanceProvider;
|
|
|
|
/// <summary>
|
|
/// The instance of the CompanyReference class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public CompanyReference CompanyReference => _fundamentalInstanceProvider.GetCompanyReference(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the SecurityReference class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public SecurityReference SecurityReference => _fundamentalInstanceProvider.GetSecurityReference(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the FinancialStatements class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public FinancialStatements FinancialStatements => _fundamentalInstanceProvider.GetFinancialStatements(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the EarningReports class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public EarningReports EarningReports => _fundamentalInstanceProvider.GetEarningReports(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the OperationRatios class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public OperationRatios OperationRatios => _fundamentalInstanceProvider.GetOperationRatios(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the EarningRatios class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public EarningRatios EarningRatios => _fundamentalInstanceProvider.GetEarningRatios(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the ValuationRatios class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public ValuationRatios ValuationRatios => _fundamentalInstanceProvider.GetValuationRatios(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the CompanyProfile class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public CompanyProfile CompanyProfile => _fundamentalInstanceProvider.GetCompanyProfile(Time);
|
|
|
|
/// <summary>
|
|
/// The instance of the AssetClassification class
|
|
/// </summary>
|
|
[PandasNonExpandable]
|
|
public AssetClassification AssetClassification => _fundamentalInstanceProvider.GetAssetClassification(Time);
|
|
|
|
/// <summary>
|
|
/// Creates a new empty instance
|
|
/// </summary>
|
|
public FineFundamental()
|
|
{
|
|
_fundamentalInstanceProvider = FundamentalInstanceProvider.Get(Symbol.Empty);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance for the given time and security
|
|
/// </summary>
|
|
public FineFundamental(DateTime time, Symbol symbol)
|
|
{
|
|
Time = time;
|
|
Symbol = symbol;
|
|
_fundamentalInstanceProvider = FundamentalInstanceProvider.Get(symbol);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new instance for the given time and security
|
|
/// </summary>
|
|
public FineFundamental(DateTime time, Symbol symbol, FundamentalInstanceProvider fundamentalInstanceProvider)
|
|
{
|
|
Time = time;
|
|
Symbol = symbol;
|
|
_fundamentalInstanceProvider = fundamentalInstanceProvider;
|
|
}
|
|
}
|
|
}
|