StorageRegistry
The storage of market data.
Inherits: Disposable
Implements: IStorageRegistry
Constructors
public StorageRegistry(IExchangeInfoProvider exchangeInfoProvider)
storageRegistry = StorageRegistry(exchangeInfoProvider)
Initializes a new instance of the StorageRegistry.
- exchangeInfoProvider
- Exchanges and trading boards provider.
public StorageRegistry()
storageRegistry = StorageRegistry()
Initializes a new instance of the StorageRegistry.
Properties
public virtual IMarketDataDrive DefaultDrive { get; set; }
value = storageRegistry.DefaultDrive
storageRegistry.DefaultDrive = value
The storage used by default.
public IExchangeInfoProvider ExchangeInfoProvider { get; }
value = storageRegistry.ExchangeInfoProvider
Exchanges and trading boards provider.
Methods
protected override void DisposeManaged()
storageRegistry.DisposeManaged()
Release resources.
public IMarketDataStorage<BoardStateMessage> GetBoardStateMessageStorage(IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetBoardStateMessageStorage(drive, format)
To get board state storage.
- drive
- The storage.
- format
- The format type.
Returns: The news storage.
public IMarketDataStorage<CandleMessage> GetCandleMessageStorage(SecurityId securityId, DataType type, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetCandleMessageStorage(securityId, type, drive, format)
To get the candles storage for the specified instrument.
- securityId
- Security ID.
- type
- DataType
- drive
- The storage.
- format
- The format type.
Returns: The candles storage.
public IMarketDataStorage<ExecutionMessage> GetExecutionMessageStorage(SecurityId securityId, DataType type, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetExecutionMessageStorage(securityId, type, drive, format)
To get the ExecutionMessage storage for the specified instrument.
- securityId
- Security ID.
- type
- Data type, information about which is contained in the ExecutionMessage.
- drive
- The storage.
- format
- The format type.
Returns: The ExecutionMessage storage.
public IMarketDataStorage<Level1ChangeMessage> GetLevel1MessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetLevel1MessageStorage(securityId, drive, format)
To get the storage of level1 data.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
Returns: The storage of level1 data.
public IMarketDataStorage<NewsMessage> GetNewsMessageStorage(IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetNewsMessageStorage(drive, format)
To get news storage.
- drive
- The storage.
- format
- The format type.
Returns: The news storage.
public IMarketDataStorage<ExecutionMessage> GetOrderLogMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetOrderLogMessageStorage(securityId, drive, format)
To get the storage of orders log for the specified instrument.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
Returns: The storage of orders log.
public IMarketDataStorage<PositionChangeMessage> GetPositionMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetPositionMessageStorage(securityId, drive, format)
To get the storage of position changes data.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
Returns: The storage of position changes data.
public IMarketDataStorage<QuoteChangeMessage> GetQuoteMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format, bool passThroughOrderBookIncrement)
result = storageRegistry.GetQuoteMessageStorage(securityId, drive, format, passThroughOrderBookIncrement)
To get the storage of order books for the specified instrument.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
- passThroughOrderBookIncrement
- Pass through incremental QuoteChangeMessage.
Returns: The order books storage.
public IMarketDataStorage GetStorage(SecurityId securityId, DataType dataType, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetStorage(securityId, dataType, drive, format)
To get the market-data storage.
- securityId
- Security ID.
- dataType
- DataType
- drive
- The storage.
- format
- The format type.
Returns: Market-data storage.
public IMarketDataStorage<ExecutionMessage> GetTickMessageStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetTickMessageStorage(securityId, drive, format)
To get the storage of tick trades for the specified instrument.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
Returns: The storage of tick trades.
public IMarketDataStorage<ExecutionMessage> GetTransactionStorage(SecurityId securityId, IMarketDataDrive drive, StorageFormats format)
result = storageRegistry.GetTransactionStorage(securityId, drive, format)
To get the transactions storage for the specified instrument.
- securityId
- Security ID.
- drive
- The storage.
- format
- The format type.
Returns: The transactions storage.
public void RegisterCandleStorage(IMarketDataStorage<CandleMessage> storage)
storageRegistry.RegisterCandleStorage(storage)
To register the candles storage.
- storage
- The candles storage.
public void RegisterLevel1Storage(IMarketDataStorage<Level1ChangeMessage> storage)
storageRegistry.RegisterLevel1Storage(storage)
To register the storage of level1 data.
- storage
- The storage of level1 data.
public void RegisterMarketDepthStorage(IMarketDataStorage<QuoteChangeMessage> storage)
storageRegistry.RegisterMarketDepthStorage(storage)
To register the order books storage.
- storage
- The order books storage.
public void RegisterOrderLogStorage(IMarketDataStorage<ExecutionMessage> storage)
storageRegistry.RegisterOrderLogStorage(storage)
To register the order log storage.
- storage
- The storage of orders log.
public void RegisterPositionStorage(IMarketDataStorage<PositionChangeMessage> storage)
storageRegistry.RegisterPositionStorage(storage)
To register the storage of position changes data.
- storage
- The storage of position changes data.
public void RegisterTradeStorage(IMarketDataStorage<ExecutionMessage> storage)
storageRegistry.RegisterTradeStorage(storage)
To register tick trades storage.
- storage
- The storage of tick trades.