Skip to content

Commit

Permalink
MEXC: remove price clamping (#866)
Browse files Browse the repository at this point in the history
Remove price clamping when placing new order.
  • Loading branch information
BZ-CO authored Feb 6, 2025
1 parent b6c0fe4 commit 2f7603a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ protected override async Task<ExchangeOrderResult> 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";
}
Expand Down Expand Up @@ -474,7 +473,7 @@ await _socket.SendMessageAsync(new WebSocketSubscription
}
);
}

protected override Task ProcessRequestAsync(
IHttpWebRequest request,
Dictionary<string, object>? payload
Expand Down

0 comments on commit 2f7603a

Please sign in to comment.