RssMessageAdapter

StockSharp.Rss

The market-data message adapter for RSS.

Inherits: HistoricalMessageAdapter

Implements: IAddressAdapter<string>

Constructors

RssMessageAdapter
public RssMessageAdapter(IdGenerator transactionIdGenerator)
rssMessageAdapter = RssMessageAdapter(transactionIdGenerator)

Initializes a new instance of the RssMessageAdapter.

transactionIdGenerator
Transaction id generator.

Properties

Address
public string Address { get; set; }
value = rssMessageAdapter.Address
rssMessageAdapter.Address = value

RSS feed address.

CustomDateFormat
public string CustomDateFormat { get; set; }
value = rssMessageAdapter.CustomDateFormat
rssMessageAdapter.CustomDateFormat = value

Dates format. Required to be filled if RSS stream format is different from ddd, dd MMM yyyy HH:mm:ss zzzz.

Methods

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

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
OnNewsSubscriptionAsync
protected override ValueTask OnNewsSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = rssMessageAdapter.OnNewsSubscriptionAsync(mdMsg, cancellationToken)

Handles subscription request for news data. Override to provide implementation for news subscription processing. The default implementation throws NotSupported.

mdMsg
Market data subscription message.
cancellationToken
Cancellation token to cancel the operation.

Returns: A ValueTask representing the asynchronous operation.

Save
public override void Save(SettingsStorage storage)
rssMessageAdapter.Save(storage)

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
ToString
public override string ToString()
result = rssMessageAdapter.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.