Login Page - Create Account

Support Board


Date/Time: Tue, 09 Jun 2026 12:16:03 +0000



Post From: Which trading services can return OrderStatusCode=10 and 11?

[2026-04-28 11:20:50]
curious16 - Posts: 47
Thank you for clarifying. For my use case this means I can ignore SCT_OSC_PENDING_CANCEL_FOR_REPLACE.

Regarding SCT_OSC_ERROR, I'd like to understand what could trigger such an error if no SCTRADING_ORDER_ERROR is returned when the order is submitted. I'd like to catch as many potential error sources as possible before submitting orders, hence it would be helpful to get further insight what triggers SCT_OSC_ERROR conditions.

Specifically, assume the content of the s_SCNewOrder struct is checked for validity (no missing or invalid fields, size not breaching account or symbol limits, no invalid price levels etc). Assume an order with this struct is submitted (sc.BuyOrder() or sc.SellOrder()) and no SCTRADING_ORDER_ERROR is returned.

What could then later still trigger a SCT_OSC_ERROR condition after the order was submitted? Would such SCT_OSC_ERROR conditions be generated only by the SC server (i.e. before the order is put on the book at the exchange), or could such SCT_OSC_ERROR conditions also be triggered by the exchange? What additional information about the type of error do I get in SC if such an error is triggered?

I so far haven't come across these errors when using simulated trading, but I'd rather make sure this condition is properly handled in my code to avoid having to deal with surprise losses when experiencing such SCT_OSC_ERROR situations while trading a live account.