are you a developer with kiteconnect?
Yes, I'm.
If you are not, there's no point in commenting further.
You should avoid posting rigid personally addressed threads publically. Instead, you can DM us. Doesn't go along with the rules of a public foru…
There are a couple of observations, I can make from your above-posted image :
1. Your calculation of delay i.e local time w.r.t exchange timestamp is flawed as the exchange timestamp does not have ms precision.
2. If you refer to your local time yo…
Is 100 instruments high?
There is no fixed number to this. Depends on system config and other local factors. You will have to discover this by trial and error.
The latest version i.e v4.1.0 do support python 3.6. You can check out the supported python version here. Pandas and NumPy, are not required in the python kite connect package.
I got this error today while placing the sell order for my OPEN buy order for closing the trade
Were you trying to place an order post the auto-RMS square-off?
Can you paste debug log for this order request?
Should there be some multithreading or its fine.
Depends on your computation extensiveness. You can create a new thread for tick computation, but it won't be recommended for the higher number of instrument subscriptions.
While statement to keep the…
Your option b seems more apt to me as per your requirement. You can have the condition before placing GTT to check for current price/ltp w.r.t your desired stop loss and target price and place a counter market order for the same.
price movements ca…
a few of the limit orders are not completed
Didn't get you on this?
Do you mean, orders were not completed within the prescribed latency range or it was not completed at all with some reason?
This looks like an issue with OpenSSL for your operating system.
Can you try the solution given here?
If still facing the issue, paste here complete information about your O.S and py requests version.
Connection error: 1006 - connection was closed uncleanly (SSL error: unexpected eof while reading (in ))
Can you paste here the complete error trackback?
Is this exception coming only while placing an order in Websocket streaming? Once try debuggin…
When broker square off is initiated for MIS positions close to market close, does the resulting orders carry any special status by means of which we can identify that this is broker action ?
Yes, placed_by field in orderbook for such orders will men…
@AlgoTraderXYZ
You seem to have replied on multiple threads with the same query. We have removed all your duplicate responses. Please refrain from doing so in the future.
I have replied to your similar query here.
*edit: typo
Will that not generate hundreds of copies of on_ticks and helper_method functions every second as it continuously loops?
Yes, it will but it will be handled by the Python memory manager. It was a pseudo-code to illustrate the use of daemon thread, …
If it is not following API spec, it is a bug.
Response attributes data types in kite connect, represent the response data type made using base HTTP requests. And all our client libraries convert these timestamp fields( in orders, historical data API…
We just checked for the same basket param and it's coming fine.
{
"type": "equity",
"tradingsymbol": "TATASTEEL22JUL1100CE",
"exchange": "NFO",
"span": 110720.745,
"exposure": 38580.990000000005,
"option_premium": 0,
"add…
400 Bad request
Are you sure, you are passing kite.quote(list_of_instruments) list here of instruments in proper string format with proper comma separator?
Eg: list_of_instruments = ["NSE:SBIN", "BSE:ONGC", ....]
We are working on this. No timeline yet as it involves compliances, as stated in this article. You can make use of other fund fields like equity/commodity.utilised and equity/commodity.available, to calculate required for EQ or F&O trades. We wi…
Can these candles (when available) be considered correct post-market price data, or should these simply be ignored?
You can ignore these candles. These stray ticks are sent by exchange ticker, and we clean these in the EOD chart process i.e at midni…
In kite.trades(), we get a trade_id for each trade. How is it generated?
Also, is it generated by Kite or Exchange?
It is generated by a respective exchange order book. Go through the documentation here.
My main question is, Is it generated in asce…
As part of my software I poll data at regular intervals for few stocks (every few seconds), Is this allowed in Kite?
Are you using kiteconnect APIs? Let us know the exact URL you are making request?
There was an issue on the NSE exchange feed for the above-mentioned time period. So, those candles are not available. It will not be possible to backfill these now. Maybe you can refer to the BSE contract data for the mentioned period.
For example, in 1-minute candle data, there is no value for the following
We inspected the above-mentioned missing candles, and yes these are missing.
Older historical data(prior to 2015, 2016) is populated after getting it from multiple data vendo…
If a person wants to automate his trade he need to create request tokens again and again with is irritating
No, you have to generate request token only once a day, using the login flow. Using this request token, you can generate access_token, which …
so the Options expiries are ahead of FUT for commodities?
Yes. Commodity options will expire a few days before the first tender date of the futures contract. This means, there will be a few days' gaps between the expiry of the futures contract and t…
Please let me know is there a way to fetch all NFO instruments for commodities like we do for equities
No, you will have to fetch MCX exchange instrument and then filter out MCX-OPT.
Above line doesn't fetch strikes relevent to current expiry
MCX Ju…
Does it require any API
As, said above we don't have an API exposed for this.
You need to build this in your trading setup based on p&l, margin, etc parameters.
now how do we resolve no postbacks being received for orders and trades on order placements via the same api key?
We can't assist you in setting up your postback. This is against the forum regulation.
As, mentioned above all the production apps dep…
We just made POST request on your webhook/postback URL and can see below parsing error:
{
"errorMessage": "Broker name not found!",
"errorType": "Exception",
"stackTrace": [
[
"/var/task/broker_product_apis.py",
174,
"gateway_broker_ap…
order id: 220526402241686
We checked for this order and can see that, it was initiated at 26May2022 13:15:25.201593, with no time delay between order requested to order open pending at exchange. You can check order history for the same.
I remember @sujith advising me to send orders one after another in a loop. So I just want to confirm.
There is nothing like bulk order placement in kite APIs. So, if you are using a single process/thread, you can POST order in the loop, but if you a…
We use the same tick data to form OHLCV candle as you see on the kite charts, so until you are blocking the ticker(which leads to missing ticks) or not storing/dumping tick data properly in file or DB. I don't see any other reason. You can try out t…
If I send a limit order and it's status remain OPEN, and after some time I use cancel_order to cancel the limit order which was never fulfilled. So, is such limit order counted as 1 in daily limit ?
Yes, this thread explains more.
is it possible to bypass the user login every time transactions need to be fetched from Zerodha?
No, exchange regulates the fresh login to be done every day.
I am getting timeout error in getposition method.
Were you polling the positions?
Can you paste here the complete error stack trace, so we can check more on the error message?
The remote name could not be resolved: 'api.kite.trade'
It's an DNS issue. Go through the steps mentioned in this thread. Check your local DNS IP configuration, and inspect with your cloud hosting provider if using hosting services, if still not res…
Was there any issue with Kite API today?
No, there was no such issue.
we're getting "The operation has timed out" for order book and historical API requests both continuously for multiple users.
Were all such users in the same network? Can you paste…
please let me know in the above code pasted above where I am blocking the main thread
Here inside insert_ticks(ticks)
while True:
def on_ticks(ws, ticks):
insert_ticks(ticks)
all the calculations are done on a different programme all together
You mean different thread in same program?
If you are facing connection dropout because of blocking in the threaded instance (this is because of python GIL, allowing only a single …
Hence It seems it is cause of above error. Is it possible to remove above setting or how ? Or what exact code need to mention in script
We won't be able to assist regarding 3rd party lib dependency here you are referring to win32com.client or other …
How should I disconnect from KiteTicker(close websocket connection) at say 15:30 and reconnect again at login, without checking if time is xx:xx every few seconds
There is no individual API on this, you will have to build this logic at your end wrap…
No, it is an exclusive feature for Kite applications and will not be available for Kite Connect. Users can place GTT by checking postback or order update via websocket API.
'HTTP/1.1 500 Internal Server Error\r\n'
GeneralException: Enterd Qty cannot be greater than Net qty
Are you sure, the above exception message is from kiteconnect python client?
As, we return `quantity` should be a multiple of lot size {lot_size} fo…
1 ) While placing GTT Orders via api can you support "TAG" attribute , like it is supported in normal orders it will be helpful to map GTT updates
1. Yes ,you can send tag in gtt.
No, currently GTT orders don't support tag field. We will be adding t…
So is there any alternative solution to this
No, you need to place limit based order, if you are looking to avoid slippages. This article mentions about the same on market orders, the instant order execution comes at the cost of slippage.
CAPTCHA is only added to login auth when you have entered the wrong user credential more than 3 times. You can re-enter the correct credential and CAPTCHA will be removed.
Few users might be facing this issue intermittently because of exchange line disconnections for a specific set of users. We are checking on this.
For now, for such rejections, you will have to place the order again.
We inspected your order_id 220509300395522, and it was because of the higher than usual order queue at the today's market start because of market volatility. You can go through this article to know more.
quantity = -50,
You are sending wrong quantity param. Quantity should be positive integer i.e 50 here. As you are already sending transaction_type as SELL.
"Reason for the rejection: 17181"
This error message is from the exchange and because of a recent change in the policy of market order handling by the exchange. User will get 17181 error code and market order will be blocked , in any of the below sc…
Yes, BOD process includes updating close price as well. 'close': 357.45 shown by you above is not of last trading day, but a day before i.e 05/05/2022. You can check bhavcopy OI value of 06/05/2022 on next trading day post 7:30AM.
If you are lookin…
I just placed a MARKET order from the kite publisher and COMPLETE status is received absolutely fine on the postback URL. You need to inspect your local postback setup. Go through postback FAQs here.
We have created the SL order using the kite api. When order status changes to completed/cancelled, the updated status does not return to the postback url.
We just reproduced this at our end using SL order(limit and trigger_price) and all status of U…
Looks like the order place limit of 10 r/s is also per user_id after reading the article.
Rate limits are based per api_key. Place orders rate limits are per minute i.e 200 orders per minute and the rest of all GET requests are rate-limited per seco…
We logged full mode tick data for the same instrument BANKNIFTY2250536500CE(token-14198786) from 12:08:06 till 15:29:59 and can't see any discrepancy in the last_price field.
Didn't get you? Can you explain this in flow?
Are you initializing multiple kite publisher instances in the same app?
I don't think a clear basket is needed here as you can use add() method to create a new entry to the basket, clearing the old one'…
Have you set localhost as the redirect URL in the developers console? Also looks like your localhost server is not up but still, you will get request_token param embedded in the redirect URL post successful login. This thread explains more.
You need to re-check if you are fetching the correct value from Jfile['Api_Secret'], it should be passed as string.
You need to manually cross-verify data type(to be a string) and all values to be correctly passed for Jfile['Api_Key'], Jfile['Api_Se…
One question, limit is only for NRML Call and Put Option buying, not for MIS Call and Put Option buying. It is true for each of the market condition and always or it will be blocked when uncertainty/volatility increased.
Yes, it can change depending…
I looked at the all-time chart of Tatamotors and noticed an abrupt price change from ~160 to ~30 Rs at the beginning of 2003.
This is for the corporate action of Tata motors 12 Sep 2011 ....... Stock Split From Rs.10/- to Rs.2/- So, all prices are…