Class StreamingDataClientExtensions
Set of extension methods for the IStreamingDataClient interface.
Inheritance
System.Object
StreamingDataClientExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public static class StreamingDataClientExtensions
Methods
| Improve this Doc View SourceSubscribeAsync(IStreamingDataClient, IAlpacaDataSubscription[])
Subscribes several subscriptions
objects for receiving data from the server.
Declaration
public static AlpacaValueTask SubscribeAsync(this IStreamingDataClient client, params IAlpacaDataSubscription[] subscriptions)
Parameters
Type | Name | Description |
---|---|---|
IStreamingDataClient | client | Target instance of the IStreamingDataClient interface. |
IAlpacaDataSubscription[] | subscriptions | List of subscription targets - assets and update type holders. |
Returns
Type | Description |
---|---|
Alpaca.Markets.Extensions.AlpacaValueTask |
UnsubscribeAsync(IStreamingDataClient, IAlpacaDataSubscription[])
Unsubscribes several subscriptions
objects for receiving data from the server.
Declaration
public static AlpacaValueTask UnsubscribeAsync(this IStreamingDataClient client, params IAlpacaDataSubscription[] subscriptions)
Parameters
Type | Name | Description |
---|---|---|
IStreamingDataClient | client | Target instance of the IStreamingDataClient interface. |
IAlpacaDataSubscription[] | subscriptions | List of subscription targets - assets and update type holders. |
Returns
Type | Description |
---|---|
Alpaca.Markets.Extensions.AlpacaValueTask |