Class AlphaVantageMessageAdapter
- Namespace
- StockSharp.AlphaVantage
- Assembly
- StockSharp.AlphaVantage.dll
The message adapter for StockSharp.AlphaVantage.
[MediaIcon("AlphaVantage_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "AlphaVantage", Description = "MarketDataConnector", GroupName = "MarketData")]
[MessageAdapterCategory(MessageAdapterCategories.US|MessageAdapterCategories.Stock|MessageAdapterCategories.FX|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Candles|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class AlphaVantageMessageAdapter : HistoricalAsyncMessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter
- Inheritance
-
AlphaVantageMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
AlphaVantageMessageAdapter(IdGenerator)
Initializes a new instance of the AlphaVantageMessageAdapter.
public AlphaVantageMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
AssociatedBoards
The adapter can process subscription only with instruments associated with the specified board.
public override string[] AssociatedBoards { get; }
Property Value
- string[]
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
Token
Token.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Token", Description = "TokenDot", GroupName = "Connection", Order = 0)]
public SecureString Token { get; set; }
Property Value
Methods
ConnectAsync(ConnectMessage, CancellationToken)
Process ConnectMessage.
public override ValueTask ConnectAsync(ConnectMessage msg, CancellationToken token)
Parameters
msg
ConnectMessagetoken
CancellationToken
Returns
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
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SecurityLookupAsync(SecurityLookupMessage, CancellationToken)
Process SecurityLookupMessage.
public override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
Parameters
lookupMsg
SecurityLookupMessagecancellationToken
CancellationToken