Class CsvEntityRegistry
- Namespace
- StockSharp.Algo.Storages.Csv
- Assembly
- StockSharp.Algo.dll
The CSV storage of trading objects.
public class CsvEntityRegistry : IEntityRegistry
- Inheritance
-
CsvEntityRegistry
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvEntityRegistry(string)
Initializes a new instance of the CsvEntityRegistry.
public CsvEntityRegistry(string path)
Parameters
path
stringThe path to data directory.
Properties
DelayAction
The time delayed action.
public virtual DelayAction DelayAction { get; set; }
Property Value
- DelayAction
Encoding
Encoding.
public Encoding Encoding { get; set; }
Property Value
ExchangeBoards
The list of stock boards.
public IStorageEntityList<ExchangeBoard> ExchangeBoards { get; }
Property Value
Exchanges
List of exchanges.
public IStorageEntityList<Exchange> Exchanges { get; }
Property Value
Path
The path to data directory.
public string Path { get; set; }
Property Value
Portfolios
The list of portfolios.
public IStorageEntityList<Portfolio> Portfolios { get; }
Property Value
PositionStorage
Position storage.
public IPositionStorage PositionStorage { get; }
Property Value
Positions
The list of positions.
public IStoragePositionList Positions { get; }
Property Value
Securities
The list of instruments.
public IStorageSecurityList Securities { get; }
Property Value
Storage
[Obsolete("This property exists only for backward compatibility.")]
public object Storage { get; }
Property Value
Subscriptions
The list of subscriptions.
public IStorageEntityList<MarketDataMessage> Subscriptions { get; }
Property Value
Methods
Add<TKey, TEntity>(CsvEntityList<TKey, TEntity>)
Add list of trade objects.
public void Add<TKey, TEntity>(CsvEntityList<TKey, TEntity> list) where TEntity : class
Parameters
list
CsvEntityList<TKey, TEntity>List of trade objects.
Type Parameters
TKey
Key type.
TEntity
Entity type.
Init()
Initialize the storage.
public IDictionary<object, Exception> Init()
Returns
- IDictionary<object, Exception>
Possible errors with storage names. Empty dictionary means initialization without any issues.