Hello Kiran,
Kite (web) is a proprietary, flagship trading platform. There are no provisions to customize the UI out of the box, like most web apps (Facebook, Gmail etc.).
However, with some programming knowledge, one could use Browser plugins like…
The WebSocket API acts as a relay for ticks that the exchange sends, with an LVC (last value cache) addon. So after market, the API would've cached the last packet sent by the exchange for a given instrument. When you connect after market, you'll re…
The header parameters are documented here -- https://kite.trade/docs/connect/v1/#retrieving-full-instrument-list
You can open the downloaded CSV including the first line (header) in Excel or Google docs to check out the headers.
Your redirect_url (website) can store the token and the Java app can communicate with it and fetch it.
But, the best way would be to open the login flow in a WebView in Java. redirect_url can be whatever. Your Java app can watch the WebView's URL a…
The structure is detailed here -- https://kite.trade/docs/connect/v1/#message-structure
Different languages have different ways of converting byte arrays to integers.
From example in the previous post:
First two bytes is the number of packets in…
Hi, looks like you created 2 accounts accidentally somehow. We've disabled the one with the pending app. The current account has the app and it's active. Please logout and login once.
Placing an order is a POST request, so you have to use a utility like cURL. If you append the params to the url, it becomes a GET request (which doesn't exist for the orders route, which is why you're getting the 404).
You will have to use the http…
Once the order is placed at the exchange, the execution is beyond the purview of API. Can you send an email to talk@rainmatter.com with the order ID of this particular order?
20 symbols on Kite web is a design decision. We already stream data to tens of thousands of clients on a daily basis. As usage grows, we'll add more provisions to scale. With the API, you can subscribe to 100 tokens.
1) Once you create a Connect App, historical data comes as an addon.
2) Historical data API calls are not in pykiteconnect yet (you can always make HTTP calls to ge the data though). We have an upcoming release this week which'll have these calls.
…
That's quite strange. I was trying to inspect events attached to elements on your page using the Chrome inspector, but it shows no events whatsoever, which is strange.
Here's a test page that replicates your page's functionality -- https://kite.tr…
1) Yes. You can setup a standalone Python webserver on 127.0.0.1 to which the redirect happens. This app can capture token_request from the URL parameters and pass to your app.
2) Trades can be placed completely programmatically.
3) Funds are deb…
Ah, if that's the case, you can set the redirect url to `https://127.0.0.1` (your localhost). When the login is done and the redirect happens, you can copy the request_token from the redirect url.
Then, you'll use the pykiteconnect library in your …
1) If you want to use the complete APIs, choose Kite Connect. Publisher is only for embedding buttons on webpages.
2) After the login prompt (like Facebook or Gmail logins), the API will redirect to this url you register. You'll have to have a doma…
These are not past trades but the sum of open buys and sells. Here's the excerpt from the exchange documentation.
TotalBuyQuantity This field contains the total quantity of buy orders in a security.
TotalSellQuantity This field contains the total q…
The `buy_quantity` and `sell_quantity` fields are what you're looking for. The `instruments` call has many other fields in addition to top 5 bid and asks.
Signup here to get your keys -- https://developers.kite.trade
Use the Kite Connect Python client in your Python app -- https://github.com/rainmattertech/pykiteconnect
Read the Kite Connect documentation to get the complete picture -- https://kite.…
I am afraid I can't commit to a timeline at this point. However, why can't you compute the brokerage at your end? Since we do (0.01% or Rs 20 flat, whichever is lower), it should actually be quite simple.
@jitendra If you have linked your Zerodha account for payments, can you make sure you have sufficient balance? (Please pm me your developer account's email id)
15 min candles, we should have data spanning at least one year. Although, please note th…
@bebhuvan You can stream data to users who are logged in via Kite Connect (Zerodha account holders), not the public. Public display of data outside of a broker's ecosystem is not permitted by the exchanges.
@sampath_topc Please email non-technical queries to talk@rainmatter.com
Yahoo Finance does not provide free financial data, and neither does it have a raw data API. Their data is usually accessed via undocumented APIs which is a violation of ToS.
1) Publisher is for embedding trade buttons on webpages. You will need a Kite Connect app to place orders programmatically.
2) You can either run an http server somewhere to capture the request_token or provide a dummy domain (like https://kite.tra…
@abhishek01 We're working on sourcing additional data and will try to make it happen as fast as possible. However, it's a bit difficult to commit to a timeline as of now.
This should not ideally happen, but there is a possibility that a stale session from kite.zerodha.com somehow pertained. Logging out/in should've fixed it. We'll investigate this.
It's an exchange requirement that the login has to happen manually o…
1) This is not normal behaviour. WebSocket starts ticking immediately when the market opens (subscribed tokens). You do not have to re-initiate the connection. When there are no ticks coming from the market, you get the last cached tick.
2) It's lo…
Hi, all values are INTs (prices in paise). There are no floats. You should read them as INTs and divide by 100 to get the price in float.
Can you try this please?
The INT prices are actually in paise. For currencies, you have to divide the number by 10000 (to get 4 decimal places) and for everything else, by 100.
I realise that this is not mentioned in the documentation. Just added.
1006 indicates abnormal closure. This could be due to network fluctuations and timeouts. Our logs for the day don't show any issues with the WebSocket server though.
To counter disconnections which is a problem with any long standing connection any…
@dhavalp These values are definitely not from the API. I believe you've cast the numbers incorrectly and they are overflowing, which is why you are seeing such large numbers.
We are aware of this issue and are working on bringing Pi into the Kite ecosystem, although this will take time.
That said, BO/CO are coming to Kite Web (end of this week).
{a: 'subscribe', v: ['full', [408065, 884737]]} is incorrect. To subscribe, it should be:
{a: 'subscribe', v: [408065, 884737]}
And yes, you need to subscribe first.
Hi, it was a caching anomaly. March contracts are now pruned.
The list does have a "name" field (only for equities) -- https://kite.trade/docs/connect/v1/#retrieving-full-instrument-list
We'll work on filtering instruments.
It's different for different instruments. Daily candles for equities stretch 5+ years back. Candles for F&O contracts are available throughout the period of their existence, i.e, ~3 months.
@kpskps That is binary data (Python's just showing it as hex). You'll have to parse the binary data into the structures described in the document.
That said, we're working on client libraries that you can just import and use. The Python and JS libr…
@pranksterguru When did you try this? For an hour or so past midnight, the OMS goes down for maintenance. We're working with the OMS vendor to reduce this window significantly.
Hi Ajay,
The WebSocket API is perfect for this. You can subscribe to any number of instruments and receive quotes every second.
We're building client libraries for easy integration of WebSockets. At least one library in one language will be out in …
1) Until you delete the token or logout from kite.zerodha.com
2) If neither is the case, tokens get flushed around 8:00 AM in the morning
We're working on making long standing tokens available.
You can use Publisher to show trade buttons beside your advisory (website, app etc.) that will let your subscribers execute trades with a couple clicks. This provides your users with a better user experience, and a broking revenue share for you.
Please refer to the code sample here. https://kite.trade/docs/connect/v1/#offsite-order-execution
The transaction_type is set to 'SELL'. That's all you need to do to short an instrument.