Please share condition to raise following error from Sever , While Full Mode is on during Tick data collection, If we want to listen ticks of no trade instrument we are getting error from Kite that "Invalid argument".and getting out of code. Error details has been given below,
=========================================================================== on_connect Unhandled Error Traceback (most recent call last): File *****\Programs\Python\Python36\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File *****\Programs\Python\Python36\lib\site-packages\twisted\python\log.py", line 86, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File *****\Programs\Python\Python36\lib\site-packages\twisted\python\context.py", line 122, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File *****\Programs\Python\Python36\lib\site-packages\twisted\python\context.py", line 85, in callWithContext return func(*args,**kw) --- --- File *****\Programs\Python\Python36\lib\site-packages\twisted\internet\selectreactor.py", line 149, in _doReadOrWrite why = getattr(selectable, method)() File *****\Programs\Python\Python36\lib\site-packages\twisted\internet\tcp.py", line 205, in doRead return self._dataReceived(data) ============================================================================================
Scenario of Problem: While listening BANKNIFTY/NIFTY option chain , there are many strikes where no trades executed, then following error is throwing from Kite and we are out of code.
Like in early traded hours, OTM Options have no trades sometime, then mentioned problem is coming
@babansfolio Can you give the platform, kiteconnect version? Exact code to replicate on our end would help us debug this much faster. Also,we checked for few very illiquid scrip BANKNIFTY19APR29000PE(9889282) and NIFTY19APR9150CE(11742466), but we got required ticks with no 'Invalid argument' error for any request.Can you also paste here required token_list ?
Can you paste a sample code here?
Scenario of Problem:
While listening BANKNIFTY/NIFTY option chain , there are many strikes where no trades executed, then following error is throwing from Kite and we are out of code.
Like in early traded hours, OTM Options have no trades sometime, then mentioned problem is coming
Sample Code:-
=======================
def on_connect(ws, response):
ws.subscribe(token_list)
ws.set_mode(ws.MODE_FULL, token_list)
print("on_connect")
# Token List = List of Instrument token to be listen
# Assign the callbacks.
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.connect()
Exact code to replicate on our end would help us debug this much faster.
Also,we checked for few very illiquid scrip BANKNIFTY19APR29000PE(9889282) and NIFTY19APR9150CE(11742466), but we got required ticks with no 'Invalid argument' error for any request.Can you also paste here required token_list ?
I also received similar error.
Kindly suggest...
The program was running fine for 30 minutes.
https://www.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionDates.jsp?symbol=NIFTY&instrument=OPTIDX&strike=11650.00
i belive LTP is null in tick(nse data) and your code is trying to append null value... . I am not sure but just a cross check might help you..
Ignore if this is wrong