Example #1
0
        public void SubscribeSingleSingleChannel()
        {
            _subscriptionManager.Subscribe(GetSubscriptionDataConfig <TradeBar>(Symbols.AAPL, Resolution.Minute));

            Assert.NotZero(_subscriptionManager.GetSubscribedSymbols().Count());
            Assert.Contains(Symbols.AAPL, _subscriptionManager.GetSubscribedSymbols().ToArray());
        }
Example #2
0
 /// <summary>
 /// Gets a list of current subscriptions
 /// </summary>
 /// <returns></returns>
 protected virtual IEnumerable <Symbol> GetSubscribed()
 {
     return(SubscriptionManager.GetSubscribedSymbols());
 }