From ca058dc702baec7241d8745a0f618e733bd74790 Mon Sep 17 00:00:00 2001 From: BZ-CO <30245815+BZ-CO@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:11:22 +0200 Subject: [PATCH] Remove price clamping Remove price clamping when placing new order. --- src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs b/src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs index c7f6280b..17410d7e 100644 --- a/src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs +++ b/src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs @@ -278,8 +278,7 @@ protected override async Task OnPlaceOrderAsync(ExchangeOrd if (order.OrderType != OrderType.Market) { - decimal orderPrice = await ClampOrderPrice(order.MarketSymbol, order.Price.Value); - payload["price"] = orderPrice; + payload["price"] = order.Price.Value; if (order.IsPostOnly != true) payload["type"] = "LIMIT"; } @@ -474,7 +473,7 @@ await _socket.SendMessageAsync(new WebSocketSubscription } ); } - + protected override Task ProcessRequestAsync( IHttpWebRequest request, Dictionary? payload