Hi @Shabeershah2002 -- there is no additional payment for the full stream. It's bundled.
Please share the bits of your code that deal with subscription and mode change. Hard to guess what could be going wrong without seeing the code.
That's correct, @kumar_krishnan. Another order placement (transaction_type=SELL).
PS: This is to sell positions you've bought. If your BUY order is open and pending execution, you should modify/cancel it.
Break in long standing TCP connections over the internet could be caused by numerous issues. Every such client should build in some sort of an auto-reconnect / recovery mechanism. If you use our Python Kite Connect client's built in WS class, it has…
@KUL This query has already been answered here and elsewhere -- https://kite.trade/forum/discussion/184/sl-and-sl-m-orders#latest
What are the BSE instruments you're referring to? Either way, we're not going to be able to amend market protection pa…
RMS = Risk Management System. It's Zerodha's. It may incorporate Zerodha's own risk rules and/or exchange's rules.
@hanan Could you please shed some light on this?
Ah, I'm afraid that would not be possible. Kite Connect is a pure HTTP API and there is no concept of charts. Kite, the web app, does not support custom indicators.
@Jilani Need a little more time ;( We have client libraries in multiple languages in the pipeline. Could you give the Python WebSocket library a shot for the time being?
@sekharrockz Sorry, I somehow missed your previous query. For full / quote modes, we've noticed that cached values are sent multiple times during off market hours. We'll be fixing this behaviour shortly.
@saurabh.bhumkar Check out the demo here -- https://kite.trade/publisher
You can embed buttons and render an offsite order basket, but there is no API access which is possible with publisher.
@RH1558 Please do not spam the forum by creating multiple threads asking the same question and private messaging the same thread to all the moderators. Create one thread and wait for a response.
@sudhirshettyk
The first flow is a 302 redirect as shown in the diagram. Quoting: "Authentication involves redirecting a user to the public Kite login endpoint https://kite.trade/connect/login?api_key=xxx."
The interface is popped when you initiat…
It's diverse and sparse. A bit of Googling will land you on interesting resources https://www.quora.com/What-is-the-best-way-to-do-Sentiment-Analysis-with-Python-1
@bluesk That's surprising. All our responses are UTF-8, but no response should have non ASCII characters. What is market_hash_name? Where are you getting it from?
There is no future contract called "INFY". Please read the documentation and refer to the /instruments call. For the JUN contract, it should be NIFTY16JUNFUT.
Even if your sendString() is wrong (it has to be valid JSON), the connection should still be established. When you do client.connect(), is it establishing the connection or is there an error? Also, are you getting the 1-byte/sec heartbeat?
Finally,…
There should be no issues in establishing a WS connection from http to https (unless it's a browser). Are you using the Python client library? What is "another domain" and what exactly is asking for an SSL cert?
@RH1558 BO is a multi legged order. When you place a BO, it generates multiple orders (stop loss etc.). The order ID that you get when you place the BO is the parent_order_id.
Once the first leg of the BO (the parent order) is executed, you'd obvio…
> Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 400 Bad Request',)
Looks like you're request is going through some sort of a proxy and that's failing? Did you try a CURL request from your system to see if it go…
1) @muke5hy It's per API.
2) For live data points (you can compute candles from ticks), you should use the WebSocket API.
3) We have close to a billion rows in the historical data store, so there's no easy way as of now. We're contemplating how to m…
We don't have a PHP WebSocket lib. You can however use the Python one, persist that data somewhere (a fast in-memory DB or something) and access it from your PHP code.
Connect is for personal use. If you create a Connect app, you can use the API to place/modify/cancel.
Publisher is for anyone to embed buttons on their websites.
@Vishwadeep This is documented in the pricing section on our homepage (kite.trade). 1 credit = 1 Rupee. You have to deposit credits in your developer account by going to the Billing page and use those credits to create the app.
Cancelling orders is not possible with Publisher. You have to get Connect for that.
Also, Publisher doesn't support BO/CO yet, but it'll happen in the near future.
The postback url you have registered looks like it's an HTML webpage. It should just be an endpoint that receives the raw POST body of an incoming request.
@chaudhariapurva That is correct. You should expect one (1-byte) heart beat per second. If you haven't received any packets in say 5 seconds, you should assume your connection is gone.
@pankajiit_cse If you are consistently getting this error, that means you are sending more than 60 requests per minute. The historical API is not meant to be polled every second. How many requests are you sending?
PS: For live data, you should use …
ClientNetworkException means your system was unable to reach https://api.kite.trade. This could be a network/proxy issue. We have no recorded or reported downtime on api.kite.trade.
Can you try sending CURL requests to see if they are going through?
@dhavalp Secret 2FA questions are mandated by the exchanges + SEBI. We cannot override them.
Please e-mail [email protected] to get your password reset or account unblocked.
The redirect happens because the login is successful.
You're getting an error because 127.0.0.1 is your local system's IP and you are not running a web server on it. You can simply copy the request_token from the URL and use it with the API.
2) Yes.
3) For F&O, it's just the expiry period. If you have the instrument_token for older expiries, you should be able to pull the data (unfortunately, we don't have the old instrument_tokens exposed via the APIs).
Logically, this looks correct. Any API related error should come back with a JSON response (including an error message). If you're not getting a JSON response, the POST request you making may be problematic in itself.
@[email protected] The request_token is short lived. Once you get it, you immediately have to use it for the token exchange to get the access_token. Then on, you use the access_token for all other requests.
Once you get the access_token, the …
@[email protected] The request_token is short live. Once you get it, you immediately have to use it for the token exchange to get the access_token. Then on, you use the access_token for all other requests.
Once you get the access_token, the r…
@[email protected] this is not correct. The login url is meant to be opened in a browser or a webview. You are sending a GET request using an HTTP client.
@jitendra I copy-pasted your code snippet and tested and it worked without any change. The only thing I did was insert my api_key, secret_key and remove the checksum line (as you don't need to compute the checksum yourself).
Please make sure you've…
It looks correct, but you are placing a regular order, so the BO parameters won't work. If you want to place a BO, the request has to be POSTed to /orders/bo
Hi Ishwar,
That's how the login is intended to work. When you invalidate a token, only your app's session is cleared. You cannot logout the user from the main portal, kite.zerodha.com (this is similar to the Google / Facebook account login flow).
@muke5hy @gully Version 3.0 of the API with the WebSocket class is out.
@gully we have test cases in our local branches, but just been short of time to clean them up and publish, especially cleaning up the non-public routines. If you're writing tes…
Hi @suraj
1) "Gateway timed out" means your Python client was not able to connect to our API server. It could've been a DNS issue, a network issue, or downtime at our end. The APIs are distributed across 2 different data centres, and there has been…