@sumanthb OI data updates every 3 minutes only on brokers and other free third party apps . If you want fast updates,you have to subscribe to registered data vendors,some claim to update near realtime. Though I have never tried any of them. So,no r…
Are you fetching instruments file multiple times without delay??
Instruments dump is a very large file. The instruments api shouldn't be polled continuously.
It only updates once in the morning every trading day.
So ,you can just fetch it o…
You can understand login flow here:
https://kite.trade/docs/connect/v3/user/
Refer the python documentation here:
https://github.com/zerodha/pykiteconnect
This means you are using invalid api_key or access token.
You can know http error codes here:
https://kite.trade/docs/connect/v3/exceptions/#common-http-error-codes
Maybe this can help:
https://github.com/zerodha/javakiteconnect/blob/3a35d18b56275cffdfe4a55324c1abd75eae40ee/kiteconnect/src/com/zerodhatech/kiteconnect/KiteConnect.java#L10
https://github.com/zerodha/javakiteconnect/blob/3a35d18b56275cffdfe…
You can get instrument tokens from the instrument dump.
https://kite.trade/docs/connect/v3/market-quotes/#instruments
Download it every trading day and store in your database.
I have already told how to get historical candles in the above comment.
You can know in detail about javakiteconnect here:
https://github.com/zerodha/javakiteconnect
You can learn login process here:
https://kite.trade/docs/connect/v3/user/
For candles,
https://kite.trade/docs/connect/v3/historical/
You can also use Websocket and generate live candles at your end:
https://kite.trade/docs/connect/…
You can fetch ohlc quote after 9:08 AM for equity and 9:15 AM for derivatives. For equity,you can even fetch just ltp after 9:08 but before 9:15.
https://kite.trade/docs/connect/v3/market-quotes/#retrieving-ohlc-quotes
You can read about the exchange changing in the holdings:
https://support.zerodha.com/category/trading-and-markets/kite-web-and-mobile/holdings/articles/default-exchange-on-kite
That's weird. I have never encountered this problem. You are passing the quantity manually,right?? Are you sure,you didn't put 500 as the qty accidentally in the sell order? If you are sure,there wasn't any mistake from your side,seek help from Suj…
Also,I have a a doubt, @sujith Sir , @rakeshr Sir:
How is the above gtt order being accepted?? The product is NRML,on equity. Shouldn't it be rejected? What will happen when the gtt will be triggered? This is happening only for gtt orders,norm…
If you are using BUY OCO,that means you must be on short side. So,naturally,your stoploss would be 17 and target will be 13.
If you want stoploss as 13 ,and target at 17 ,you have to use sell OCO. And,of course,you must be long on the instrume…
You can get all the orders etc. from KiteConnect. Only for postbacks, it's a little bit different. You can read here:
https://kite.trade/forum/discussion/6863/kiteconnect-postback-queries
The opening price is not decided by the first tick at 9:15 . Its decided at 9:08 AM. Initially, what happened is just like you captured the 1st tick at 832.3, historical data api did the same and showed opening at 832.3 . After a while,the opening o…
Exchange mandates the user to login manually once a day. You can login once in the morning,get access token and use it for all subsequent requests throughout the day.
ISIN number is same for NSE/BSE. You can get isin number from holdings api.
https://kite.trade/docs/connect/v3/portfolio/#response-attributes
For isin of instruments not in your portfolio,you can download csv from here and lookup for isin nu…
You can understand about slight differences between different platforms here:
https://tradingqna.com/t/why-does-the-same-technical-charts-for-the-same-stock-from-nse-tame-google-finance-yahoo-finance-amibroker-not-match/1688
Instruments dump is a very large file. The instruments api shouldn't be polled continuously.
It only updates once in the morning every trading day.
So ,you can just fetch it once/day and store in your database for that trading day.
I don't get what you mean by lagging with close value. Explain.
You can read here about the structure of response of historical data api.
https://kite.trade/docs/connect/v3/historical/
KiteConnect Historical data,infact all the APIs and the kite APIs both have same backend. You get the same data in KiteConnect what you see in kite web/app.
There is no guarantee that limit orders will be completely filled. There might not be enough liquidity for 550 qty at your limit price. So,only 150 qty could be filled.
You can't place orders if you don't have totp enabled. As it is mandatory to place orders on third party apps. However,you can use all other features of KiteConnect APIs even if you you don't use totp.
A request token is valid only for a few minutes. After that, it expires. You have to enter request token and api_secret in the generate session function and retrieve the access_token from the response. And use that access token for the whole day. Y…
You don't need to generate a new request token everytime you make a request. You can generate request token once every day,use that to generate access token,and save the access token in your database. This access token is valid for one whole day. U…
@AAAAAAAAAA ,
This really looks like your local error . If there was any problem with the positions api,the forum would have been flooded with queries about the api.
There are only 2 ways to solve your problem:
1. Use try-except block to han…
We don't provide support for programming. This forum is purely dedicated to KiteConnect APIs. And,I can see,that you fetched the quote in your attached image in python only. So,you can find your answer yourself if you try little bit.
You can refe…
To get the quote for any instrument,pass exchange:tradingsymbol combination as argument in quote function. You can learn about market quotes here:
https://kite.trade/docs/connect/v3/market-quotes/#market-quotes
You can also use Websocket if you …
You get tick a only whenever there is a change in any of the tick fields. There is no limitation on the number of ticks by KiteConnect. KiteConnect just relays whatever they get from the exchange without any modifications.
The basket margins api has 2 fields initial and final. The total key in those fields indicates the required margin. Like,in your case,
initial-2321485.04
final-1887931.0899999999
This is not related to KiteConnect APIs. Please don't post about other queries here. For now,
I don't know how it's happening,when I tried with talib/pandas talib,the indicator values were matching with kite. But I was using KiteConnect historical…
I checked today too. Recorded the volumes shown in kite at 3:30 for some equities and derivatives,matched with the volumes at 5 pm,and bhavcopy. The volumes for derivatives was unchanged in all the 3 cases. Only the equities volumes were increased l…
Api secret is not available with kite publisher as it's just a tool for order placement. For full fledged KiteConnect trading APIs,you have to make a KiteConnect app by paying 2000 rupees/month.
You can get all instrument tokens from this api.
https://api.kite.trade/instruments
For specific segment add the segment name as suffix ,like for NSE:
https://api.kite.trade/instruments/NSE
Actually, this is a problem in some instruments. I saw this post too few months before.
https://kite.trade/forum/discussion/9842/volume-data-inconsistent/p1
Not sure,but I guess there was some error at zerodha on 26 may 2021 which caused this …
@sujith Sir. Here it's told that there won't be any change in volume,only oi changes. This seems logical too,as the volume shouldn't change even if trades are done by CMs . But the change in oi at EOD seems logical.
https://tradingqna.com/t/is…
TOTP is mandatory to place orders from third-party apps. You can know how to setup TOTP here:
https://support.zerodha.com/category/your-zerodha-account/login-credentials/login-credentials-of-trading-platforms/articles/time-based-otp-setup-mobile-…
Insufficient margin will only show if you are having hedged positions utilising margin benefit. You only get margin benefit when the positions have same product. Let's say you have bought 1 future lot+1 lot put option,both MIS . You are getting marg…
The error says bad input. That means one of your given parameters was incorrect. I guess your quantity was wrong. It might be that you are trying to convert quantity which you don't have. What is the value of this PQty variable? Paste your full posi…
Hey,you can see the purchase date like shown here! Sorry for my previous comment.
https://tradingqna.com/t/how-to-know-the-buying-date-of-a-stocks/21789/8
These other two are spread contracts. Kite doesn't support trading in spread contracts. We have asked the team to remove this. In the meanwhile you can skip these spread contracts.
@DJ_Jain It is just a python package which uses KiteTicker(Websocket) to fetch data and build option chain. Is there a problem with KiteTicker?? If yes,you can post on this forum.
But your problem is not related to KiteTicker. Then,why are you as…
You can the meaning of fields in the holdings response here:
https://kite.trade/docs/connect/v3/portfolio/#response-attributes
For purchase date:
https://support.zerodha.com/category/console/reports/other-queries/articles/where-can-i-see…
Yes,the volume is correct always. Also,your problem was related to actual closing price. If you need just equities data, what you can do is fetch quote after market as you normally do. For the actual close price,know that the actual closing price is…
This shouldn't happen.
Check if you have entered the correct client id in the app details on developer console. Also,check if you are using the correct api_key.
April future contract started trading from 28 Jan. You have to use pass continuous=True for expired future contracts data. Also, continuous data is only available in daily candles.
You can get the instrument tokens from the instrument dump. The dump only has instrument tokens for live contracts, and not expired contracts.
https://kite.trade/docs/connect/v3/market-quotes/#instruments
https://kite.trade/forum/discussion/9620/error-10061-connecting-to-localhost-6379/p1
Please don't post about issues/queries not related to KiteConnect APIs on this forum.
It won't expire, rather it will be paused. When you renew your base subscription, historical data add-on will again become active and continue for the number of days remaining in historical data subscription when the base subscription expired.
The exception you are getting is not an exception from kite. It's actually requests exception. You can search on how to use try-except block in python on internet.
Check if you are crossing the rate limits. Quote APIs have rate limit of 1r/s.
If not,it might be some network error.
Just use try-except block to handle the exception.
You can use margins api for any order or list of orders,they are not related to open orders/positions. However,you can use consider_positions parameter to include your current positions in the basket margins calculation.
Read in detail here:.http…