コード例 #1
0
 public static IAlpacaNewsStreamingClient WithReconnect(
     this IAlpacaNewsStreamingClient client,
     ReconnectionParameters parameters) =>
 new ClientWithReconnection(client, parameters);
コード例 #2
0
 public static IAlpacaNewsStreamingClient WithReconnect(
     this IAlpacaNewsStreamingClient client) =>
 WithReconnect(client, ReconnectionParameters.Default);
コード例 #3
0
 public static IAlpacaDataSubscription <INewsArticle> GetNewsSubscription(
     this IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 getNewsSubscription(
     client.EnsureNotNull(nameof(client)),
     symbols.EnsureNotNull(nameof(symbols)));
コード例 #4
0
 public static ValueTask <IDisposableAlpacaDataSubscription <INewsArticle> > SubscribeNewsAsync(
     this IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 DisposableAlpacaDataSubscription <INewsArticle> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetNewsSubscription(symbols),
     client);
コード例 #5
0
 private static IAlpacaDataSubscription <INewsArticle> getNewsSubscription(
     IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 getSubscription(client.GetNewsSubscription, symbols);