Beispiel #1
0
        public void GetSecurityMarginModelTest()
        {
            BitfinexBrokerageModel model = new BitfinexBrokerageModel(AccountType.Margin);

            Assert.IsInstanceOf <SecurityMarginModel>(model.GetBuyingPowerModel(Security));
            Assert.AreEqual(3.3M, model.GetLeverage(Security));
        }
Beispiel #2
0
        public void GetCashBuyingPowerModelTest()
        {
            BitfinexBrokerageModel model = new BitfinexBrokerageModel(AccountType.Cash);

            Assert.IsInstanceOf <CashBuyingPowerModel>(model.GetBuyingPowerModel(Security));
            Assert.AreEqual(1, model.GetLeverage(Security));
        }