Table of Contents

Class DatabaseExporter

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

The export into database.

public class DatabaseExporter : BaseExporter
Inheritance
DatabaseExporter
Inherited Members
Extension Methods

Constructors

DatabaseExporter(decimal?, decimal?, DataType, Func<int, bool>, DatabaseConnectionPair)

Initializes a new instance of the DatabaseExporter.

public DatabaseExporter(decimal? priceStep, decimal? volumeStep, DataType dataType, Func<int, bool> isCancelled, DatabaseConnectionPair connection)

Parameters

priceStep decimal?

Minimum price step.

volumeStep decimal?

Minimum volume step.

dataType DataType

Data type info.

isCancelled Func<int, bool>

The processor, returning process interruption sign.

connection DatabaseConnectionPair

The connection to DB.

Properties

BatchSize

The size of transmitted data package. The default is 50 elements.

public int BatchSize { get; set; }

Property Value

int

CheckUnique

To check uniqueness of data in the database. It effects performance. The default is enabled.

public bool CheckUnique { get; set; }

Property Value

bool

PriceStep

Minimum price step.

public decimal? PriceStep { get; }

Property Value

decimal?

VolumeStep

Minimum volume step.

public decimal? VolumeStep { get; }

Property Value

decimal?

Methods

Export(IEnumerable<IndicatorValue>)

To export IndicatorValue.

protected override (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 override (int, DateTimeOffset?) Export(IEnumerable<CandleMessage> messages)

Parameters

messages IEnumerable<CandleMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<Level1ChangeMessage>)

protected override (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 override (int, DateTimeOffset?) Export(IEnumerable<NewsMessage> messages)

Parameters

messages IEnumerable<NewsMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

Export(IEnumerable<PositionChangeMessage>)

protected override (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 override (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 override (int, DateTimeOffset?) Export(IEnumerable<SecurityMessage> messages)

Parameters

messages IEnumerable<SecurityMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.

ExportOrderLog(IEnumerable<ExecutionMessage>)

To export OrderLog.

protected override (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 override (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 override (int, DateTimeOffset?) ExportTransactions(IEnumerable<ExecutionMessage> messages)

Parameters

messages IEnumerable<ExecutionMessage>

Messages.

Returns

(int, DateTimeOffset?)

Count and last time.