Table of Contents

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 IdGenerator

Transaction id generator.

Properties

AllTimeFrames

Possible time-frames.

public static IEnumerable<TimeSpan> AllTimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

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

IEnumerable<TimeSpan>

Token

Token.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Token", Description = "TokenDot", GroupName = "Connection", Order = 0)]
public SecureString Token { get; set; }

Property Value

SecureString

Methods

ConnectAsync(ConnectMessage, CancellationToken)

Process ConnectMessage.

public override ValueTask ConnectAsync(ConnectMessage msg, CancellationToken token)

Parameters

msg ConnectMessage
token CancellationToken

Returns

ValueTask

ValueTask.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken)

protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)

Parameters

mdMsg MarketDataMessage
cancellationToken CancellationToken

Returns

ValueTask

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SecurityLookupAsync(SecurityLookupMessage, CancellationToken)

public override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)

Parameters

lookupMsg SecurityLookupMessage

SecurityLookupMessage.

cancellationToken CancellationToken

CancellationToken.

Returns

ValueTask

ValueTask.