Table of Contents

Class SpectraFixDialect

Namespace
StockSharp.Fix.Dialects.Moex.Spectra
Assembly
StockSharp.Fix.dll

SPECTRA FIX protocol dialect.

[MediaIcon("Moex_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Spectra", GroupName = "Russia")]
public class SpectraFixDialect : BaseFixDialect, IFixDialect, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, IDemoAdapter
Inheritance
SpectraFixDialect
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

SpectraFixDialect(IdGenerator)

Initializes a new instance of the SpectraFixDialect.

public SpectraFixDialect(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Transaction id generator.

Properties

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

PossibleSupportedMessages

Possible supported by adapter message types.

public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }

Property Value

IEnumerable<MessageTypeInfo>

Methods

IsLogoutError(string)

Check Logout contains error message.

protected override bool IsLogoutError(string text)

Parameters

text string

Text message.

Returns

bool

true if the specified text contains error message, otherwise, false.

OnRead(IFixReader, string, Action<Message>)

Read next message from FIX protocol.

protected override bool? OnRead(IFixReader reader, string msgType, Action<Message> messageHandler)

Parameters

reader IFixReader

The reader of data recorded in the FIX protocol format.

msgType string

Message type.

messageHandler Action<Message>

Message handler.

Returns

bool?

true, if the messages was read successfully, false to skip unknown message, null to break connection.

OnWrite(IFixWriter, Message)

Write the specified message into FIX protocol.

protected override string OnWrite(IFixWriter writer, Message message)

Parameters

writer IFixWriter

The recorder of data in the FIX protocol format.

message Message

The message.

Returns

string

FixMessages value.