Interface ISnapshotStorage
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
The interface for access to the storage of snapshot prices.
public interface ISnapshotStorage
- Extension Methods
Properties
Dates
To get all the dates for which market data are recorded.
IEnumerable<DateTime> Dates { get; }
Property Value
Methods
Clear(object)
Remove snapshot for the specified key.
void Clear(object key)
Parameters
keyobjectKey.
ClearAll()
Clear storage.
void ClearAll()
Get(object)
Get snapshot for the specified key.
Message Get(object key)
Parameters
keyobjectKey.
Returns
- Message
Snapshot.
GetAll(DateTimeOffset?, DateTimeOffset?)
Get all snapshots.
IEnumerable<Message> GetAll(DateTimeOffset? from = null, DateTimeOffset? to = null)
Parameters
fromDateTimeOffset?Start date, from which data needs to be retrieved.
toDateTimeOffset?End date, until which data needs to be retrieved.
Returns
- IEnumerable<Message>
All snapshots.
Update(Message)
Update snapshot.
void Update(Message message)
Parameters
messageMessageMessage.