Table of Contents

Class BaseExporter

Namespace
StockSharp.Algo.Export
Assembly
StockSharp.Algo.dll

The base class of export.

public abstract class BaseExporter
Inheritance
BaseExporter
Derived
Inherited Members
Extension Methods

Constructors

BaseExporter(DataType, Func<int, bool>, string)

Initialize BaseExporter.

protected BaseExporter(DataType dataType, Func<int, bool> isCancelled, string path)

Parameters

dataType DataType

Data type info.

isCancelled Func<int, bool>

The processor, returning process interruption sign.

path string

The path to file.

Properties

DataType

Data type info.

public DataType DataType { get; }

Property Value

DataType

Path

The path to file.

protected string Path { get; }

Property Value

string

Methods

CanProcess(int)

Is it possible to continue export.

protected bool CanProcess(int exported = 1)

Parameters

exported int

The number of exported elements from previous call of the method.

Returns

bool

true, if export can be continued, otherwise, false.

Export(IEnumerable<IndicatorValue>)

To export IndicatorValue.

protected abstract (int, DateTimeOffset?) Export(IEnumerable<IndicatorValue> values)

Parameters

values IEnumerable<IndicatorValue>

Values.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<CandleMessage>)

To export CandleMessage.

protected abstract (int, DateTimeOffset?) Export(IEnumerable<CandleMessage> messages)

Parameters

messages IEnumerable<CandleMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<Level1ChangeMessage>)

protected abstract (int, DateTimeOffset?) Export(IEnumerable<Level1ChangeMessage> messages)

Parameters

messages IEnumerable<Level1ChangeMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<NewsMessage>)

To export NewsMessage.

protected abstract (int, DateTimeOffset?) Export(IEnumerable<NewsMessage> messages)

Parameters

messages IEnumerable<NewsMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<PositionChangeMessage>)

protected abstract (int, DateTimeOffset?) Export(IEnumerable<PositionChangeMessage> messages)

Parameters

messages IEnumerable<PositionChangeMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<QuoteChangeMessage>)

To export QuoteChangeMessage.

protected abstract (int, DateTimeOffset?) Export(IEnumerable<QuoteChangeMessage> messages)

Parameters

messages IEnumerable<QuoteChangeMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<SecurityMessage>)

To export SecurityMessage.

protected abstract (int, DateTimeOffset?) Export(IEnumerable<SecurityMessage> messages)

Parameters

messages IEnumerable<SecurityMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable)

To export values.

public (int, DateTimeOffset?) Export(IEnumerable values)

Parameters

values IEnumerable

Value.

Returns

(int, DateTimeOffset?)

Count and last time.

ExportOrderLog(IEnumerable<ExecutionMessage>)

To export OrderLog.

protected abstract (int, DateTimeOffset?) ExportOrderLog(IEnumerable<ExecutionMessage> messages)

Parameters

messages IEnumerable<ExecutionMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

ExportTicks(IEnumerable<ExecutionMessage>)

To export Ticks.

protected abstract (int, DateTimeOffset?) ExportTicks(IEnumerable<ExecutionMessage> messages)

Parameters

messages IEnumerable<ExecutionMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

ExportTransactions(IEnumerable<ExecutionMessage>)

To export Transactions.

protected abstract (int, DateTimeOffset?) ExportTransactions(IEnumerable<ExecutionMessage> messages)

Parameters

messages IEnumerable<ExecutionMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.