SpectraFixDialect

StockSharp.Fix.Dialects.Moex.Spectra

SPECTRA FIX protocol dialect.

Inherits: BaseFixDialect

Constructors

SpectraFixDialect
public SpectraFixDialect(IdGenerator transactionIdGenerator)
spectraFixDialect = SpectraFixDialect(transactionIdGenerator)

Initializes a new instance of the SpectraFixDialect.

transactionIdGenerator
Transaction id generator.

Properties

FeatureName
public override string FeatureName { get; }
value = spectraFixDialect.FeatureName

Feature name.

PossibleSupportedMessages
public override IEnumerable<MessageTypeInfo> PossibleSupportedMessages { get; }
value = spectraFixDialect.PossibleSupportedMessages

Possible supported by adapter message types.

Methods

IsLogoutError
protected override bool IsLogoutError(string text)
result = spectraFixDialect.IsLogoutError(text)

Check Logout contains error message.

text
Text message.

Returns: if the specified text contains error message, otherwise, .

OnReadAsync
protected override IAsyncEnumerable<Message> OnReadAsync(IFixReader reader, string msgType, CancellationToken cancellationToken)
result = spectraFixDialect.OnReadAsync(reader, msgType, cancellationToken)

Read next message from FIX protocol.

reader
The reader of data recorded in the FIX protocol format.
msgType
Message type.
cancellationToken
CancellationToken

Returns: The sequence of messages.

OnWriteAsync
protected override ValueTask<string> OnWriteAsync(IFixWriter writer, Message message, CancellationToken cancellationToken)
result = spectraFixDialect.OnWriteAsync(writer, message, cancellationToken)

Write the specified message into FIX protocol.

writer
The recorder of data in the FIX protocol format.
message
The message.
cancellationToken
Cancellation token.

Returns: FixMessages value.