Example #1
0
        public void GetsSplits()
        {
            var date   = new DateTime(2014, 06, 09);
            var AAPL   = new Symbol(SecurityIdentifier.Parse("AAPL R735QTJ8XC9X"), "AAPL");
            var splits = _api.GetSplits(date, date);
            var aapl   = splits.Single(s => s.Symbol == AAPL);

            Assert.AreEqual((1 / 7m).RoundToSignificantDigits(6), aapl.SplitFactor);
            Assert.AreEqual(date, aapl.Time);
            Assert.AreEqual(SplitType.SplitOccurred, aapl.Type);
            Assert.AreEqual(645.57m, aapl.ReferencePrice);
        }