Class FinamMessageAdapter
- Namespace
- StockSharp.Finam
- Assembly
- StockSharp.Finam.dll
The message adapter for StockSharp.Finam.
[MediaIcon("Finam_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Finam", Description = "MarketDataConnector", GroupName = "Russia")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.Stock|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class FinamMessageAdapter : HistoricalAsyncMessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
FinamMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
FinamMessageAdapter(IdGenerator)
Initializes a new instance of the FinamMessageAdapter.
public FinamMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
IncludeTicksOrigin
Fill OriginSide.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Side", Description = "DirectionDesc", GroupName = "Connection", Order = 0)]
public bool IncludeTicksOrigin { get; set; }
Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
OnTicksSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SecurityLookupAsync(SecurityLookupMessage, CancellationToken)
Process SecurityLookupMessage.
public override ValueTask SecurityLookupAsync(SecurityLookupMessage message, CancellationToken cancellationToken)
Parameters
message
SecurityLookupMessagecancellationToken
CancellationToken