Hello @Prakash_JJ
Welcome to MadeForTrade community!
This is on works. We have built the library on open source, so a few tweaks is all that’s needed, and we are already on it.
Hello @Prakash_JJ
Welcome to MadeForTrade community!
This is on works. We have built the library on open source, so a few tweaks is all that’s needed, and we are already on it.
Hey @Hardik
You say only a few tweaks is all that’s needed, but you are working on it for last so many months. When can we expect the updated files.
hi Hardick,
Can you pls update?? While seeing logs its almost more than 2 months where solution is awaited.
hi Hardick …Since Long request has been raised and everybody is waiting for your revert. If it is limited to 100 feeds only then there is no differentiator compared to other APIs… Also we should have firm timeline if at all it is possbile… and pls remove in API doc no limitation till the time resolve …at max we can only subscribe 100 equity only …Pls repond with POA
I subscribed to the data apis because the docs clearly stated that unlimited instruments can be subscribed. These tactics are very misleading and frustrating from a customer point of view. Hope you can resolve this issue at the earliest.
Hello @Prakash_JJ @nawal555 @vyomthakkar
I understand this is long pending. We have just released v1.3.2 which allows to subscribe to upto 5000 instruments and even add instruments while the connection is active.
Do check it out and let us know your feedback:
Hi @Hardik ,
Thank you for the update. Does it mean in the first subscription itself we can go up to 5000?
Any example code how to add the new scripts/remove scripts from ticker after the initial connection is established.
One query:
In case of few other data providers, when I subscribe to 2000 instruments, I will get data for all instruments ( or for all instruments where data is available) in single array/list and I can parse through list for my data processing. in case of Dhan websocket, if I subscribe to 2000 instruments, I will get one single list with all Intruments data OR I will get 2000 separate ticks?
@Hardik can you please share your feedback on above query ?
Hey @PavanaCapital
On Dhan Feed, you will get separate ticks for each instrument.
@Prakash_JJ we have added sample code as well in the GitHub ReadMe section.
@Hardik As per documentation we can create three websocket connections however when I am subscribing to two websocket connections, both websockets get disconnected (without any error, they just stop).
I tried by creating two separate tokens for two web sockets but same issue. Can you please suggest what could be the error?
note: when I have subscribed to only one websocket, it runs uninterrupted.
Hello @PavanaCapital
This is a client side issue, and not on the server side. When you are opening two sockets, are you using threading or any other method to run two loops concurrently?
Also, if you can add debugging and check the reason for websocket disconnection.
I am running these two as separate programs, no threading involved.
Hi @Hardik I have added debug logs and here is the outout
> 2024-09-11 09:16:53,437 , 940 , dh_ws_opt.py , put_dh_quote , INFO , ** inside put_dh_quote
> 2024-09-11 09:17:03,308 , 940 , protocol.py , close_connection , DEBUG , ! timed out waiting for TCP close
> 2024-09-11 09:17:03,308 , 940 , protocol.py , close_transport , DEBUG , x closing TCP connection
> 2024-09-11 09:17:03,309 , 940 , protocol.py , connection_lost , DEBUG , = connection is CLOSED
Your documentation say differently!
Is there any other way to get upto LTP for 10000 symbols?
Can I make concurrent connections? How many connections are allowed?
Hello @Ananda_SubuRao
Will update knowledge base. Do note, this is not the documentation but a help guide.
You can make 5 concurrent connections per Dhan account for Live Market Feed. Also, you can subscribe to 5000 instruments in a single connection.
Interested to know use case of getting 10000 instruments data at once.
First of all thank you for the response!
I was scratching my head without knowing these limitations… You save my day.