コード例 #1
0
 /// <summary>
 /// Converts the data to TSV
 /// </summary>
 /// <returns>String of TSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from TSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TransactionID,
                        EventType == null ? null : JsonConvert.SerializeObject(EventType).Replace("\"", ""),
                        LastUpdate.ToStringInvariant("yyyyMMdd"),
                        LastIDsUpdate?.ToStringInvariant("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"),
                        NextCloseBegin?.ToStringInvariant("yyyyMMdd"),
                        LastCloseEnded?.ToStringInvariant("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        BuybackDate?.ToStringInvariant("yyyyMMdd"),
                        Execution == null ? null : JsonConvert.SerializeObject(Execution).Replace("\"", ""),
                        ExecutionEntity == null ? null : JsonConvert.SerializeObject(ExecutionEntity).Replace("\"", ""),
                        ExecutionHolding == null ? null : JsonConvert.SerializeObject(ExecutionHolding).Replace("\"", ""),
                        Currency,
                        ExecutionPrice,
                        Amount,
                        GBPValue,
                        EURValue,
                        USDValue,
                        NoteText,
                        BuybackPercentage,
                        VolumePercentage,
                        ConversionRate,
                        AmountAdjustedFactor,
                        PriceAdjustedFactor,
                        TreasuryHolding));
 }
コード例 #2
0
 /// <summary>
 /// Converts the data to CSV
 /// </summary>
 /// <returns>String of CSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TransactionID,
                        BuybackType,
                        LastUpdate.ToStringInvariant("yyyyMMdd"),
                        LastIDsUpdate?.ToStringInvariant("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"),
                        NextCloseBegin?.ToStringInvariant("yyyyMMdd"),
                        LastCloseEnded?.ToStringInvariant("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        BuybackDate?.ToStringInvariant("yyyyMMdd"),
                        BuybackVia,
                        BuybackBy,
                        HoldingType,
                        Currency,
                        Price,
                        TransactionAmount,
                        GBPValue,
                        EURValue,
                        USDValue,
                        NoteText,
                        BuybackPercentage,
                        VolumePercentage,
                        ConversionRate,
                        AmountAdjustedFactor,
                        PriceAdjustedFactor,
                        TreasuryHolding));
 }
コード例 #3
0
 /// <summary>
 /// Converts the data to TSV
 /// </summary>
 /// <returns>String of TSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from TSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TransactionID,
                        JsonConvert.SerializeObject(EventType).Replace("\"", ""),
                        LastUpdate.ToStringInvariant("yyyyMMdd"),
                        LastIDsUpdate?.ToStringInvariant("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"),
                        NextCloseBegin?.ToStringInvariant("yyyyMMdd"),
                        LastCloseEnded?.ToStringInvariant("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        JsonConvert.SerializeObject(Execution).Replace("\"", ""),
                        JsonConvert.SerializeObject(ExecutionEntity).Replace("\"", ""),
                        JsonConvert.SerializeObject(ExecutionHolding).Replace("\"", ""),
                        Amount,
                        ValueCurrency,
                        AmountValue,
                        Percentage,
                        AuthorizationStartDate?.ToStringInvariant("yyyyMMdd"),
                        AuthorizationEndDate?.ToStringInvariant("yyyyMMdd"),
                        PriceCurrency,
                        MinimumPrice,
                        MaximumPrice,
                        NoteText));
 }
コード例 #4
0
ファイル: SmartInsiderIntention.cs プロジェクト: zxbe/Lean
 /// <summary>
 /// Converts the data to CSV
 /// </summary>
 /// <returns>String of CSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TransactionID,
                        BuybackType,
                        LastUpdate.ToStringInvariant("yyyyMMdd"),
                        LastIDsUpdate?.ToStringInvariant("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToStringInvariant("yyyyMMdd"),
                        NextCloseBegin?.ToStringInvariant("yyyyMMdd"),
                        LastCloseEnded?.ToStringInvariant("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToStringInvariant("yyyyMMdd"),
                        TimeReleased?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        TimeProcessedUtc?.ToStringInvariant("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        IntentionVia,
                        IntentionBy,
                        BuybackIntentionHoldingType,
                        IntentionAmount,
                        ValueCurrency,
                        IntentionValue,
                        IntentionPercentage,
                        IntentionAuthorisationStartDate?.ToStringInvariant("yyyyMMdd"),
                        IntentionAuthorisationEndDate?.ToStringInvariant("yyyyMMdd"),
                        PriceCurrency,
                        MinimumPrice,
                        MaximumPrice,
                        BuybackIntentionNoteText));
 }