Order API returning 400 Bad Request for REJECTED order status

HowUTrade
Hi @Matti @sujith
We noticed an issue today while placing an order. The API returned a 400 Bad Request (WebException) with a MarginException error, even though the order was actually created on the system with a REJECTED status.

{
"status": "error",
"message": "Insufficient funds. Margin required: ******.**. Margin available: ******.**. Add *****.** to place this order.",
"data": null,
"error_type": "MarginException"
}
Previously, the Order API returned a 200 OK response with an order_id regardless of whether the order status ended up as COMPLETE, OPEN, or REJECTED.
Is this a recent change or unexpected behavior?
Thanks!
Tagged:
Sign In or Register to comment.