Show / Hide Table of Contents

Interface IStreamingDataClient

Provides unified type-safe access for websocket streaming APIs with data subscriptions.

Inherited Members
IStreamingClient.Connected
IStreamingClient.SocketOpened
IStreamingClient.SocketClosed
IStreamingClient.OnError
IStreamingClient.OnWarning
IStreamingClient.ConnectAsync(CancellationToken)
IStreamingClient.ConnectAndAuthenticateAsync(CancellationToken)
IStreamingClient.DisconnectAsync(CancellationToken)
ISubscriptionHandler.SubscribeAsync(IAlpacaDataSubscription)
ISubscriptionHandler.SubscribeAsync(IAlpacaDataSubscription, CancellationToken)
ISubscriptionHandler.SubscribeAsync(IEnumerable<IAlpacaDataSubscription>)
ISubscriptionHandler.SubscribeAsync(IEnumerable<IAlpacaDataSubscription>, CancellationToken)
ISubscriptionHandler.UnsubscribeAsync(IAlpacaDataSubscription)
ISubscriptionHandler.UnsubscribeAsync(IAlpacaDataSubscription, CancellationToken)
ISubscriptionHandler.UnsubscribeAsync(IEnumerable<IAlpacaDataSubscription>)
ISubscriptionHandler.UnsubscribeAsync(IEnumerable<IAlpacaDataSubscription>, CancellationToken)
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public interface IStreamingDataClient : IStreamingClient, ISubscriptionHandler

Methods

| Improve this Doc View Source

GetDailyBarSubscription(String)

Gets the daily aggregate (bar) subscription for the symbol asset.

Declaration
IAlpacaDataSubscription<IBar> GetDailyBarSubscription(String symbol)
Parameters
Type Name Description
String symbol

Alpaca asset symbol.

Returns
Type Description
IAlpacaDataSubscription<IBar>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetMinuteBarSubscription()

Gets the minute aggregate (bar) subscription for all assets.

Declaration
IAlpacaDataSubscription<IBar> GetMinuteBarSubscription()
Returns
Type Description
IAlpacaDataSubscription<IBar>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetMinuteBarSubscription(String)

Gets the minute aggregate (bar) subscription for the symbol asset.

Declaration
IAlpacaDataSubscription<IBar> GetMinuteBarSubscription(String symbol)
Parameters
Type Name Description
String symbol

Alpaca asset symbol.

Returns
Type Description
IAlpacaDataSubscription<IBar>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetQuoteSubscription()

Gets the quote updates subscription for all assets.

Declaration
IAlpacaDataSubscription<IQuote> GetQuoteSubscription()
Returns
Type Description
IAlpacaDataSubscription<IQuote>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetQuoteSubscription(String)

Gets the quote updates subscription for the symbol asset.

Declaration
IAlpacaDataSubscription<IQuote> GetQuoteSubscription(String symbol)
Parameters
Type Name Description
String symbol

Alpaca asset symbol.

Returns
Type Description
IAlpacaDataSubscription<IQuote>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetTradeSubscription()

Gets the trade updates subscription for all assets.

Declaration
IAlpacaDataSubscription<ITrade> GetTradeSubscription()
Returns
Type Description
IAlpacaDataSubscription<ITrade>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetTradeSubscription(String)

Gets the trade updates subscription for the symbol asset.

Declaration
IAlpacaDataSubscription<ITrade> GetTradeSubscription(String symbol)
Parameters
Type Name Description
String symbol

Alpaca asset symbol.

Returns
Type Description
IAlpacaDataSubscription<ITrade>

Subscription object for tracking updates via the Received event.

| Improve this Doc View Source

GetUpdatedBarSubscription(String)

Gets the updated aggregate (bar) subscription for the symbol asset.

Declaration
IAlpacaDataSubscription<IBar> GetUpdatedBarSubscription(String symbol)
Parameters
Type Name Description
String symbol

Alpaca asset symbol.

Returns
Type Description
IAlpacaDataSubscription<IBar>

Subscription object for tracking updates via the Received event.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX