ISnapshotStorage
StockSharp.Algo.Storages
The interface for access to the storage of snapshot prices.
Properties
Dates
public IEnumerable<DateTime> Dates { get; }
value = iSnapshotStorage.Dates
To get all the dates for which market data are recorded.
Methods
Clear
public void Clear(object key)
iSnapshotStorage.Clear(key)
Remove snapshot for the specified key.
- key
- Key.
Get
public Message Get(object key)
result = iSnapshotStorage.Get(key)
Get snapshot for the specified key.
- key
- Key.
Returns: Snapshot.
GetAll
public IEnumerable<Message> GetAll(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAll(from, to)
Get all snapshots.
- from
- Start date, from which data needs to be retrieved.
- to
- End date, until which data needs to be retrieved.
Returns: All snapshots.
Update
public void Update(Message message)
iSnapshotStorage.Update(message)
Update snapshot.
- message
- Message.