I am writing a service using Kiteconnect and kite ticker class in node js for few intrument_tokens. so what i do is first i am getting tokens current price using getQuote api and then listed on that intrument token using ticker, now after 1 min ticket gets disconnected so i have wrote a logic for reconnect it using again getting token price using getQuote where i am getting No response from server with error code: ECONNABORTED First time it was working well for getting price using getQuote but when i try reconnect on disconnect it doesnt get the price and gives me error
so what i do is first i am getting tokens current price using getQuote api and then listed on that intrument token using ticker i have wrote a logic for reconnect it using again getting token price using getQuote
Didn't get you? Are you using getQuote inside the ticker instance? You can set reconnect to true in the KiteTicker instance, for auto-reconnect.
@rakeshr Yes here is the steps i am implementing 1) connect kiteconnect 2) initiate and connect ticker 3) get banknifty future price using getQuote price
First time this all steps will work correctly in sometime the ticker will first close and then disconnect After that i am reconnecting ticker again and then again getting future price using getQuote price but then getQuote api is giving message: 'No response from server with error code: ECONNABORTED', error_type: 'NetworkException'
i have also used reconnect while initiating ticker first time and code has been written in nodejs
Are you using getQuote inside the ticker instance?
You can set reconnect to true in the KiteTicker instance, for auto-reconnect.
Yes here is the steps i am implementing
1) connect kiteconnect
2) initiate and connect ticker
3) get banknifty future price using getQuote price
First time this all steps will work correctly
in sometime the ticker will first close and then disconnect
After that i am reconnecting ticker again and then again getting future price using getQuote price but then getQuote api is giving
message: 'No response from server with error code: ECONNABORTED',
error_type: 'NetworkException'
i have also used reconnect while initiating ticker first time and code has been written in nodejs