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
Drive
The storage (database, file etc.).
public IMarketDataDrive Drive { get; set; }
Property Value
Format
Format.
public StorageFormats Format { get; set; }
Property Value
Mode
Storage mode.
public StorageModes Mode { get; set; }
Property Value
Remarks
By default is Incremental.
StorageRegistry
The storage of market data.
public IStorageRegistry StorageRegistry { get; set; }
Property Value
Methods
GetStorage(SecurityId, Type, object)
To get the market-data storage.
public IMarketDataStorage GetStorage(SecurityId securityId, Type messageType, object arg)
Parameters
securityId
SecurityIdSecurity ID.
messageType
Typearg
objectThe 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
SecurityIdSecurity ID.
arg
objectThe 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
StorageModesStorage mode.
Returns
- bool
Check result.