public void GetSecurityMarginModelTest() { BitfinexBrokerageModel model = new BitfinexBrokerageModel(AccountType.Margin); Assert.IsInstanceOf <SecurityMarginModel>(model.GetBuyingPowerModel(Security)); Assert.AreEqual(3.3M, model.GetLeverage(Security)); }
public void GetCashBuyingPowerModelTest() { BitfinexBrokerageModel model = new BitfinexBrokerageModel(AccountType.Cash); Assert.IsInstanceOf <CashBuyingPowerModel>(model.GetBuyingPowerModel(Security)); Assert.AreEqual(1, model.GetLeverage(Security)); }