Same. It is probably happening from past few days.
For me, kite.instruments() returns old instruments for NSE exchange (i don't know about other exchanges) like 70% of the time between 8-9 am
But kite.instruments(exchange="NSE") returns new instru…
Yeah, I was using kite.quote
My code only makes like 15 kite quote api requests per minute. (Not whole trading day, I also use websocket). But I made more requests today, because many failed. So it was just reattempt
I don't think you can replicat…
@rakeshr @sujith I got the same error today many times 50+ times.
Please try to fix it!
503 Service Unavailable
No server is available to handle this request.
@rakeshr @sujith
I got timed out error like 100+ times today in order placement, cancellation (roughly 10% order placement request failed)
{'status': 'error', 'message': 'Order request timed out. Please check the order book and confirm before plac…
@rakeshr It was not for all API requests. Many were successful also in first try.
I got this timeout error 3 times in fetching positions, 20+ times in fetching quote
I got this error 1 time while fetching holding, on retry it worked.
2 times while fetching positions, on 3rd retry it worked.
Time of error: Around 5:47 PM
Previously also I got it after the market close. Just mentioning here since this issue is …
Not getting this error anymore. I got this error on Sunday on stocks with "-BE" type category. Maybe the instruction_token was not updated.
Fixed, you can close this post now. Thank you
@rakeshr Can we get a feature that shows stock name + how many quantity exchange wants to buy in Auction, even if the stock is not in my holding right now?
Right now in order to do this, this is what I do:
1.) Buy 1 quantity of stocks that I sold…
@sujith Tested it on a illiquid script. Seems to work.
But I tried this earlier today, and as far as I remember, it increased the quantity by "original quantity + filled_quantity"
Is this a new update you guys made just now? Or it was like this be…
Exactly, I agree @prabhatmittal20 . Kite Team just makes the changes overnight without any announcement. It would be great, If you notify the users at least 24 hours before making the changes. 1 week would be better, but 24 hours is at least require…
I also got this error today. Saw it the first time. I got this error while fetching holdings. But on retry, i was able to fetch holdings without any error.
The moneycontrol article is vague on this. But the person (Dharrmik) who spoke to SEBI directly, says SEBI is planning to ban people who wrote their own code.
https://twitter.com/DharrmikThakker/status/1756344884988989618
I don’t see the logic and…
@sujith Please try to run this simple code once. It compares the timestamp of quote vs websocket, and quote wins everytime.
I am not updating a database, but updating a global variable. It is supposed to be equally fast or faster, I assume.
Not …
@sujith Can you also please check this once. Sorry to bother you.
Not sure, If the Kite team is interested in solving these discrepancies or not. If you guys are interested, please let me know, I will pin point more discrepancies. If not interest…
@MAG Hmmm, kinda. I have multiple scripts running, so yeah, making a lot of kite.quote API calls again and again. Is this the reason for the error? Is it related to IP address or Kite API? I mean, I have subscription to 7 Kite APIs, but only use 1 …
IOC gets cancelled automatically. You don't need to cancel it on your end. That's the whole concept of IOC.
More details here: What does Day, Immediate and Minutes Validity mean?
If the order is showing status of "Trigger pending" or "Open", tha…
Quote API. @sujith
My code froze for a few seconds because of this, which messed up a lot of things today.
Today, I added a timeout to the code (HTTP API). What value of timeout is good? I am using 0.8 seconds, but it also seems too much. Usually…
I am consistently getting this response when fetching prices at least one time between 09:15 to 09:16 in last 4-5 trading days. Please fix it @rakeshr @sujith
504 Gateway Time-out
The server didn't respond in time.
Same thing happening with AARTIPHARM. So is that something we need to handle ourself or your team will do something about it? Just asking? @rakeshr
Thank you
I changed my maximum batch size to 34 days to avoid this error since last few days.
Checked today, I am not getting this error anymore with same code. Looks like this issue is fixed now. @rakeshr
@rakeshr Are you able to reproduce this error?
It happens randomly and quite often, so if you try fetching 1 minute data of 60 day period, you should get this error.
There is no 35 day limit of any type. But I am getting this 35 day limit error m…
On sunday, I faced this error when I created this post (I can't see the time).
Today also faced this error at around 8:20 AM (04 Sept)
Yeah the limit is 60 days, but I am randomly getting this error in some requests, and they work when my code re-…
Do we still get one tick per second or there is an update @sujith ?
Also, since Kite.quote() is a snapshot of websocket data, does kite.quote() also update only 1 time every second?
Note: I successfully updated my data between 3:30 and 4:00. After that, I did not check if this error is still happening. I just wanted to bring this issue to the attention of the API team.
Also,
In the future, If I develop a trading strategy that may require me to place more than 3,000 orders on a regular basis. Is it possible to request Zerodha to raise the order limit for my account permanently to a higher limit like 5k-6k orders?
Thank you @sujith
Is there any way to check the number of orders I sent today via API or manually? Or we need to keep track of it from our end like everything else?
Also, how do I contact the RMS to increase the limit for some day? (I can find ca…
Questions:
1.) Is this limit per account or per API key
2.) If it is per account, can we place orders manually via Kite, If we hit 3000 order limit? If no, we can't do anything in account? Like exiting position?
3.) If I send a order via API, but…
Hello @rakeshr , could you please confirm if you have understood the point I am trying to convey? Kindly let me know if I have made any errors in my calculations. Thank you.
I understand this @rakeshr
I understand not all ticks can be captured in live data.
But here, wrong ticks are captured.
One day candle is 100% correct, right? Since it is provided by exchange based on all ticks.
So, how can the tick you capt…
@rakeshr The resolved tag got removed from here:
Also, I am facing this error in Python library, when fetching orders. Are both the issues connected?
NetworkException: Bad gateway
Edit: This issue is set to resolved again. So far not facing the…
If this cannot be solved before market opens tomorrow, can you please tell me ,what is the IP rate limit?
So I can start multiple GCP Instances and run code using multiple IP addresses to avoid the problem temporarily. @Vivek @rakeshr
Sorry to b…
Ohh @Vivek
I have messaged you the IP address.
I again got the same error, too many request. I am running the same code, that I have been since last few months. Did you add this IP limit recently? Can you please increase my IP limit today itself.…
But NSE Quote seems to be working now. So, I guess, the problem is solved.
I would like to know, why it happened and can it happen during market hours also?
Thank you
Oh, sorry to bother you. 1 last question. @rakeshr
Moneycontrol also shows a split of 1/5 on 04-06-2013
https://www.moneycontrol.com/company-facts/federalbank/splits/FB#FB
@rakeshr I think Federal Bank Historical data for date around 2013-08-01 might be wrong.
1D candle shows price around 170, while I think the actual price was somewhere near 30.
Can you please adjust it in your DB, if its wrong. Thanks
@rakeshr I think Kite team adjusts the price for Bonus issue, right? The day candle is adjusted for FederalBank but not minute candle.
Just letting you guys know, In my case, i will adjust it on my end.
And in case of FederalBank, the price sh…
@jahir The Google sheet is reliable 98% of the time. But sometimes, it shows a stock can be traded in MIS but in reality, we get blocked MIS error. Just letting you know.
Today, I got this error on 90% of my orders during the first minute, I tried placing 30-40 orders on 4 accounts, I was unable to see my holdings, positions on Kite web, nor place orders with success.
This error is getting worse day by day, please …
oh ok, so I should request support.zerodha.com team to implement the change in the OMS, right? OMS Is developed by Zerodha/Kite team?
Sorry, I confuse Kite API & Kite platform team sometimes. Thanks
Thank you @rakeshr , it really helps.
Can I request Zerodha/Kite team to implement a "maximum time" for the timeout issue, In case it happens again rarely?
So after waiting for X seconds, we can be assured, the order wont get placed and we place …
@prakash.jj I got the same error before few days, and order was placed after 32 seconds, so I am currently keeping a time of 60 seconds.
Last time, I placed so many unwanted orders, and took unwanted leverage because of this, be careful.
@rakeshr Sir any update on this issue?
I did this today:
hist_intra_candles = kite.historical_data(138444036,"2021-08-09 09:15:00","2021-08-09 15:30:00", "minute", continuous=False, oi=False)
According to the data returned
The closing price of …
Just mentioning, If it helps in solving this issue.
I got this timeout error again today in many orders, also got the error while fetching positions. So it is not just related to the order placement system, i guess.
Also, today I got two type of …
Also @sujith I get this error a lot of times during the first few minutes of market open Error HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
when using
kite.positions()
kite.holdings()
Please forward thi…
Thank you @sujith .
Do you have any suggestions on how should I handle this problem on my side?
I place a MIS order with SL & TR. So total 3 orders.
If the stop loss or target order do not get placed (due to error), what should I do? Shoul…
I am wondering, If I change line 37 here https://github.com/zerodha/pykiteconnect/blob/master/kiteconnect/connect.py
_default_timeout = 7 # In seconds
If I change it to, 60 seconds, will the API wait for 60 seconds before giving me this erro…
@sujith Sorry, I did not clarify. I got the timeout error, that's why the order did not get executed.
So, I called kite.place_order() and got error (Exception caught it, it was timeout error).
Now, I don't know order id, the order do not show …
@rakeshr From last few days, I did not get this error. But today, I got this error in 36 orders (Around 25% of the total orders I placed).
I cannot provide you order_id because I did not get one. Order never got executed.
Please, I request Zero…
Please also remember that Google colab can get disconnected anytime. You can buy Colab pro for 10$/month to reduce the chances of disconnection.
You can also use GCP, you will get 300$ credit on signup. You can run your code on the Mumbai server fo…
Thanks for the clarification.
It needs to be checked, what is happening.
Thank you, It would be good to see this issue resolved If it is in our hands. Please let us know If this issue gets solved or improved in the future. I understand, this issue c…
It is happening on all requests.
I noticed one thing, In your second request, the start date is "2010-04-14" and in my request, the start date is "2010-04-10".
When I change the start date to "2010-04-14" results are same for me also. Can you ple…
@sujith
What do you mean by "OMS"?
Today, I placed an order and at "09:20:01", I got read timeout error, and the order got placed at "09:20:39".
I checked the order history, " PUT ORDER REQ RECEIVED " was at "09:20:39", does this mean Kite re…
@sujith Can you please also have a look at this issue.
The timeout error happens a lot when the market opens. I am using Google Cloud Mumbai VM, so I think client side connection is good.
This seems like some issue due to overload on Zerodha ser…
@sujith Any plan to add this in API? Zerodha already displays the nudges, providing an API for it should not be much time-consuming. I request Team Zerodha to add this in the API.
Thank you
Thank you. In this list also I can see IDEA is allowed in CO, but IDEA was not allowed. I understand, it is updated manually, so sometimes the difference can occur.
But usually, are MIS and CO allowed stocks the same 99% of the time?
@rakeshr thanks a lot. I have one small question for which I cannot find the answer in the articles.
Does CO has more blocked stocks than MIS or they are the same? (Like some stocks are blocked for MIS/CO and are cash only due to high volatility)…
@rakeshr SIr,
Do you have a list of all the companies for which the data is adjusted with starting date? It would be really helpful. For now, I really cant figure out, what data to trust without checking everything manually.
Thank you @rakeshr
Prior to 2019, we haven't adjusted intraday data for all contracts,
In 2019 also, I can find some inconsistency
ABB on 2019-12-20
ALEMBICLTD on 2019-08-26
There is an issue, regarding un-adjusted data from some period around 2015. We are checking on this. Once adjusted you can fetch it from 2015 onwards. We will update here.
@rakeshr No, I mean, can you please tell me the date from which the data is…
Also noticed this:
"ABB" open price on 2019-12-20 (day candle) is 1324.
But in the minute candle, the price is 1456? Why is there such a big difference?
@rakeshr Sir,
According to day candle, the open price of PERSISTENT on 2015-03-09 was 937, but according to the minute candle, the open price was 1872.05 at 9:15.
Why is there a difference? The day candle price is correct, but the minute candle pr…
@rakeshr Thank you so much. Yes, I meant the day candle. Just to be sure, the volume is also accurate?
And is there any way to get data before 2000 that is consistent with Zerodha's data? Thank you.