We have 3 queries:
1) We are using CorporateActionsStandardExtractionRequest whereas I see that you are using CorporateActionsStandardReportTemplate – do you anticipate differences in behavior when using one class versus the other?
2) If you look at our setting of the condition, you will see that we set our IncludeInstrumentsWithNoEvents to false whereas you set it to null, and we set our ReportDateRangeType to a string (“Last”) whereas you set it to whatever the value behind ReportDateRangeType.Delta is. Could this be causing issues? Do we need to set any other flags?
newCorporateActionsStandardCondition{ExcludeDeletedEvents = true,ReportDateRangeType = ReportDateRangeType,IncludeInstrumentsWithNoEvents = false,};
3) Can you confirm that the code below works (i.e. that if you try to run it against a sedol with the excludedeleted flag set to true, then no retired shares will be returned)
Your original solution/response was:
Here is the code for excluding deleted events in corp actions:
publicvoid CreateCorporateActionsStandardReportTemplate() { Status.Notify(ExtractionsContext, "ReportTemplateType", "GetContentFieldTypes", MethodType.Operation, Publish.Secondary); //Retrieve the list of available fields. You can skip this step if you already know the list of fields to extract. //The list of fields contains the code, name, format. Either the code or name can be used as the fieldName when //adding content fields var availableFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.CorporateActions); Status.EndNotify(ExtractionsContext); Status.Notify(ExtractionsContext, "CorporateActionsStandardReportTemplate", "Create", MethodType.Operation, Publish.Primary); //Create the new report template var reportTemplate = new CorporateActionsStandardReportTemplate { Name = Guid.NewGuid().ToString(), OutputFormat = ReportOutputFormat.CommaSeparatedValues, Condition = newCorporateActionsStandardCondition { PreviousDays = 30, ReportDateRangeType = ReportDateRangeType.Delta, CorporateActionsCapitalChangeType = CorporateActionsCapitalChangeType.CapitalChangeExDate, CorporateActionsDividendsType = CorporateActionsDividendsType.DividendPayDate, CorporateActionsEarningsType = CorporateActionsEarningsType.PeriodEndDate, CorporateActionsEquityOfferingsType = CorporateActionsEquityOfferingsType.AllPendingDeals, CorporateActionsMergersAcquisitionsType = CorporateActionsMergersAcquisitionsType.DealAnnouncementDate, CorporateActionsNominalValueType = CorporateActionsNominalValueType.NominalValueDate, CorporateActionsSharesType = CorporateActionsSharesType.SharesAmountDate, CorporateActionsStandardEventsType = CorporateActionsStandardEventsType.None, CorporateActionsVotingRightsType = CorporateActionsVotingRightsType.VotingRightsDate, QueryStartDate = null, NextDays = null, QueryEndDate = null, PendingEventsHours = null, PendingEventsMinutes = null, IncludeInstrumentsWithNoEvents = null, IncludeNullDates = null, // // EXCLUDE DELETED EVENTS // ExcludeDeletedEvents = true, IncludeCapitalChangeEvents = true, IncludeDividendEvents = true, IncludeEarningsEvents = true, IncludeMergersAndAcquisitionsEvents = true, IncludeNominalValueEvents = true, IncludePublicEquityOfferingsEvents = true, IncludeSharesOutstandingEvents = true, IncludeVotingRightsEvents = true }, };