Hi @sujith @rakeshr can you let us know about API quotes data, are these snapshots are obtained directly from the exchanges at the time of request? or it is fetching from websocket data from your local server?
Hi @Hardik_Varma I am also facing exatly same above 2 issues.Sometimes, also get the error - "Couldn't parse the JSON response received from the server: Gateway Time-out".
This issue will occur API call response do not have any value.
@rakeshr ple…
Thanks @ANL & @rakeshr . So i think from the exchange it self the tick data is not coming in asending time frame. Below is the sample API response.
In the above if "timestamp"(in tick data the parameter name is "Exchange timestamp") parameter…
Hi @sujith @rakeshr after implementing above code still getting the error as kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (WebSocket closing handshake timeout (peer did not finish the opening handshake in tim…
Try printing subscribed tokens after unsubscribing to check. Hi.. @SRIJAN/@pankaj8932 can you give sample code to print subscribed tokens after un subscribing.
If i invalidate my session and do a fresh connection then connection count be reset ?
Hi @rakeshr @iamshaurya How to implement to close and reconnect the session? can you provide any sample code will be much helpful.
Hi @___Balajee___ Can you share the link to get the V4.1.0 kite ticker details? i too faced similar type of issue https://kite.trade/forum/discussion/14320/time-lag-between-exchange-time-and-system-time-from-v5-relese#latest
Hi Rakesh.. Thanks for your quickk response. Please find the attached log file. I attached the log file between "13:38:23" to "14:02:24" . In the starting of the log you can see the time differnece is around just 5 to 10 seconds. While you reach en…
I want to do computation on each and every tick data. Can some one guide me whether my approach is correct or not? I used thread to process the data.
This is the below code snippet.
data_queue = queue.Queue(maxsize=0)
def on_ticks(ws,ticks): …
Hi .. Today i am getting the error as "No server is available to handle this request." exactly at 2024-06-03 09:47:59 while api call of "kite.get_gtts()". Please fix it.
Thanks @sujith for your response. I subscribed the token only i.e 260105 for understanding purpose i mentioned in the discussion as symbol=="NIFTY BANK" . Even though i am getting spot price through web socket some time data is missing then i am ca…
Hi @rakeshr and @sujith i am using WebSocket by subscribing instruments. My code is if through WebSocket if it(tick) did not find the symbol=="NIFTY BANK" then try the API call. And in the exception , i am again recalling (recursive function) th…
Hi @sujith ,
I am using python client. This is below my code.
from kiteconnect import KiteConnect
try:
api_key=''
kite=KiteConnect(api_key)
print(kite)
Instruments=kite.instruments()
print("Successfully fetched the Instruments")
a= kite.p…
Hi @sujith I upgraded the kiteconnect package by "pip install kiteconnect --upgrade --pre" After that i am getting error message as "FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\algo\\lib\\site-packages\\kiteconnec…
Hi @rakeshr Can we achive BO order by below way
1. Place Normal order and in the postbacks get the order id
2. if the order id exist then place two leg GTT order
correct me if i am wrong
@rakeshr @sujith thanks for your response. And i observed that OI in Kite is changing every 3 minutes once. Not with the real time. Can you please observe for 10 minutes in kite.You can come to know.
Please let me know to get live OI data.Why only …
Hi @sujith i will implement for loop to place multiple orders.But here i want to know "what is the maximum allowed quantity(Freeze quantity) So that i can loop.
Hi @rakeshr thanks for your help. Now i am able to successfully place the GTT created. But HDFCBANK not showing in the Positions. Means it is just created GTT, But not entered in to the Postion with market order. Please advise me.
…
Hi @rakeshr , @sujith
In web UI i am able to place GTT with target and stoploss with market order of selling a "HDFCBANK future" can i achive the same using API.?
Thanks @rakeshr , @sujith So , through Web UI i can place market order, but through API i can place only limit order of GTT?
This is below sample code of mine i am placing limit order of infy at 702. and placing target order at 710. But i am getti…
Hi @sujith ,What is the minimum time interval that i can set for interval parameter? "kite.historical_data(instrument_token, from_date, to_date, interval)" can we mention seconds also? How to mention seconds here?
@sujith Hi..
I am trying to fetch bid prices for an instrument by the below python code.
data=kite.quote.get("NFO:NMDC19JULFUT").depth.buy.get(4).getPrice();
some where my syntax is wrong. Can you please let me know the correct syntax to fetch dept…
Thanks @ridhi_karan ,
@rakeshr, @sujith by using websocket response can i get market depth in "Buy" side and "Sell" side? Previously there was 'depth.buy', 'depth.sell' columns was there. No is it removed?
Hi @sujith I subscribed to kite API. I want to place orders through amibroker.Can you please give some sample code to place and modify orders in amibroker
@sauravkedia Is there any possible way to generate candle sticks with out using data base?Can you advise me for Python based data providers(Because i developed my algo in python).Is GDFL supports my requirement?
Hi @sujith is it possible to fetch multiple tokens historical data at once.? if i use the below code "records= kite.historical_data(instrument_token, from_date, to_date, interval)" .I need to put time. sleep(1) to avoid rate limit error.(i.e. 3 hi…
@sujith For the first fetch we are getting the data for all the instruments.From second fetch onwards in the on_ticks we are not getting the fully subscribed instruments.For example if i subscribed for 200 instruments .In the first fetch we are ge…
@vivek ,@sujith I am using the code mention in the https://github.com/zerodhatech/pykiteconnect/blob/kite3/examples/threaded_ticker.py .still getting the error as twisted.internet.error.ReactorNotRestartable.Please help me.