MarketDataStorageCache
StockSharp.Algo.Storages
IMarketDataStorage cache.
Propiedades
Limit
public int Limit { get; set; }
value = marketDataStorageCache.Limit
marketDataStorageCache.Limit = value
Max cuenta.
Métodos
GetMessagesAsync``1
public IAsyncEnumerable<Message> GetMessagesAsync<TEnumerable>(SecurityId securityId, DataType dataType, DateTime date, Func<DateTime, TEnumerable> loadIfNeed)
result = marketDataStorageCache.GetMessagesAsync(securityId, dataType, date, loadIfNeed)
Obtenga datos de forma asincrónica.
- securityId
- SecurityId.
- dataType
- DataType.
- date
- Fecha de carga.
- loadIfNeed
- Manejador para cargar datos desde almacenamiento real.
Devuelve: Datos.
GetMessagesAsync``1
public IAsyncEnumerable<Message> GetMessagesAsync<TEnumerable>(string scope, DateTime date, Func<DateTime, TEnumerable> loadIfNeed)
result = marketDataStorageCache.GetMessagesAsync(scope, date, loadIfNeed)
Get data of a day asynchronously for data that is not one series of one security: a day of several series replayed together, named by what they are.
- scope
- What the data of the day is made of; the same day of different data is cached apart.
- date
- Date to load.
- loadIfNeed
- Handler to load data from real storage.
Devuelve: Data.
Invalidate
public void Invalidate(SecurityId securityId, DataType dataType, DateTime date)
marketDataStorageCache.Invalidate(securityId, dataType, date)
Caché de invalidación para la llave especificada.
- securityId
- SecurityId.
- dataType
- DataType.
- date
- Fecha de invalidar.