Issue with Delayed Order Updates via WebSocket - Request for Resolution

Dear Upstox Support Team,

I am reaching out to report a recurring issue with the real-time order updates received through your WebSocket, which has caused significant challenges in my trading setup. My server, which relies on real-time or near-real-time updates (typically within 10 seconds), encountered delays in receiving order updates on two separate occasions, leading to financial losses.

Incident Details

October 30 (2:59-3:05PM) : I placed two sell orders, but I did not receive any order updates through the WebSocket. As a result, my server continued to sell, assuming the initial orders had not been processed, ultimately executing unintended additional sell orders.
During this time window, there was a delay of approximately 4-5 minutes in receiving the order update. I had to manually intervene to stop the server, but I still incurred losses due to the delayed updates.

In this case, the delay seemed to occur around 3 PM, leading me to believe that there might be a recurring issue with order updates via WebSocket around this time.

Request for Clarification

  1. Could you confirm whether the WebSocket is designed to provide real-time updates, specifically within 10 seconds of order placement?
  2. If yes, what might have caused the delay in updates on November 30 between 2:59 and 3:05 PM?

Proposed Solution

To mitigate this issue, I plan to adjust my algorithm to check the order status with the Orders History API before executing further buy or sell orders. However, real-time WebSocket updates are critical to avoid unintended trades and ensure smooth trading operations.

I would appreciate it if your team could investigate this matter and provide any insights or solutions to prevent similar occurrences in the future. Additionally, if there are any recommended best practices or API configurations to ensure reliable updates, I would be grateful for your guidance.

Thank you for your attention to this matter.

Best regards,
Abhishek Agnihotri

Hi @mrAgni
Could you please provide your 6-digit user ID so we can investigate further?

Additionally, sharing the order ID where you experienced a delay would be helpful.

Thank you.

1 Like

Is it secure to share my order IDs and user account number here on a public blog, or where should I send them instead?

@mrAgni, itā€™s safe to share your order ID, but if you prefer, you can send it to me in a direct message.

Please find all the details in the attached Google Sheet, except for my Upstox user ID. The sheet includes a total of 32 orders, with timestamps reflecting the actual time I received each order update. There is a delay of approximately 3-4 minutes for each order update.

i have only success (completed) order timestamp.

32 orders cost (brokrage + Tax) and lost 4-5K additional capital. same happened with me few days back around same time.

not getting personal DM option. can you please ping me so that i can share my upstox userID?

Hi @mrAgni,

I have DMed you. Please share your ID there, thanks.

any update ? same thing happend 10 minutes ago. i cannā€™t bear lossesn again and again.

will share more deatils after the market.

Hey @Ushnota ,

any update on this?

Hey @Ushnota and @Ketan,

Should I always call /order/retrieve-all before entering or exiting a trade? whatā€™s the SOP here?

Hi @mrAgni,

Rest assured, we are checking this and will get back to you soonest with an update. Appreciate your patience.

1 Like

Weā€™ve reviewed the logs for your order and didnā€™t find any issues with the WebSocket updates. Other users are also using the same WebSocket for order updates and havenā€™t reported this issue.

Please check the order details using the API at Get Order Status | Upstox Developer API to see if the status updates after one second.

Additionally, could you share your implementation? This will help us investigate the issue further.