Skip to content

Commit 2f7603a

Browse files
authored
MEXC: remove price clamping (#866)
Remove price clamping when placing new order.
1 parent b6c0fe4 commit 2f7603a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ protected override async Task<ExchangeOrderResult> OnPlaceOrderAsync(ExchangeOrd
278278

279279
if (order.OrderType != OrderType.Market)
280280
{
281-
decimal orderPrice = await ClampOrderPrice(order.MarketSymbol, order.Price.Value);
282-
payload["price"] = orderPrice;
281+
payload["price"] = order.Price.Value;
283282
if (order.IsPostOnly != true)
284283
payload["type"] = "LIMIT";
285284
}
@@ -474,7 +473,7 @@ await _socket.SendMessageAsync(new WebSocketSubscription
474473
}
475474
);
476475
}
477-
476+
478477
protected override Task ProcessRequestAsync(
479478
IHttpWebRequest request,
480479
Dictionary<string, object>? payload

0 commit comments

Comments
 (0)