CsvEntityList

StockSharp.Algo.Storages.Csv

List of trade objects, received from the CSV storage.

Inherits: SynchronizedList<T>

Implements: IStorageEntityList<T>, INotifyList<T>, INotifyCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, ISynchronizedCollection<T>, ISynchronizedCollection, ISynchronizable, ICsvEntityList, IAsyncDisposable

Constructors

CsvEntityList(CsvEntityRegistry, string, ChannelExecutor)

Initializes a new instance of the CsvEntityList.

registry
The CSV storage of trading objects.
fileName
CSV file name.
executor
Sequential operation executor for disk access synchronization.

Properties

Cache : T[]

Cached items.

CreateArchivedCopy : bool

Create archived copy.

FileName : string

CSV file name.

Registry : CsvEntityRegistry

The CSV storage of trading objects.

Methods

AddCache(T)

Add item to cache.

item
New item.
ClearCache()

Clear cache.

Contains(T) : bool
DisposeAsync() : ValueTask

Disposes the resources.

GetCopy() : byte[]

Get archived copy body.

Returns: File body.

GetKey(T) : T

Get key from trade object.

item
Trade object.

Returns: The key.

IsChanged(T, bool) : bool

Is changed.

entity
Trade object.
forced
Forced update.

Returns: Is changed.

OnAdding(T) : bool
Read(FastCsvReader) : T

Read data from CSV.

reader
CSV reader.

Returns: Trade object.

RemoveCache(T)

Remove item from cache.

item
Item.
Save(T)
Save(T, bool)

Save object into storage.

entity
Trade object.
forced
Forced update.
ToString() : string

Преобразовать к строковому представлению.

Returns: Строковое представление.

UpdateCache(T)

Update item in cache.

item
Item.
WriteAsync(CsvFileWriter, T, CancellationToken) : ValueTask

Write data into CSV.

writer
CSV writer.
data
Trade object.
cancellationToken
CancellationToken
WriteMany(T[])

Write data into storage.

values
Trading objects.