示例#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);