diff --git a/xchange-core/src/main/java/org/knowm/xchange/utils/OrderValuesHelper.java b/xchange-core/src/main/java/org/knowm/xchange/utils/OrderValuesHelper.java index d6d87390b0b..3631f1222d8 100644 --- a/xchange-core/src/main/java/org/knowm/xchange/utils/OrderValuesHelper.java +++ b/xchange-core/src/main/java/org/knowm/xchange/utils/OrderValuesHelper.java @@ -90,6 +90,11 @@ public BigDecimal adjustPrice(BigDecimal price, RoundingMode roundingMode) { if (scale != null) { result = result.setScale(scale, roundingMode); } + + BigDecimal stepSize = metaData.getPriceStepSize(); + if (stepSize != null && stepSize.signum() != 0) { + result = BigDecimalUtils.roundToStepSize(result, stepSize, roundingMode); + } return result; } }