Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 09:27:15 +0000



Order-error - Order timed out

View Count: 940

[2016-06-01 06:10:17]
User754985 - Posts: 109
What are the internal SC rules for "erroring" an order?

Situation:
- order (or order cancellation) is sent just before connection to IB API server is lost (during their daily maintenance window) or during this period (how to identify it?) and gets an order ID
- SC attempts to poll its status but is unable to - treats an order as "unresponsive"
- it tries to do it 3 times? ( please confirm the rule)

- if not able to establish status - marks as "error" - "Order-timed out waiting for...."

- when connection is back, it seems that any connection to such order is lost and it is not possible to address it from SC...
but it is on the brokers's server (and visible on the chart)

Please clarify the process. How can one get such order modified/cancelled?
[2016-06-01 06:23:20]
User754985 - Posts: 109
Order seems to be "lost" because

Result1 = sc.GetOrderByOrderID(TargetOrderID, TradeOrderData)
      
will return SCTRADING_ORDER_ERROR

so - no correct order ID for further modification/cancellation.
        
Would it be possible to add a specific Order status code for such time-out situations?
[2016-06-01 06:27:52]
User754985 - Posts: 109
ups, sorry..

OrderId will still be available but normally before modification/cancellation there is a check of the OrderStatusCode, and for that one needs valid TraderOrderData from sc.GetOrderByOrderID()..
[2016-06-01 16:34:57]
User754985 - Posts: 109
Further to my questions, please confirm my understanding.

In case an order is timed-out (e.g. existing stop order status is polled x times during api server disconnect e.g. before modification), then

what will be returned by

- Result=sc.GetOrderByOrderID(StopOrderID, TradeOrderData) // My guess - NOT SCTRADING_ORDER_ERROR

- TradeOrderData.OrderStatusCode // if Result!=SCTRADING_ORDER_ERROR, then it will be ==SCT_OSC_ERROR


Question: upon api server reconnected, how can one modify/cancel such order with got labelled by SC as SCT_OSC_ERROR?
is this a permanent status or it can change later? how to resurrect it in SC?
[2016-06-02 03:10:24]
Sierra Chart Engineering - Posts: 104368
We need some time to go over this in detail but very briefly, even if an order times out and goes to an Error status, if the order then gets updated by the external service which it can be, the status of the order will change to the current status.

So a timeout is only a temporary condition.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account