Get details of recent order placed
-
Hello, I'm planning to develop a system that prints on console live orders executed via Angel Broking UI?
I know that we can use the Order Book to get all the orders, but is it possible in Python SDK to obtain the most recent order that is placed?
OR a python function is triggered whenever a new order is placed on my account? -
Dear @Ayush-Kumar said in Get details of recent order placed:
As far as I understand the postback url will be called if the order is placed using my API, what happens in case when I place an order on my account via the Angel Broking website?
Will the postback call still be made to my api?You need to test it from your end.
-
@admin As far as I understand the postback url will be called if the order is placed using my API, what happens in case when I place an order on my account via the Angel Broking website?
Will the postback call still be made to my api?If yes, How can I link someone else's account to my API so that whenever they place an order irrespective of the mode of order placement, my system gets an update about it?
Please let me know if my question is unclear.
-
Here's a sample code for Postback calls that I found on GitHub gist https://gist.github.com/ajinasokan/267d68c9f61e3e4ea11681c0ec4e707d
Thought of sharing it with the community.A few more improvement suggestions, the form which asks for a postback link & redirect link could have some small explanation or link to the documentation to make it easier to understand their use
-
Hi @Ayush-Kumar currently we dont have sample codes but we have noted this as one of feature that can added for the product enhancement.
-
Hi @admin, thanks for the quick update! Can you share some documentation links where I can read more about it or some sample python code that can do this?
I explored https://smartapi.angelbroking.com/docs/Postback but couldn't understand much how it works -
Hi @Ayush-Kumar you can use post back url for that.