コード例 #1
0
        public void StartHistoricalReaderTest()
        {
            HistoricalConnectionTest();

            bool expected = true;
            bool actual   = s_utilities.StartHistoricalReader();

            Assert.AreEqual(expected, actual, "StartHistoricalReader test failed");
        }
コード例 #2
0
        private bool Connect()
        {
            if (!m_bConnected)
            {
                if (m_twsUtilities.Init(TWSUtilities.HISTORICAL_READER, m_ipAddress, m_port))
                {
                    m_bConnected = m_twsUtilities.Connect();
                }

                if (m_bConnected)
                {
                    m_bConnected = m_twsUtilities.StartHistoricalReader();
                }
            }
            return(m_bConnected);
        }