Interface IMessageStorageRegistry
Интерфейс, описывающий хранилище маркет-данных.
Namespace: StockSharp.Algo.Storages
Assembly: StockSharp.Algo.dll
Syntax
public interface IMessageStorageRegistry
Methods
GetBoardStateMessageStorage(IMarketDataDrive, StorageFormats)
Получить хранилище состояния площадок.
Declaration
IMarketDataStorage<BoardStateMessage> GetBoardStateMessageStorage(IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<BoardStateMessage> | Хранилище новостей. |
GetCandleMessageStorage(Type, SecurityId, Object, IMarketDataDrive, StorageFormats)
Получить хранилище свечей для заданного инструмента.
Declaration
IMarketDataStorage<CandleMessage> GetCandleMessageStorage(Type candleMessageType, SecurityId securityId, object arg, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
Type | candleMessageType | Тип сообщения свечи. |
SecurityId | securityId | Security ID. |
Object | arg | Параметр свечи. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<CandleMessage> | Хранилище свечей. |
GetExecutionMessageStorage(SecurityId, ExecutionTypes, IMarketDataDrive, StorageFormats)
Получить хранилище ExecutionMessage для переданного инструмента.
Declaration
IMarketDataStorage<ExecutionMessage> GetExecutionMessageStorage(SecurityId securityId, ExecutionTypes type, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
ExecutionTypes | type | Тип данных, информация о которых содержится ExecutionMessage. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<ExecutionMessage> | Хранилище ExecutionMessage. |
GetLevel1MessageStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище level1 данных.
Declaration
IMarketDataStorage<Level1ChangeMessage> GetLevel1MessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<Level1ChangeMessage> | Хранилище level1 данных. |
GetNewsMessageStorage(IMarketDataDrive, StorageFormats)
Получить хранилище новостей.
Declaration
IMarketDataStorage<NewsMessage> GetNewsMessageStorage(IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<NewsMessage> | Хранилище новостей. |
GetOrderLogMessageStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище лога заявок для заданного инструмента.
Declaration
IMarketDataStorage<ExecutionMessage> GetOrderLogMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<ExecutionMessage> | Хранилище лога заявок. |
GetPositionMessageStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище изменения позиций.
Declaration
IMarketDataStorage<PositionChangeMessage> GetPositionMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<PositionChangeMessage> | Хранилище изменения позиций. |
GetQuoteMessageStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище стаканов для заданного инструмента.
Declaration
IMarketDataStorage<QuoteChangeMessage> GetQuoteMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<QuoteChangeMessage> | Хранилище стаканов. |
GetStorage(SecurityId, Type, Object, IMarketDataDrive, StorageFormats)
Получить хранилище маркет-данных.
Declaration
IMarketDataStorage GetStorage(SecurityId securityId, Type dataType, object arg, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
Type | dataType | Market data type. |
Object | arg | Параметр, ассоциированный с типом |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage | Хранилище маркет-данных. |
GetTickMessageStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище тиковых сделок для заданного инструмента.
Declaration
IMarketDataStorage<ExecutionMessage> GetTickMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<ExecutionMessage> | Хранилище тиковых сделок. |
GetTransactionStorage(SecurityId, IMarketDataDrive, StorageFormats)
Получить хранилище транзакций для заданного инструмента.
Declaration
IMarketDataStorage<ExecutionMessage> GetTransactionStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
IMarketDataDrive | drive | Хранилище. |
StorageFormats | format | Тип формата. |
Returns
Type | Description |
---|---|
IMarketDataStorage<ExecutionMessage> | Хранилище транзакций. |
RegisterCandleStorage(IMarketDataStorage<CandleMessage>)
Зарегистрировать хранилище свечей.
Declaration
void RegisterCandleStorage(IMarketDataStorage<CandleMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<CandleMessage> | storage | Хранилище свечей. |
RegisterLevel1Storage(IMarketDataStorage<Level1ChangeMessage>)
Зарегистрировать хранилище level1 данных.
Declaration
void RegisterLevel1Storage(IMarketDataStorage<Level1ChangeMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<Level1ChangeMessage> | storage | Хранилище level1 данных. |
RegisterMarketDepthStorage(IMarketDataStorage<QuoteChangeMessage>)
Зарегистрировать хранилище стаканов.
Declaration
void RegisterMarketDepthStorage(IMarketDataStorage<QuoteChangeMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<QuoteChangeMessage> | storage | Хранилище стаканов. |
RegisterOrderLogStorage(IMarketDataStorage<ExecutionMessage>)
Зарегистрировать хранилище лога заявок.
Declaration
void RegisterOrderLogStorage(IMarketDataStorage<ExecutionMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<ExecutionMessage> | storage | Хранилище лога заявок. |
RegisterPositionStorage(IMarketDataStorage<PositionChangeMessage>)
Зарегистрировать хранилище изменения позиций.
Declaration
void RegisterPositionStorage(IMarketDataStorage<PositionChangeMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<PositionChangeMessage> | storage | Хранилище изменения позиций. |
RegisterTradeStorage(IMarketDataStorage<ExecutionMessage>)
Зарегистрировать хранилище тиковых сделок.
Declaration
void RegisterTradeStorage(IMarketDataStorage<ExecutionMessage> storage)
Parameters
Type | Name | Description |
---|---|---|
IMarketDataStorage<ExecutionMessage> | storage | Хранилище тиковых сделок. |