Hi @Santosh,
Candle data is updated after the minute is complete.
If you are providing charts on your platform then make a request when the screen is opened and you will have to keep updating the last candle using tick data.
You can make a maximum…
Hi @beagle1977365,
All the above scrips are called indices. You can't trade indices whereas you can trade derivatives of indices.
If there are no trades happening on a scrip then you won't get volume traded.
Hi @Pandiyaraj,
The scrip you are trying is not being traded. Hence there are no ticks. I would suggest trying some liquid scrip. You can check crude oil or Gold for now.
Hi @Pandiyaraj,
Getting 1byte is not a bug. It is heartbeat tick. You will keep getting 1-byte ticks even if you don't subscribe for any token. It is the basic behavior of websockets.
The reason you are not getting ticks is that you are sending tok…
Hi @krisys,
Exchange keeps moving scrips from EQ to BL, BE series in order to curb volatility.
BL, BE series are T2T segments which means intra-day trades are not allowed on these scrips.
You can only place delivery orders on that.
Hi @Prathap,
It doesn't have to match exactly because both have different sources. With the current infrastructure in India, it is not possible for any platform to capture all ticks unless you have colo setup at the exchange.
Please check out this …
Hi @Santosh,
You can use 60minute for 1hr candle.
You can construct 4hour candle using 1hr candles, open will be open of the first candle and close will be close of the last candle, high will be highest of all four highs and low will be lowest of al…
Hi @mastertrader21,
1) If I place orders via inhouse trading software like Pi or third party portals like smallcase or opentrade. Will i be able to retrieve those trade & receive them on real-time basis via API and consume in my in-house applica…
Hi @alokrm,
There was some permission issue. We have revoked it. Can you check now?
PS: Please don't put you app specific details on forum threads. If you have to post app specific details then use private message feature on this forum.
Hi @sun04,
Please refer this thread https://kite.trade/forum/discussion/1679/how-can-i-use-kitesdk-in-spring-application-to-trade-with-zerodha#latest for answer.
Hi @malay,
Historical API fetch is currently based on instrument tokens. Exchange reuses a token once contract expires. Soon we will provide historical data for expired F&O contracts.
Websocket will always give you day's data for OHLC.
I am afraid we can't provide minute level data there.
Live market data is published by exchange and we just send it to users.
Hi @malay,
Websocket must always run on a separate dedicated thread. The only task of that thread must be receiving ticks. Once you get tick do your calculations and IO operations like writing to DB in a new thread.
I hope that will solve your i…
Hi @naz,
XT series on BSE are always T2T segment scrips.
It is done by exchanges and there can be many scrips which are moved from A or B series to XT series and as a broker, we don't get notified about this. As of now, there is no way for us to tra…
Hi @qtrader,
You can use historical data API and you can check out python documentation here.
You need to have Historical data subscription to use this.
Hi @suyashb,
It is updated every morning. There usually isn't any change unless there could be a volatility in the markets and our RMS Team decides to update the list with that scrip.
Hi @Pandiyaraj,
You keep getting heartbeat tick which will be zero bytes. You can ignore that.
For this token 19016706, you won't get ticks as it is not being traded as of now.
For 408065, you can expect a maximum of one tick per second.
Hi @Pushwinder,
If you log into any of the trading platforms like Pi or NEST then you will be logged out of current session. I would suggest using Kite for monitoring purpose.
Please note that if you log out of Kite, you are logged out everywhere.
Hi @pranksterguru,
We have frozen development of new features till revamp of core APIs. It is on our list, we will add it according to the priority of the features.
Hi @nvineeth,
1. On public holidays and Sat/Sun, will we have to place AMOs throughout the day?
Yes, you can place AMOs on weekends throughout the day.
2. What happens on Saturdays when there is mock trading on Exchanges?
You can trade on the mock t…
Hi @jaffar,
As Kailash mentioned, we don't recommend automating login.
it is mandatory by the exchange that a trader has to log in manually at least once a day.
Hi @vvijay,
We will add it to our list.
We will provide it in next version of websockets if it is available at the source.
Right now we have frozen developing new features as we are working on revamp of core apis.
Hi @manjeet.imaniac,
This forum is dedicated only for Kite Connect related queries. Please write to support(at)zerodha.com, someone from our team will get in touch with you.
Hi @traderx,
Please ignore the above comment.
If you request for 15 min candle at 10:07 AM then API will give you data with the last candle of time interval 10:00 AM to 10:15 AM. Since 10:15 AM has not lapsed. The last candle is constructed with th…
Hi @Pushwinder,
An access token is valid for one trading session. If you log in today, then the session is valid until next day morning.
All access tokens are flushed before 8:30 AM.
Hi @nvineeth,
1. What should the order variety be while placing orders between 9:00 to 9:15 am and 3:30 to 4:00 pm
For equity segment, you can place normal orders from 9:00 AM. All AMOs for equity will be rejected after 9:00 AM.
Currency segments st…
Hi @apind81,
I am not sure if request reached the server or not.
If this is happening today, can you let us know the time and private message your api_key?
@pinkpanther,
Just make sure you are not blocking the thread on which ticks are coming.
I am sorry we can't modify javakiteconnect. It is an open source project you can clone and make changes and use it.
@pinkpanther,
Websocket disconnection can be happening because of many reasons like abrupt changes in network or drop in internet connection.
The same websocket is being used by all our platforms which serve 3 lakh users and we haven't come across …
Hi @pinkpanther,
It is still a better solution than calling connect inside disconnect. In your solution, you are relying on disconnect. The thing is disconnect is not at all triggered for around 30 seconds or more than that when there is abrupt netw…
Hi @pinkpanther,
I would suggest using our reconnect feature provided by new beta pykiteconnect version as connect inside disconnect is not a reliable way for reconnection.
You can check out this thread for more information.
Hi @bdvk,
As we have mentioned on other threads, users can expect a maximum of one tick per second.
We have been working on revamp of core APIs from past several months.
In next version of websockets, we will increase the frequency of ticks.
Hi @[email protected],
It is not necessary that order has to executed to update market depth. You can see your bid or ask even when your order is in pending state.
Hi @aaflex,
Every request is being authenticated using access token, you will get that using request token.
You can get request token by logging into you Zerodha account.
You can check documentation for complete login flow.
https://kite.tra…
Hi @beagle1977365,
Historical data is an add-on subscription, it doesn't include in the base subscription. you will have to go to developer console and subscribe for it.
It will cost you Rs 2000 p/m.
Hi,
If you are modifying partially filled order's quantity then you are modifying overall quantity.
If you modify quantity more than total order quantity then your order will be canceled.
Consider a scenario wherein you placed an order for quantity …
Hi @[email protected],
In the current setup, you won't get postbacks for order modification.
You will only get postback, if the order is completed, rejected or canceled.
Hi @jayant.jain135,
You can fetch historical data for indices and equity but for futures and options, you will not get data for expired contracts as historical data fetch is based on instrument token.
Instrument tokens are reused by exchange after e…
Yes, multithreading is the correct solution. Writing to DB is an IO operation, IO operations are always expensive. It will block available resources. I would recommend not to do that in Websockets streaming thread. In OnTick create a thread and pass…
Hi @amoldadas,
It is mandatory by the exchange that a trader has to manually login at least once a day. We don't recommend automating login.
You will have to get login URL and paste it in the browser or open in webview and after manual login user w…
Hi @cjsekhar,
Don't block websockets streaming thread, you will loose data. Never do computation on the thread you receive streaming data. Every time you receive the tick, pass it on to some other thread for computations.
Hi @ashwinjain1,
Orders can have a validity of DAY or IOC. We will update documentation.
'amo' is a variety. If you want to place after market order you need to send variety as 'amo'.
Check out the example for placing order here. It has an example f…
Hi @suyashb,
Postback seems to be working fine for your app. We have 200 statuses in logs.
@shubham.91,
Can you private message your api_key we will check and get back to you.
Hi @haribabu,
Revamp of core APIs is a bigger than any of our projects. It has a lot of external dependencies. It has to be rigorously tested. If anything goes wrong then you may end up loosing order placed, an order might be placed but positions …
Hi @MohitGowda,
Source for ticker data is exactly same for Kite Android and Kite Connect. Make sure not to do any computations in onTick method and don't block it while writing to DB also. Websocket should be independent thread whose only job shou…
Hi @adityanjoshi,
We are working on our new backoffice, once it is up all these data issues will be gone.
We had fixed this issue yesterday. If you are still facing this issue kindly let us know, we will check and get back to you.
Hi @Pushwinder,
When the connection is off websocket error or disconnect is not called immediately. It may sometimes take more than a minute to trigger events. Our approach is based on the basic behavior of websockets. When the connection is on it w…
Hi @krisys, @muralilg,
We have located the issue we are working on it.
@suyashb,
Seems to be SSL issue. I think you are using a self-signed certificate. I would suggest you check out letsencrypt or cloudflare.