It is what it is,you will get tick for instruments where any of the fields change. KiteConnect just relays whatever they get from the exchange,no modification.
You are doing it wrong. Its not Tick.getTickTimestamp(), ticks.get(0).getTickTimestamp(). The ticks received is a list of all the tick of individual instruments. So you have to specify the index and then use getTickTimestamp() or whatever field you…
https://kite.trade/forum/discussion/6632/not-getting-prices-from-every-tick
For which tokens,tick timestamp and ltt are null? Can you give a few examples?
You can get the last cached tick if you use websocket after market hours. For regular streaming,you have to test during market hours as websocket is realtime streaming.
https://tradingqna.com/t/is-the-live-open-interest-oi-data-being-provided-by-exchanges-correct/7208 .Sensibull might be fetching oi data from NSE website directly. About the NSE site,the oi is in lots instead of total quantity as shown in Zerodha or…
Yes, it's even written on y-axis of both screenshots. Also,you can see that the oi in first screenshot is sometimes negative which means that's it's actually the oi change as oi can never be negative.
Your query was already answered here about the naming convention of options. Read the thread i shared properly:
https://kite.trade/forum/discussion/11121/finding-trading-symbol-without-downloading-entire-instrument-list#latest
No,Zerodha provides only raw data. If you want any indicators,you will have to calculate them yourselves. If you use python,use talib or pandas talib libraries.
@97srinidhi No, it's better to use websocket. You will get an update whenever order status changes automatically. No need to check order status every second.
Redirect url is mandatory beacuse exchange makes it mandatory for a user to login manually once each day. That's why user Authorization grant flow is used. You can login once at beginning of day,and then do whatever you want.
Oh yes,sorry my bad,the v4 has these new fields last_traded_quantity,volume_traded,average_traded_price. The 3.9 version has last quantity,volume, average_price. I told you the opposite. You can see here,
https://github.com/zerodha/pykiteconnec…
Actually,the last quantity,volume, average_price terms are from the newer versions. Check the version of pykiteconnect you installed where it shows last_traded_quantity,volume_traded,average_traded_price etc. You might be using some old version.
Where do you see KiteTicker(api_key,api_secret) in the sample code?? It's clearly mentioned in the documentation that it's KiteTicker(api_key,access_token).
https://github.com/zerodha/pykiteconnect
You don't need to use continuous data for equities. It's only to get expired futures day candles. For equities you can ignore continuous parameter. For day candles,the maximum interval is 2000 days.
Kite publisher is only to place orders. Whereas KiteConnect are set of APIs for everything you need to do in stock market,place orders,stream live data,access to historical data and much more. Kite publisher is free whereas KiteConnect is 2000/month…
@yoursvsr Kite stores data in minute candles,all higher timeframes are made by grouping the minute candles. So to get 9:40 candle,your from would be 9:40 and to will be 9:44. If you pass to as 9:45 at 9:46,the response will have 2 candles,one the c…
This forum is dedicated to KiteConnect APIs. Please don't write about queries not related to KiteConnect here. For that you can write to support:
https://support.zerodha.com/
or tradingqna:
https://tradingqna.com/
For now,this might help.…
You don't need to do that,if you use the pre-built libraries. The generate_session method does it for you. Just pass request token and api_secret to generate session function. But if you are not using any pre-built library,you have to generate hash …
Using old versions and asking for help is not right. When you use latest versions and then you have a issue related to KiteConnect,you may post on this forum.
My advice is that you should get a good stable connection. I see all your posts are about connection issues. If you want to use api and especially websocket,a good stable connection is required.
https://kite.trade/forum/discussion/10846/few-token…
Are you actually passing the request token obtained from the url in the generate_session function?? Or are you literally passing the string "request_token_obtained" instead of the value of request token ??
Where do you see ltp and oi 0. My eyes can't see. You can read the description of each field in the quote response here:
https://kite.trade/docs/connect/v3/market-quotes/
Yes. It's because of the reason mentioned here:
https://support.zerodha.com/category/trading-and-markets/kite-web-and-mobile/articles/why-did-my-bank-nifty-option-order-get-rejected
@prasad_n_k I understand now where's the confusion. You are using cancel order with the order_id of the first leg order. You have to cancel order with the order_id of sl order. And,then place a reverse transaction type order.
Let's say your buy …
@prasad_n_k What? If both first leg and sl order were executed,then the position has already been closed,right?? First, clear,this,what do you mean by 'executed'? Order placed or order completed??
I don't understand what you are trying to do. How can you complete a order from your side?? It depends on the market conditions. As you said,you are using limit orders,then they will only be completed when market will come to that point.
Why you have to call cancel order to check completed status?? You have to call order_history or you can use websocket on_order_update. You are getting the exception because the first leg order would already have been completed. You will only need to…
First of all,holdings api or any api doesn't provide any different data than kite web/app. The holdings api will return the same what you see in kite web/app holdings section.So,this question has nothing to do with api . You can search or write for …
Is it happening only for order placing?? Are you trying to place order inside onTicks?? If yes,you shouldn't be doing that. No logic should be put inside onTicks thread. You have to pass the ticks to another thread to perform computations and place …
@prasad_n_k The first leg order can be market or limit whatever you want. Just make sure if you use limit order,the sl order should be placed once the first leg order is completed. The sl order will be SL or SLM and not LIMIT order.In that case,you…
@prasad_n_k Yeah,I also don't understand. Well,as for that matter, I don't understand any new rules in stock market after SEBI become a tyrant in 2020. We just have to accept.
@sujith Sir .Oh. I have been using the mobile app for sometime.It shows cover order. Just now,I went to desktop, and I came to know . It has been discontinued for NFO.
@prasad_n_k Then you have to go for the first method I told. Place a o…
You can't directly place a mis order with stoploss. You have to place an order and then place a corresponding sl order. Or best,use cover order to place an order with a sl order.
You can refer the C# documentation here:
https://github.com/zerodh…
This delay is normal. It might be that the first order was placed at almost the end lf the second,and the second order was placed at the next second. Or the second order was placed at barely the end of the second. In that case,sometimes zerodha roun…
No computation should be done inside on_ticks.
https://kite.trade/forum/discussion/7399/kiteconnect-ticker-connection-error-1006-connection-was-closed-uncleanly-none
This forum is dedicated to KiteConnect APIs. Please don't write about any other topic here. For now, -H is header,and -d is data as you send in a POST request.
Look,first of all,know this that KiteConnect doesn't provide any data different than kite web/app. It's the same data but programatically. If you have ever traded with any broker you will know,that almost all the other data except OI is updated almo…
@vaibhavsharma13 Market quotes are realtime snapshot data,which means you will get data at the time of your request. If you want continuous data,then just use websocket. From websocket,you will recieve a tick whenever there is a change in any of the…
You can use market quotes for snapshot data or websocket for live streaming realtime data. OI,Volume are sent as a field in the response. COI,IV etc.have to be calculated by you at your end from the data. You can read in detail about quotes and webs…