Table of Contents

Interface ISnapshotStorage<TKey, TMessage>

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

The interface for access to the storage of snapshot prices.

public interface ISnapshotStorage<TKey, TMessage> : ISnapshotStorage

Type Parameters

TKey

Type of key value.

TMessage

Message type.

Inherited Members
Extension Methods

Methods

Clear(TKey)

Remove snapshot for the specified key.

void Clear(TKey key)

Parameters

key TKey

Key.

Get(TKey)

Get snapshot for the specified key.

TMessage Get(TKey key)

Parameters

key TKey

Key.

Returns

TMessage

Snapshot.

GetAll(DateTimeOffset?, DateTimeOffset?)

Get all snapshots.

IEnumerable<TMessage> GetAll(DateTimeOffset? from = null, DateTimeOffset? to = null)

Parameters

from DateTimeOffset?

Start date, from which data needs to be retrieved.

to DateTimeOffset?

End date, until which data needs to be retrieved.

Returns

IEnumerable<TMessage>

All snapshots.