Table of Contents

Class NewsMessage

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

The message contains information about the news.

[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "News")]
public class NewsMessage : BaseSubscriptionIdMessage<NewsMessage>, IMessage, ILocalTimeMessage, ICloneable, ISubscriptionIdMessage, IOriginalTransactionIdMessage, IServerTimeMessage, INullableSecurityIdMessage, ITransactionIdMessage, ISeqNumMessage
Inheritance
NewsMessage
Implements
Inherited Members
Extension Methods

Constructors

NewsMessage()

Initializes a new instance of the NewsMessage.

public NewsMessage()

Properties

Attachments

Attachments.

[DataMember]
public long[] Attachments { get; set; }

Property Value

long[]

BoardCode

Electronic board code.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Board", Description = "BoardCode", GroupName = "General")]
public string BoardCode { get; set; }

Property Value

string

DataType

Data type info.

public override DataType DataType { get; }

Property Value

DataType

ExpiryDate

Expiration date.

[DataMember]
public DateTimeOffset? ExpiryDate { get; set; }

Property Value

DateTimeOffset?

Headline

Header.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Header", Description = "Header", GroupName = "General")]
public string Headline { get; set; }

Property Value

string

Id

News ID.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Id", Description = "NewsId", GroupName = "General")]
public string Id { get; set; }

Property Value

string

Language

Language.

[DataMember]
public string Language { get; set; }

Property Value

string

Priority

News priority.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Priority", Description = "NewsPriority", GroupName = "General")]
public NewsPriorities? Priority { get; set; }

Property Value

NewsPriorities?

ProductId

Product id.

[DataMember]
[Browsable(false)]
public long ProductId { get; set; }

Property Value

long

SecurityId

Security ID.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Security", Description = "NewsSecurityId", GroupName = "General")]
public SecurityId? SecurityId { get; set; }

Property Value

SecurityId?

SeqNum

Sequence number.

[DataMember]
public long SeqNum { get; set; }

Property Value

long

Remarks

Zero means no information.

ServerTime

Server time.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Time", Description = "NewsTime", GroupName = "General")]
public DateTimeOffset ServerTime { get; set; }

Property Value

DateTimeOffset

Source

News source.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Source", Description = "NewsSource", GroupName = "General")]
public string Source { get; set; }

Property Value

string

Story

News text.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Text", Description = "NewsText", GroupName = "General")]
public string Story { get; set; }

Property Value

string

TransactionId

Request identifier.

[DataMember]
public long TransactionId { get; set; }

Property Value

long

Url

News link in the internet.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Link", Description = "NewsLink", GroupName = "General")]
public string Url { get; set; }

Property Value

string

Methods

CopyTo(NewsMessage)

Copy the message into the destination.

public override void CopyTo(NewsMessage destination)

Parameters

destination NewsMessage

The object, to which copied information.

ToString()

public override string ToString()

Returns

string