public static IAlpacaNewsStreamingClient WithReconnect( this IAlpacaNewsStreamingClient client, ReconnectionParameters parameters) => new ClientWithReconnection(client, parameters);
public static IAlpacaNewsStreamingClient WithReconnect( this IAlpacaNewsStreamingClient client) => WithReconnect(client, ReconnectionParameters.Default);
public static IAlpacaDataSubscription <INewsArticle> GetNewsSubscription( this IAlpacaNewsStreamingClient client, IEnumerable <String> symbols) => getNewsSubscription( client.EnsureNotNull(nameof(client)), symbols.EnsureNotNull(nameof(symbols)));
public static ValueTask <IDisposableAlpacaDataSubscription <INewsArticle> > SubscribeNewsAsync( this IAlpacaNewsStreamingClient client, IEnumerable <String> symbols) => DisposableAlpacaDataSubscription <INewsArticle> .CreateAsync( client.EnsureNotNull(nameof(client)).GetNewsSubscription(symbols), client);
private static IAlpacaDataSubscription <INewsArticle> getNewsSubscription( IAlpacaNewsStreamingClient client, IEnumerable <String> symbols) => getSubscription(client.GetNewsSubscription, symbols);