API / Developer Queries

Subject: Webhook Not Receiving Order Updates for App “preprodAlgo”

Hello Upstox API Support,

We are experiencing an issue where our webhook is not receiving any order update events for our registered app.

App Name: preprodAlgo
User ID: 67ATC7
Webhook URL: https://preprod.algoetf.in/api/api/stocks/updateOrder
Issue Summary: Our server is not receiving any webhook events (such as order status updates) even though orders are being placed and executed via API.

Technical Details:

  • The webhook URL is publicly accessible over HTTPS and returns HTTP 200 OK.
  • We have tested the endpoint with curl and Postman, confirming it accepts POST requests and processes JSON.
  • Our backend uses express.json() middleware, and logs show no incoming requests from Upstox.
  • The endpoint responds in under 500ms.
  • The above order ID was placed via API and shows as “complete” in the Upstox platform, but no webhook event was received.

Request:

  1. Please confirm if webhook events are being triggered for our User ID (67ATC7) and the specified order.
  2. Check if there are any delivery errors or logs on your side related to our webhook URL.
  3. Advise if additional configurations like IP whitelisting or secret headers are necessary.

Thank you for your assistance.

Best regards,
Sanket Jagtap.

Hi there,

I have doubt in GTT Order.

Suppose I have placed GTT order at 100 with a target of 105. Now the order got executed at 100 and next day market opens at 115. So will my order get exited at 105 or 115?

I have another doubt.

If I have pledge margin of 1lakh and My account balance is 10000.

Now if I buy 90000 of Equity Delivery. Then next day do I need to maintain balance or I can wait until I sell it?

Need API to manage watchlist

@SANKET_32565461 It looks like this is being blocked by the firewall. We’ll raise a request to whitelist it and update you as soon as possible.

@SANKET_32565461 This has been whitelisted, please check and confirm.

Great you guys have mastered ignoring comments. Didn’t you saw my questions? Didn’t you feel that should also be answered?

Hi @Jagdish_j_ptl
We apologize for missing this query earlier.

The concept of Market Protection Percentage (MPP) is applied to the second leg of GTT orders. When placing GTT orders via the API, the MPP value is currently fixed at 3% by default.
For more information on MPP, please refer to this article: Market Price Protection (MPP) on Upstox – Trade Smarter, Safer.

We are also planning to introduce the ability for users to set a custom MPP value in the GTT order payload.

Thanks!

@Ketan thank you for the reply. But don’t you think MPP should be used to protect from unfavorable losses not from favourable profits? MPP should be applicable on Entry leg and Stoploss leg. And for Target leg if market is opening higher than mentioned target price then it should be exited with higher price as it will give extra profit.

Suppose if entry leg is 100 then it should be executed max at 102. And for stoploss if stoploss price is 100 then it should be executed between 98-100 but for Target there should not be upper limit as if trigger price is if I bought at 100 with target price105 but market is opening at 120 then as per current scenario I will get profit of 5 points where I could have booked 20 points without MPP in upper limit.

I hope you understood my explanation.

115,

If you have set ABOVE 105…

Target leg is to be set IMMEDIATE as per the documentation. So in this case also it will be executed at 115 I guess.

It should… I posted IMMEDIATE has a twisted meaning… please read the post.

@Ketan Can you please reply to this question as well?

Namaskara Jagadish,

@Ketan replied..as always … its unconvincing. Please see my reply to his post.