IHistoryMarketDataManager
Interface for history market data manager.
Implements: IDisposable
Properties
public MarketDataStorageCache AdapterCache { get; set; }
value = iHistoryMarketDataManager.AdapterCache
iHistoryMarketDataManager.AdapterCache = value
MarketDataStorageCache.
public bool CheckTradableDates { get; set; }
value = iHistoryMarketDataManager.CheckTradableDates
iHistoryMarketDataManager.CheckTradableDates = value
Check loading dates are they tradable.
public DateTime CurrentTime { get; }
value = iHistoryMarketDataManager.CurrentTime
Current time.
public IMarketDataDrive Drive { get; set; }
value = iHistoryMarketDataManager.Drive
iHistoryMarketDataManager.Drive = value
The storage which is used by default.
public int LoadedMessageCount { get; }
value = iHistoryMarketDataManager.LoadedMessageCount
The number of loaded events.
public TimeSpan MarketTimeChangedInterval { get; set; }
value = iHistoryMarketDataManager.MarketTimeChangedInterval
iHistoryMarketDataManager.MarketTimeChangedInterval = value
The interval of message TimeMessage generation.
public int PostTradeMarketTimeChangedCount { get; set; }
value = iHistoryMarketDataManager.PostTradeMarketTimeChangedCount
iHistoryMarketDataManager.PostTradeMarketTimeChangedCount = value
The number of the event calls after end of trading.
public DateTime StartDate { get; set; }
value = iHistoryMarketDataManager.StartDate
iHistoryMarketDataManager.StartDate = value
Date in history for starting.
public DateTime StopDate { get; set; }
value = iHistoryMarketDataManager.StopDate
iHistoryMarketDataManager.StopDate = value
Date in history to stop (date is included).
public MarketDataStorageCache StorageCache { get; set; }
value = iHistoryMarketDataManager.StorageCache
iHistoryMarketDataManager.StorageCache = value
Cache.
public StorageFormats StorageFormat { get; set; }
value = iHistoryMarketDataManager.StorageFormat
iHistoryMarketDataManager.StorageFormat = value
The format of market data.
public IStorageRegistry StorageRegistry { get; set; }
value = iHistoryMarketDataManager.StorageRegistry
iHistoryMarketDataManager.StorageRegistry = value
Market data storage.
Methods
public IAsyncEnumerable<DataType> GetSupportedDataTypesAsync(SecurityId securityId)
result = iHistoryMarketDataManager.GetSupportedDataTypesAsync(securityId)
Get supported data types for security.
- securityId
- Security ID.
Returns: Supported data types.
public bool HasGenerator(SecurityId securityId, DataType dataType)
result = iHistoryMarketDataManager.HasGenerator(securityId, dataType)
Check if generator exists.
- securityId
- Security ID.
- dataType
- Data type.
Returns: if generator exists.
public void RegisterGenerator(SecurityId securityId, DataType dataType, MarketDataGenerator generator, long transactionId)
iHistoryMarketDataManager.RegisterGenerator(securityId, dataType, generator, transactionId)
Register generator.
- securityId
- Security ID.
- dataType
- Data type.
- generator
- Generator.
- transactionId
- Transaction ID.
public IAsyncEnumerable<Message> StartAsync(IEnumerable<BoardMessage> boards)
result = iHistoryMarketDataManager.StartAsync(boards)
Start market data generation.
- boards
- Exchange boards.
Returns: Async enumerable of messages.
public ValueTask<Exception> SubscribeAsync(MarketDataMessage message, CancellationToken cancellationToken)
result = iHistoryMarketDataManager.SubscribeAsync(message, cancellationToken)
Subscribe to market data.
- message
- Subscription message.
- cancellationToken
- Cancellation token.
Returns: Error if subscription failed, null otherwise.
public bool UnregisterGenerator(long originalTransactionId)
result = iHistoryMarketDataManager.UnregisterGenerator(originalTransactionId)
Unregister generator.
- originalTransactionId
- Original transaction id.
Returns: if generator was found and removed.
public void Unsubscribe(long originalTransactionId)
iHistoryMarketDataManager.Unsubscribe(originalTransactionId)
Unsubscribe from market data.
- originalTransactionId
- Original subscription transaction id.