/// <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 ITradeCache cache, string symbol, Action <TradeCacheEventArgs> 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 ITradeCache cache, string symbol, int limit, CancellationToken token) => cache.SubscribeAsync(symbol, limit, null, token);