RssMessageAdapter
StockSharp.Rss
The market-data message adapter for RSS.
实现: IAddressAdapter<string>
构造函数
RssMessageAdapter(IdGenerator)
Initializes a new instance of the RssMessageAdapter.
- transactionIdGenerator
- Transaction id generator.
属性
CustomDateFormat : string
Dates format. Required to be filled if RSS stream format is different from ddd, dd MMM yyyy HH:mm:ss zzzz.
方法
OnNewsSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
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.
返回值: A ValueTask representing the asynchronous operation.