RssMessageAdapter
The market-data message adapter for RSS.
Inherits: HistoricalMessageAdapter
Implements: IAddressAdapter<string>
Constructors
public RssMessageAdapter(IdGenerator transactionIdGenerator)
rssMessageAdapter = RssMessageAdapter(transactionIdGenerator)
Initializes a new instance of the RssMessageAdapter.
- transactionIdGenerator
- Transaction id generator.
Properties
public string Address { get; set; }
value = rssMessageAdapter.Address
rssMessageAdapter.Address = value
RSS feed address.
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
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.
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.
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.
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.