Пример #1
0
 public static ValueTask <IDisposableAlpacaDataSubscription <IBar> > SubscribeMinuteBarAsync(
     this IAlpacaDataStreamingClient client,
     params String[] symbols) =>
 DisposableAlpacaDataSubscription <IBar> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetMinuteBarSubscription(symbols),
     client);
Пример #2
0
 public static ValueTask <IDisposableAlpacaDataSubscription <IBar> > SubscribeDailyBarAsync(
     this IAlpacaDataStreamingClient client,
     IEnumerable <String> symbols) =>
 DisposableAlpacaDataSubscription <IBar> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetDailyBarSubscription(symbols),
     client);
Пример #3
0
 public static ValueTask <IDisposableAlpacaDataSubscription <IQuote> > SubscribeQuoteAsync(
     this IAlpacaDataStreamingClient client,
     String symbol) =>
 DisposableAlpacaDataSubscription <IQuote> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetQuoteSubscription(symbol),
     client);
Пример #4
0
 public static ValueTask <IDisposableAlpacaDataSubscription <IBar> > SubscribeUpdatedBarAsync(
     this IAlpacaCryptoStreamingClient client,
     String symbol) =>
 DisposableAlpacaDataSubscription <IBar> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetUpdatedBarSubscription(symbol),
     client);
Пример #5
0
 public static ValueTask <IDisposableAlpacaDataSubscription <ITrade> > SubscribeTradeAsync(
     this IAlpacaCryptoStreamingClient client,
     IEnumerable <String> symbols) =>
 DisposableAlpacaDataSubscription <ITrade> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetTradeSubscription(symbols),
     client);
Пример #6
0
 public static ValueTask <IDisposableAlpacaDataSubscription <INewsArticle> > SubscribeNewsAsync(
     this IAlpacaNewsStreamingClient client,
     IEnumerable <String> symbols) =>
 DisposableAlpacaDataSubscription <INewsArticle> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetNewsSubscription(symbols),
     client);
Пример #7
0
 public static ValueTask <IDisposableAlpacaDataSubscription <IOrderBook> > SubscribeOrderBookAsync(
     this IAlpacaCryptoStreamingClient client,
     params String[] symbols) =>
 DisposableAlpacaDataSubscription <IOrderBook> .CreateAsync(
     client.EnsureNotNull(nameof(client)).GetOrderBookSubscription(symbols),
     client);