コード例 #1
0
 public static ValueTask <IDisposableAlpacaDataSubscription <INewsArticle> > SubscribeNewsAsync(
     this IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 DisposableAlpacaDataSubscription <INewsArticle> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetNewsSubscription(symbols),
     client);
コード例 #2
0
 public static IAlpacaDataSubscription <INewsArticle> GetNewsSubscription(
     this IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 getNewsSubscription(
     client.EnsureNotNull(nameof(client)),
     symbols.EnsureNotNull(nameof(symbols)));