@sujith I understand what's the solution. My question was more to validate if this was due to the recent changes of disabling of simultaneous sessions as per exchange regulations. I had not noticed this behaviour in my last 2 years of using Kite con…
Volume color is not related to price candle color. If the candle close is higher than previous candle close, volume will be green, even though the price candle could be red. Thats what happened here.
Yes, it can be. Kite connect will just give you the ticks. You will need to create the 1 hour candles at your end. Or if you a have a historical data subscription, you could chose to get 15 minutes candles and build the 1 hour candle from those 15 m…
The "volume" field that comes with every tick is the aggregated volume for that day till the point of time represented by the tick. Will suggest not to create any logic based on Qty as if you miss any tick (which you will), the calculations will go …
The user object being returned after session creation is missing "Products", "Exchanges", "OrderTypes" collection and hence generating a parsing exception.
While the official library is pending to be updated by Zerodha, I have made the below chang…
Volume in tick would be the daily volume of the instrument. Its not specific to that tick or minute. Its a cumulative volume till that time of the day as represented by the tick.
When you receive the first tick of the minute, you should set your l…
If you are looking for all scripts, refer to bhavcopy file from NSE here by selecting the date for which you want to extract.
https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm
@manzoor1990 you need to use the kite APIs to write code to execute the auto buy/sell. Pinescript cannot be ported to any of official language libraries supporting Kite connect. So whichever langugae you chose to code using kite APIs, you need to fi…
As Rakesh mentioned, you can use the continuous feature. But I am guessing you need minute data. Let me know via PM what you need and I will share you some options.
It depends on your strategy and combination of parameters. Here are some things that influence the speed:
1) Your data source location - over internet will be increasing speed. On your local machine it would be faster
2) The indicators that you appl…
You will have to calculate the percentage from the full market quote. This gives you absolute open interest, from which you need to take previous days and or any previous minutes's and then calculate percentage.
Check the response attributes here
If you need to call that many instruments with the throughput that you are expecting, I am assuming you are using it for live(actual trading) or forward testing. In that case, historical data is not the way to go. When your application comes up, let…
@babaramdev yes its possible using any API based platform. But you need to write custom code for generating the 1 hour candle as well as the EMAs. Kite connect will not provide you with that. Historical api from Kite connect will provide you the des…
Yes you can use this via Zerodha API. 2 things you have to remember though:
1) You have to login everyday using 2FA into your Zerodha account, get the access token and use the API for the day using the access token. This is as per exchange guideline…
If you are using KiteConnect official C# library, its already there:
private void _onConnect()
{
// Reset timer and retry counts and resubscribe to tokens.
_retryCount = 0;
_timerTick = _interval;
…
You need to maintain a local datastructure of your subscriptions.
e.g after the below lines:
ticker.subscribe([53429767]);
ticker.setMode(ticker.modeFull, [53429767]);
you can add the subscription to your local datastructure
allSubscriptions.Add(53…
You would have to write your own code. The way in live stream would be to subscribe to web sockets, get the LTP, build your candle and when the minute gets over, send it to a calculator code that would calculate the EMA for that minute. If you need …
@ramatius as I mentioning, pls check the chart in Zerodha for scripts where you think there is a problem. If for that minute in the chart there is a bar formed, you should also have a data in historical. If there is no bar and just a line showing vo…
Lot of times for low volatile script, no trade happens over a minute. In those instances, you will not see any data for that minute in historical data. However, if you see the data on the chart and historical does'nt show any data, then we have an i…
If you need minute level data, there are various external providers who can give the same at a cost. I have also built a database and can give you DB access.
Why do you want to create a websocket client? The ticker is already inbuilt with a websocket. You just need to connect to the ticker and subscribe an instrument token to it. Then handle the tickreceived event to get the tick and take it forward from…
None that I am aware of though the sandbox discussion is going on for quite some time.
What I do is write code, have stubs in place of the actual APIs, pretest all conditions that lead to the trigger of these stubs, and then when I am satisfied all…
Update from Zerodha in Bulletin
Issue with Kite
Due to a connectivity issue, you may face an issue with logging into Kite. We are looking into this and should have this resolved shortly. You can login to Pi or call us or write to us on support@zerod…
@naz The days difference between 28-Jan and 27-Feb is 31 days and this includes both the days. You have to count both the days and additional 31st day of Jan in your count. Here is the count:
28/01/18 1
29/01/18 2
30/01/18 3
31/01/18 4
01/02/18 5
0…
Just to clarify further, just try making a raw call to websocket connect. Steps to simulate:
1) Open a new Visual Studio project - any language - C# or .Net (console or windows forms)
2) Make sure the programs compilation option is x64 and not Any C…
Hi @tonystark
Its not a proxy I am behind. Neither am I behind any http sniffers. If it was so, the C# code in the sample project from your library would have given the same problem too.
The sample project from the .Net library works fine as the…
Found the issue @sujith , @tonystark
The compilation target of the project if set to x64 causes this issue. The KiteConnect libraries are compiled under AnyCPU. If we change it x64, we will get the error in the library also.
Why this should be so?…
Hi @sujith
Posed this question for Kailash in the above thread. While I am still awaiting for his response, thought you could help answer too. Is BO/CO order SL based entries available on MCX segment in the Kite connect 3.0. If not, any timefr…
1) I think you should write to local memory based dictionary and take the dictionary at EOD to SQL. That is ofcourse if your RAM and/or virtual memory configuration can hold the datastructure of your instruments in memory.
2) BO with trigger, I am …
Hi @varaprasady,
No additional usage charges are attached to Kite Connect other than the monthly fee. Its flat 2000/- per month. But there are throttling implemented to curtail abuse and right now it stands at 3 http requests per second across all …
Hi @vardhan36397
There is no way for multiple instruments historical data in one HTTP call. I am not sure if in 3.0 there will be, but currently no.
Per subscription, per second, its 3 HTTP requests throttling. If you have to increase this, you ne…
@Sujit, thanks for the listed options. 1) anyway depends on the strategy, so different users will have different view point. For 2) candle building from web sockets will also not be accurate as during polling of a volatile instrument, there are chan…
@Kailash For 3.0 access, we understand the header needs to be changed for HTTP requests. However, how about web sockets? How do we subscribe to an instrument over websockets for version 3.0?
Yes, thats going to be extremely useful. We lack C# library unlike Python and Java. Hence if someone can post a code starting from authentication, getting token, using the same to make a subscription and then receiving and parsing a full mode quote,…