Пример #1
0
        public void TestGetTradeRecordsFromStaging()
        {
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("tp.st.soft-fx.eu", "100000", "123321", ""));
            //Assert.AreEqual(0, FdkHelper.ConnectToFdk("", "", "", ""));
            var bars      = FdkTrade.GetTradeRecords(new DateTime(1970, 1, 2), DateTime.UtcNow);
            var comission = FdkTrade.GetTradeAgentCommission(bars);

            FdkVars.Unregister(bars);
        }
Пример #2
0
        public void TestGetTradeRecords()
        {
            Assert.AreEqual(0, FdkHelper.ConnectToFdk("tp.st.soft-fx.eu", "100065", "123qwe!", ""));
            //Assert.AreEqual(0, FdkHelper.ConnectToFdk("", "", "", ""));
            TradeRecord[] tradeRecords = Trade.Server.GetTradeRecords()
                                         .ToArray();
            var bars      = FdkTrade.GetTradeRecords(new DateTime(1970, 1, 2), DateTime.UtcNow);
            var comission = FdkTrade.GetTradeAgentCommission(bars);
            var profit    = FdkTrade.GetTradeTakeProfit(bars);

            FdkVars.Unregister(bars);
        }