Table of Contents

Class StorageCoreSettings

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

Storage settings.

public class StorageCoreSettings : IPersistable
Inheritance
StorageCoreSettings
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

StorageCoreSettings()

public StorageCoreSettings()

Properties

DaysLoad

Max days to load stored data.

public TimeSpan DaysLoad { get; set; }

Property Value

TimeSpan

Drive

The storage (database, file etc.).

public IMarketDataDrive Drive { get; set; }

Property Value

IMarketDataDrive

Format

Format.

public StorageFormats Format { get; set; }

Property Value

StorageFormats

Mode

Storage mode.

public StorageModes Mode { get; set; }

Property Value

StorageModes

Remarks

By default is Incremental.

StorageRegistry

The storage of market data.

public IStorageRegistry StorageRegistry { get; set; }

Property Value

IStorageRegistry

Methods

GetStorage(SecurityId, Type, object)

To get the market-data storage.

public IMarketDataStorage GetStorage(SecurityId securityId, Type messageType, object arg)

Parameters

securityId SecurityId

Security ID.

messageType Type
arg object

The parameter associated with the messageType type. For example, candle arg.

Returns

IMarketDataStorage

Market-data storage.

GetStorage<TMessage>(SecurityId, object)

To get the market-data storage.

public IMarketDataStorage<TMessage> GetStorage<TMessage>(SecurityId securityId, object arg) where TMessage : Message

Parameters

securityId SecurityId

Security ID.

arg object

The parameter associated with the TMessage type. For example, candle arg.

Returns

IMarketDataStorage<TMessage>

Market-data storage.

Type Parameters

TMessage

Message type.

IsMode(StorageModes)

Check the specified mode turned on.

public bool IsMode(StorageModes mode)

Parameters

mode StorageModes

Storage mode.

Returns

bool

Check result.