CSVMessageAdapter

StockSharp.CSV

The message adapter for CSV.

Inherits: MessageAdapter

Constructors

CSVMessageAdapter
public CSVMessageAdapter(IdGenerator transactionIdGenerator)
cSVMessageAdapter = CSVMessageAdapter(transactionIdGenerator)

Initializes a new instance of the CSVMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

Settings
public IEnumerable<ImportSettings> Settings { get; set; }
value = cSVMessageAdapter.Settings
cSVMessageAdapter.Settings = value

Settings of import.

Methods

ConnectAsync
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.ConnectAsync(connectMsg, cancellationToken)
GetSupportedMarketDataTypesAsync
public override IAsyncEnumerable<DataType> GetSupportedMarketDataTypesAsync(SecurityId securityId, DateTime? from, DateTime? to)
result = cSVMessageAdapter.GetSupportedMarketDataTypesAsync(securityId, from, to)

Get supported by adapter message types.

securityId
SecurityId
from
Start date for request. If , then all available messages will be returned.
to
End date for request. If , then all available messages will be returned.

Returns: Supported by adapter market data types.

IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = cSVMessageAdapter.IsAllDownloadingSupported(dataType)

Is for the specified all securities downloading enabled.

dataType
Data type info.

Returns: Check result.

Load
public override void Load(SettingsStorage storage)
cSVMessageAdapter.Load(storage)

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
MarketDataAsync
protected override ValueTask MarketDataAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.MarketDataAsync(mdMsg, cancellationToken)
OrderStatusAsync
protected override ValueTask OrderStatusAsync(OrderStatusMessage statusMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.OrderStatusAsync(statusMsg, cancellationToken)
PortfolioLookupAsync
protected override ValueTask PortfolioLookupAsync(PortfolioLookupMessage lookupMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.PortfolioLookupAsync(lookupMsg, cancellationToken)
ResetAsync
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.ResetAsync(resetMsg, cancellationToken)
Save
public override void Save(SettingsStorage storage)
cSVMessageAdapter.Save(storage)

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.SecurityLookupAsync(lookupMsg, cancellationToken)
TimeAsync
protected override ValueTask TimeAsync(TimeMessage timeMsg, CancellationToken cancellationToken)
result = cSVMessageAdapter.TimeAsync(timeMsg, cancellationToken)