/// <summary> /// /// </summary> /// <param name="cache"></param> /// <param name="symbol"></param> /// <param name="callback"></param> /// <param name="token"></param> /// <returns></returns> public static Task SubscribeAsync(this IAggregateTradeCache cache, string symbol, Action <AggregateTradeCacheEventArgs> callback, CancellationToken token) => cache.SubscribeAsync(symbol, default, callback, token);
/// <summary> /// /// </summary> /// <param name="cache"></param> /// <param name="symbol"></param> /// <param name="limit"></param> /// <param name="token"></param> /// <returns></returns> public static Task SubscribeAsync(this IAggregateTradeCache cache, string symbol, int limit, CancellationToken token) => cache.SubscribeAsync(symbol, limit, null, token);