Open sudhakarsi opened 6 months ago
Requested to mail the code snippet without credentials to breezeapi@icicisecurities.com
Below piece of code most of time fails. out of 30 attempts only got data 4 time. Above screen shot is for this code only.
breeze.generate_session(api_secret=SecretKey, session_token=Session)
breeze.ws_connect()
def on_ticks(ticks): print("Ticks: {}".format(ticks))
breeze.on_ticks = on_ticks
breeze.subscribe_feeds(exchange_code="NFO", stock_code="BANKNIFTY", product_type="options", expiry_date="10-Jan-2024", strike_price="48000", right="Call", get_exchange_quotes=True, get_market_depth=False)
breeze.ws_disconnect()
Same piece of code run fine but will through error also.