public void SubscribeSingleSingleChannel() { _subscriptionManager.Subscribe(GetSubscriptionDataConfig <TradeBar>(Symbols.AAPL, Resolution.Minute)); Assert.NotZero(_subscriptionManager.GetSubscribedSymbols().Count()); Assert.Contains(Symbols.AAPL, _subscriptionManager.GetSubscribedSymbols().ToArray()); }
/// <summary> /// Gets a list of current subscriptions /// </summary> /// <returns></returns> protected virtual IEnumerable <Symbol> GetSubscribed() { return(SubscriptionManager.GetSubscribedSymbols()); }