if API attempt to cancel order, and the order is no longer active, a status code 400 is returned with the following message body.
currently the API does nothing with this message and throws an exception. Need to handle it and return something so the caller knows the order is no longer active.
problem is, that we don't know if its closed because it was canceled or filled.
-
* 2025-10-03T17:03:29.662+0000 [pool-3-thread-1] INFO
* c.f.service.MarketDataService - Canceling expired buy order:
* 1759510877650201709231040002 (age: 132289ms) 2025-10-03T17:03:29.764+0000
* [pool-3-thread-1] ERROR c.s.p.common.api.ParadexRestApi - Error response:
* {"error":"ORDER_IS_CLOSED","message":"order is closed:
* 1759510877650201709231040002"}
if API attempt to cancel order, and the order is no longer active, a status code 400 is returned with the following message body.
currently the API does nothing with this message and throws an exception. Need to handle it and return something so the caller knows the order is no longer active.
problem is, that we don't know if its closed because it was canceled or filled.