Important Announcement: SmartAPI Beta Release - Postback for Order Updates is Now Live!
-
We understand that some of you may have faced challenges with our Postback API in the past, and we deeply apologize for any inconvenience this may have caused. We're committed to providing you with the best possible trading experience, and we're pleased to announce that we've resolved the Postback API issue.
Postback URL: Stay Informed with Real-time Order Updates
When creating your API key, you can specify a Postback URL. This URL will be the destination where you receive real-time order status updates for the orders placed via APIs. While this is an optional field, it can be incredibly valuable, especially for those creating web applications who want to provide end-users with timely order status updates.
What's New?
Here's what you can expect from the SmartAPI's updated postback mechanism:
Fully Operational: The SmartAPI's postback mechanism for order updates is now fully operational.
Postback URL: During API key creation, you can specify a postback URL, and updates will be sent to the mapped URL against the API key used to place the order. (Note: Postback service only allows the updates on HTTPS port 443)
Real-time Notifications: You will receive real-time postback notifications and updates regarding the status of your orders.
Enhanced Monitoring: This functionality empowers you to monitor your trading strategies more effectively, enabling you to make well-informed decisions.
Sample response:
{ "variety": "NORMAL", "ordertype": "MARKET", "producttype": "DELIVERY", "duration": "DAY", "price": 0.0, "triggerprice": 0.0, "quantity": "1000", "disclosedquantity": "0", "squareoff": 0.0, "stoploss": 0.0, "trailingstoploss": 0.0, "tradingsymbol": "SBIN-EQ", "transactiontype": "BUY", "exchange": "NSE", "symboltoken": "3045", "ordertag": "10007712", "instrumenttype": "", "strikeprice": -1.0, "optiontype": "", "expirydate": "", "lotsize": "1", "cancelsize": "0", "averageprice": 584.7, "filledshares": "74", "unfilledshares": "926", "orderid": "111111111111111", "text": "", "status": "open", "orderstatus": "open", "updatetime": "09-Oct-2023 18:22:02", "exchtime": "09-Oct-2023 18:21:12", "exchorderupdatetime": "09-Oct-2023 18:21:12", "fillid": "", "filltime": "", "parentorderid": "", "clientcode": "DUMMY123" }
Important Note for AMO Orders:
For After Market Orders (AMO), please be aware that postback notifications will not be sent immediately at the time of placing the order after market hours. Instead, these notifications will be dispatched at 9:00 AM when those orders are sent to the exchange for processing.
What Should You Do?
If you have previously experienced issues with postback order updates via the SmartAPI, we recommend taking the following steps:
Update Your Webhook Configuration: If you had disabled or removed your webhook configuration due to the previous issue, please reconfigure it now to start receiving order updates again.
Monitor Your Applications: Verify that your applications effectively process incoming order update notifications. Adjust them as needed to align with the provided response structure.
We would like to extend our gratitude to all our users for their patience and feedback during this period. Your insights have been invaluable in resolving this issue.
How Can We Help?
If you encounter any difficulties or have questions about the SmartAPI and its new postback order update functionality, please feel free to reach out to our support team. We're here to assist you with any inquiries or concerns you may have.
Note: Beta Release
Please note that this is a beta release, and we welcome your feedback as we continue to refine and improve this feature.
Thank you for being a part of our community and for your continued trust in the SmartAPI. We look forward to seeing how this enhancement can benefit your trading strategies.