@admin I did try it, but I'm not able to obtain any order feed using the python websockets.
Will it be possible for you to share some working code snippets?
Ayush Kumar
@Ayush Kumar
Best posts made by Ayush Kumar
Latest posts made by Ayush Kumar
-
RE: Websocket to obtain Order Status
-
RE: Can't obtain order_feed
@admin thanks for the update!
- Can you share any timeline as to when this issue will be fixed?
- Is there some other language SDK which supports WebSockets and works currently? Both Python and Node didn't seem to work for me.
-
RE: Can't obtain order_feed
I tried creating a websocket on my own still same problem, can someone help me understand the issue here?
In the first place, has someone received ticks for orders placed through UI?
Please correct me if I'm wrong with my understanding ofWebsocket Order Status
-
RE: Can't obtain order_feed
let web_socket = require("ws"); ws = new web_socket(url, null, { rejectUnauthorized: false }); ws.onopen = function onOpen(evt) { setInterval(function () { var _hb_req = '{"actiontype":"heartbeat","feedtype":"order_feed","jwttoken":"' + jwttoken + '","clientcode": "", "apikey": ""}'; console.log("heartbeat sent..") ws.send(_hb_req); }, 60000); console.log("Opened...") var _req = '{"actiontype":"subscribe","feedtype":"order_feed","jwttoken":"' + jwttoken + '","clientcode": "", "apikey": ""}'; ws.send(_req); console.log("Req sent...", _req) }; ws.onmessage = function (evt) { console.log(evt); var result = evt.data; console.log(result); }; ws.onerror = function (evt) { console.log("error::", evt) // self.connect(); // reject(evt) console.log("On Reject ", evt) }; ws.onclose = function (evt) { console.log("Socket closed") };
-
Can't obtain order_feed
Using the SDK to make a websocket connection for order_feed doesn't work. I can see that websocket is connected, and if I send wrong details I get correct error response from the server. But when I place any orders on through the Website those aren't received by the client.
-
Websocket to obtain Order Status
As I understand from the documentation, we can use WebSockets to get information about any orders that get placed on my account (correct me if I'm wrong). If yes, can somewhere share how we can do this using Python SDK? I was able to obtain code only for Websocket streaming and couldn't find Python specific documentation
-
RE: Get details of recent order placed
@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.
-
RE: Get details of recent order placed
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
-
RE: Get details of recent order placed
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 -
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?