Skip to content

Commit

Permalink
also update variable for max leverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed May 2, 2024
1 parent f0e217e commit 5717cec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ internal class TradeInputCalculator(
return parser.asDouble(parser.value(position, "maxLeverage.current"))
} else {
val initialMarginFraction =
parser.asDouble(parser.value(market, "configs.initialMarginFraction"))
parser.asDouble(parser.value(market, "configs.effectiveInitialMarginFraction"))
?: return null
return 1.0 / initialMarginFraction
}
Expand Down

0 comments on commit 5717cec

Please sign in to comment.