Skip to main content
Every Options order error carries error.slug and error.code on the Order Management Stream, whether the order was sent over WebSocket or over HTTP: the HTTP routes answer 202 once the order is queued, and the engine reports its decision on the stream. The code names the class of refusal and the slug its cause; 10003 is a rejected request, and its slug says why. HTTP errors themselves use the shared codes of the Error Reference.

createOrder

A request the gateway cannot parse at all, a missing quantity or an unknown tradeType for instance, is also answered with 10003; its slug is the parser’s message rather than one of the names above.

cancelOrder

modifyOrder

cancelAllOrders

A refused sweep cancels nothing. The cancels a sweep expands into report as cancelOrder with the codes above; an order that fills before its cancel reports order_not_found.