Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
53 stars 28 forks source link

Maximum number of instruments in websockets api #45

Open oldmonkABA opened 8 months ago

oldmonkABA commented 8 months ago

It seems that if i subscribe to more than 40 instruments in websockets API for 1minute candle data, then the data is getting dropped. I am not getting data consistently. What is maximum limit on the number of instruments in the websockets API?

Kite from Zerodha allows upto 1000 instruments in one websocket connection.

imzeeshan commented 7 months ago

Would love to know the number of instruments that we can subscribe to

GauravSuryavanshi2020 commented 4 months ago

I am trying something similar. How do i modify the below command to include multiple stock_tokens ?

subscribe stocks feeds by stock-token

breeze.subscribe_feeds(stock_token="1.1!500780")

Idirect-Tech commented 4 months ago

Dear Client,

Please subscribe the multiple stock tokens by passing through a list.

breeze.subscribe_feeds(stock_token=['4.1!35002','4.1!56352'])

[E29CF836]

Thanks & Regards,

Amrit Mohanty,

API & Algo Products,

Derivatives, EPG

ICICIdirect


From: GauravSuryavanshi2020 @.> Sent: Wednesday, March 6, 2024 8:27 PM To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Maximum number of instruments in websockets api (Issue #45)

CAUTION: This email originated from outside the organization! Do not click links, open attachments or reply, unless you recognize the sender's email address! Use 'Report suspicious Email' button in the toolbar to report Phishing mails. Beware!

I am trying something similar. How do i modify the below command to include multiple stock_tokens ?

subscribe stocks feeds by stock-token

breeze.subscribe_feeds(stock_token="1.1!500780")

— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/45#issuecomment-1981054540, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ4ZUVURSBBSRVK5EY5LYW4VEXAVCNFSM6AAAAAA6VWI6QCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGA2TINJUGA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Print this mail only if absolutely necessary. Save Paper. Save Trees." "The information contained in this e-mail and any attachments to this message are intended for the exclusive use of the intended recipient and may contain proprietary, confidential or legally privileged information. If you are not the intended recipient, please note that you are not authorised to disseminate, distribute or copy this e-mail or any parts of it or act upon/rely on the contents of this e-mail in any manner. Please notify the sender immediately by e-mail and destroy all copies of this e-mail and any attachments. Please also note that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure the integrity of/over the contents of the information contained in e-mail transmissions and that any views expressed in this e-mail are not endorsed by/binding on the ICICI Group unless the sender does so expressly with due authority of ICICI Group. Before opening any attachments please check them for viruses and defects and please note that ICICI Group accepts no liability or responsibility for any damage caused by any virus that may be transmitted by this email. Any unauthorized use of this email or any attachment(s) may be treated as infringement of right(s) including right of privacy under the applicable laws of India including Information and Technology Act, 2000. Thank you for your cooperation. Regulatory Disclosures are available on https://www.icicisecurities.com (for institutional business) and www.icicidirect.com (for retail business).

GauravSuryavanshi2020 commented 3 months ago

I am gertting the bgelow error after getting data for 2 minutes :

IOPub data rate exceeded. The Jupyter server will temporarily stop sending output to the client in order to avoid crashing it. To change this limit, set the config variable --ServerApp.iopub_data_rate_limit.

Current values: ServerApp.iopub_data_rate_limit=1000000.0 (bytes/sec) ServerApp.rate_limit_window=3.0 (secs)


I increased the limit of iopub_data_rate_limit to 10e10 in sever.py but this did not work. I wish to get tick data of all futures and opitions tokens that are available (approximate 35000) . How can I get tick data for Thirty five thousand tokens ?

Commands planning to use are as below 👍 # Assign the callbacks. breeze.on_ticks = on_ticks

subscribe stocks feeds by stock-token

breeze.subscribe_feeds(stock_token=["4.1!66506","4.1!66507"....])

If it is a paid service for getting these many tokens dta then what are the charges ?