diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/TriggerOrdersInputValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/TriggerOrdersInputValidator.kt index 8d7d6dfa7..32f7e2b17 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/TriggerOrdersInputValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/TriggerOrdersInputValidator.kt @@ -241,6 +241,7 @@ internal class TriggerOrdersInputValidator( mapOf( "TRIGGER_PRICE_LIMIT" to mapOf( "value" to liquidationPrice, + "format" to "price", "tickSize" to tickSize, ), ), diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeBracketOrdersValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeBracketOrdersValidator.kt index 6b64bcf27..7dd2f21da 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeBracketOrdersValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeBracketOrdersValidator.kt @@ -163,6 +163,7 @@ internal class TradeBracketOrdersValidator( mapOf( "TRIGGER_PRICE_LIMIT" to mapOf( "value" to liquidationPrice, + "format" to "price", "tickSize" to tickSize, ), ), @@ -185,6 +186,7 @@ internal class TradeBracketOrdersValidator( mapOf( "TRIGGER_PRICE_LIMIT" to mapOf( "value" to liquidationPrice, + "format" to "price", "tickSize" to tickSize, ), ), @@ -326,6 +328,7 @@ internal class TradeBracketOrdersValidator( mapOf( "TRIGGER_PRICE_LIMIT" to mapOf( "value" to liquidationPrice, + "format" to "price", "tickSize" to tickSize, ), ), @@ -345,6 +348,7 @@ internal class TradeBracketOrdersValidator( mapOf( "TRIGGER_PRICE_LIMIT" to mapOf( "value" to liquidationPrice, + "format" to "price", "tickSize" to tickSize, ), ), diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeTriggerPriceValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeTriggerPriceValidator.kt index ac36ba3c1..b4b985dc5 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeTriggerPriceValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradeTriggerPriceValidator.kt @@ -242,7 +242,13 @@ internal class TradeTriggerPriceValidator( val action = "APP.TRADE.MODIFY_TRIGGER_PRICE" // Localizations uses TRIGGER_PRICE_LIMIT as paramater name val params = - mapOf("TRIGGER_PRICE_LIMIT" to mapOf("value" to triggerLiquidation, "tickSize" to tickSize)) + mapOf( + "TRIGGER_PRICE_LIMIT" to mapOf( + "value" to triggerLiquidation, + "format" to "price", + "tickSize" to tickSize, + ), + ) return when (triggerToLiquidation) { RelativeToPrice.ABOVE -> error( "ERROR",