7ed94c0a35
Update SECReport* to ignore null values
55 lines
2.2 KiB
C#
55 lines
2.2 KiB
C#
/*
|
|
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
|
|
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 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 Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
using QuantConnect.Util;
|
|
|
|
namespace QuantConnect.Data.Custom.SEC
|
|
{
|
|
public class SECReportFiler
|
|
{
|
|
/// <summary>
|
|
/// SEC data containing company data such as company name, cik, etc.
|
|
/// </summary>
|
|
[JsonProperty("COMPANY-DATA")]
|
|
public SECReportCompanyData CompanyData;
|
|
|
|
/// <summary>
|
|
/// Information regarding the filing itself
|
|
/// </summary>
|
|
[JsonProperty("FILING-VALUES"), JsonConverter(typeof(SingleValueListConverter<SECReportFilingValues>))]
|
|
public List<SECReportFilingValues> Values;
|
|
|
|
/// <summary>
|
|
/// Information related to the business' address
|
|
/// </summary>
|
|
[JsonProperty("BUSINESS-ADDRESS"), JsonConverter(typeof(SingleValueListConverter<SECReportBusinessAddress>))]
|
|
public List<SECReportBusinessAddress> BusinessAddress;
|
|
|
|
/// <summary>
|
|
/// Company mailing address information
|
|
/// </summary>
|
|
[JsonProperty("MAIL-ADDRESS"), JsonConverter(typeof(SingleValueListConverter<SECReportMailAddress>))]
|
|
public List<SECReportMailAddress> MailingAddress;
|
|
|
|
/// <summary>
|
|
/// Former company names. Default to empty list in order to not have null values
|
|
/// in the case that the company has never had a former name
|
|
/// </summary>
|
|
[JsonProperty("FORMER-COMPANY"), JsonConverter(typeof(SingleValueListConverter<SECReportFormerCompany>))]
|
|
public List<SECReportFormerCompany> FormerCompanies;
|
|
}
|
|
} |