diff --git a/Common/Brokerages/dYdXBrokerageModel.cs b/Common/Brokerages/dYdXBrokerageModel.cs
index 157dcbdea330..6c28e2950d0a 100644
--- a/Common/Brokerages/dYdXBrokerageModel.cs
+++ b/Common/Brokerages/dYdXBrokerageModel.cs
@@ -43,6 +43,21 @@ public dYdXBrokerageModel(AccountType accountType = AccountType.Margin) : base(a
}
}
+ ///
+ /// Gets a new buying power model for the security, returning the default model with the security's configured leverage.
+ /// For cash accounts, leverage = 1 is used.
+ ///
+ /// The security to get a buying power model for
+ /// The buying power model for this brokerage/security
+ public override IBuyingPowerModel GetBuyingPowerModel(Security security)
+ {
+ return security?.Type switch
+ {
+ SecurityType.CryptoFuture => new SecurityMarginModel(GetLeverage(security)),
+ _ => base.GetBuyingPowerModel(security)
+ };
+ }
+
///
/// Provides dYdX fee model
///
@@ -145,4 +160,4 @@ private static IReadOnlyDictionary GetDefaultMarkets(strin
map[SecurityType.CryptoFuture] = marketName;
return map.ToReadOnlyDictionary();
}
-}
+}
\ No newline at end of file