AstsFixDialect

StockSharp.Fix.Dialects.Moex.Asts

ASTS FIX protocol dialect.

Inherits: BaseFixDialect

Constructors

AstsFixDialect
protected AstsFixDialect(IdGenerator transactionIdGenerator)
astsFixDialect = AstsFixDialect(transactionIdGenerator)

Initializes a new instance of the AstsFixDialect.

transactionIdGenerator
Transaction id generator.

Properties

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

Feature name.

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

Possible supported by adapter message types.

Methods

ApplyTimeInForce
protected override bool ApplyTimeInForce(ExecutionReport report, ExecutionMessage msg, bool throwInvalid)
result = astsFixDialect.ApplyTimeInForce(report, msg, throwInvalid)

Apply time in force.

report
msg
throwInvalid
IsLogoutError
protected override bool IsLogoutError(string text)
result = astsFixDialect.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 = astsFixDialect.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 = astsFixDialect.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.

WriteSecurityIdAsync
protected abstract ValueTask WriteSecurityIdAsync(IFixWriter writer, SecurityMessage secMsg, CancellationToken cancellationToken)
result = astsFixDialect.WriteSecurityIdAsync(writer, secMsg, cancellationToken)

Write security id.

writer
FIX data writer.
secMsg
Security ID.
cancellationToken
Cancellation token.