IFixReader

StockSharp.Fix.Native

The interface describing the reader of data recorded in the FIX protocol format.

Implements: IFixBase, IDisposable

Properties

IsValueRead
public bool IsValueRead { get; }
value = iFixReader.IsValueRead

Whether the tag value was read.

LastTag
public FixTags LastTag { get; }
value = iFixReader.LastTag

Last read tag.

Methods

ClearState
public void ClearState()
iFixReader.ClearState()

Clear state.

FlushDump
public string FlushDump()
result = iFixReader.FlushDump()

Get data log.

Returns: Data log.

ReadBoolAsync
public ValueTask<bool> ReadBoolAsync(CancellationToken cancellationToken)
result = iFixReader.ReadBoolAsync(cancellationToken)

Read Boolean value.

cancellationToken
Cancellation token.

Returns: Boolean value.

ReadBytesAsync
public ValueTask ReadBytesAsync(Memory<byte> buffer, CancellationToken cancellationToken)
result = iFixReader.ReadBytesAsync(buffer, cancellationToken)

Read Byte array value.

buffer
Buffer.
cancellationToken
Cancellation token.
ReadCharAsync
public ValueTask<char> ReadCharAsync(CancellationToken cancellationToken)
result = iFixReader.ReadCharAsync(cancellationToken)

Read Char value.

cancellationToken
Cancellation token.

Returns: Char value.

ReadDateTimeAsync
public ValueTask<DateTime> ReadDateTimeAsync(FastDateTimeParser parser, CancellationToken cancellationToken)
result = iFixReader.ReadDateTimeAsync(parser, cancellationToken)

Read DateTime value asynchronously.

parser
Time parser. Required if data will be transferred as string.
cancellationToken
Cancellation token.

Returns: DateTime value.

ReadDecimalAsync
public ValueTask<decimal> ReadDecimalAsync(CancellationToken cancellationToken)
result = iFixReader.ReadDecimalAsync(cancellationToken)

Read Decimal value.

cancellationToken
Cancellation token.

Returns: Decimal value.

ReadIntAsync
public ValueTask<int> ReadIntAsync(CancellationToken cancellationToken)
result = iFixReader.ReadIntAsync(cancellationToken)

Read Int32 value.

cancellationToken
Cancellation token.

Returns: Int32 value.

ReadLongAsync
public ValueTask<long> ReadLongAsync(CancellationToken cancellationToken)
result = iFixReader.ReadLongAsync(cancellationToken)

Read Int64 value.

cancellationToken
Cancellation token.

Returns: Int64 value.

ReadStringAsync
public ValueTask<string> ReadStringAsync(CancellationToken cancellationToken)
result = iFixReader.ReadStringAsync(cancellationToken)

Read String value.

cancellationToken
Cancellation token.

Returns: String value.

ReadTagAsync
public ValueTask<FixTags> ReadTagAsync(CancellationToken cancellationToken)
result = iFixReader.ReadTagAsync(cancellationToken)

To read the following tag.

cancellationToken
Cancellation token.

Returns: The next tag. The -1 indicates the end of data.

ReadTimeSpanAsync
public ValueTask<TimeSpan> ReadTimeSpanAsync(FastTimeSpanParser parser, CancellationToken cancellationToken)
result = iFixReader.ReadTimeSpanAsync(parser, cancellationToken)

Read TimeSpan value.

parser
Time parser. Required if data will be transferred as string.
cancellationToken
Cancellation token.

Returns: TimeSpan value.

SkipValueAsync
public ValueTask SkipValueAsync(CancellationToken cancellationToken)
result = iFixReader.SkipValueAsync(cancellationToken)

Skip value.

cancellationToken
Cancellation token.