Can you DM request debug log for such order placements? So, we can investigate further.
You need to add below changes in your order placement code:
import logging
import http.client
logging.basicConfig(level=logging.DEBUG)
http.client.HTTPConnection…
For now, you can include this this external publisher add-on file on your publisher, as shown in usage section. Were popup close is also identified as cancelled event as is registered under finished callback. We will add this in our official publish…
when user clicks on more than 1 time on Finish or cancel button then it is coming
Didn't get you? On publisher basket? can you explain this flow in detail.
How do I access Console GUI on my customer's behalf?
Maybe you can redirect clients to console and let them manually download the historical tradebook and upload on your portal.
No, currently you can only get today's orderbook/tradebook. Historical…
ohld
Didn't get what you mean by d here?
If you mean OHLC, yes you can get it from quote API(which comes in base kite connect api) as @SRIJAN has linked above.
1- I get the value of console portfolio - Matches completely.
Didn't get? We don't have console API for this data. Can you explain the source of this data in more detail with fields?
Equity instrument don't have OI. OI is only for F&O contracts. Also, you need to compute cumulate value at your end, as OI is available only for each F& O contract.
Can you DM your client_id and instrument token detail on which you are seeing this timestamp discrepancy? As we are not able to reproduce the same at our end.
Or else please suggest a workaround for it.
Historical tradebook is only available in console. You have to download from there.
Yes, for the first attempt you will have to use console -> tradebook --> download it as csv and dump it to your DB.…
There seems to be difference in volume data as well for multiple candles. Can you re-check, if you are making the same request param? Also, can you paste here the complete request param for the same?
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Is it happening for all the API request or specific for order placement?
If for all requests, then it can be because of DNS Server. This article might help.
Redis by default tries to connect to port:6379 of your localhost. You can see the code block for the same here. You need to set-up and start redis server on the same at your end.
I need purchase date of my holdings. Is there any api available for this?
No, these are under console. Isn't available as of now. We are planning to give it in future.
why authrosied_date field of holding is always today?
The authorisations are vali…
The interval parameters in the documentation are having type error in kite historical call
Didn't get you? All candle intervals are mentioned here. Can you paste error trace-back for this?
Please let us know how to call monthly candle data
This thre…
I have a delay of sleep(0.2) incase there's the error comes up. What amount of delay do you recommend?
0.2 seconds is too less, maybe you can increase it to 1-second or something similar.
In your view is it possible to keep track of positions live,…
We just checked the quote response and it's showing the correct previous day close.
{'NSE:PARSVNATH': {'instrument_token': 3530497, 'last_price': 14.7,
'ohlc': {'open': 14.4, 'high': 15, 'low': 14.4, 'close': 14.6}}}.
GeneralException: Message build error
You seem to be making requests during the BOD process time(i.e midnight from 12:30 AM to 7:30 AM). During the BOD process, the system is in maintenance.
A possible reason could be because of blocking of one ticker thread, adding a slight delay in ticker data consumption. You should try out the solution mentioned in your similar raised thread here.
then what kind of local error it can be?
Difficult to debug, your local system specific issues.
For computation on the heavier side , you need to follow the task queue method mentioned as solution1 in this thread. You can go through this example of…
Was position API timing out? Can you paste the exact log with the request timestamp?
So, even single position API requests were failing?
Kindly guide me what should I do now?
You might have to add some time delay between subsequent requests.
but in the response the format is incorrect (half string and half object) and hence we are unable to parse the response
No, this won't happen until you are sending the wrong format tag. The tag should always be passed string.
But by that way I wont be able to make use of the 5x margin right ?
Yes, the GTT CNC order won't provide leverage. You can use CO with the combination of target MIS order or a combination of MIS stop-loss and target orders.
An error occurred during a connection to 127.0.0.1
You have set redirect URL in the developer console as local host(127.0.0.1). Which is currently not up/running in your local system. Though, the linked re-direct page is down, as @SRIJAN said, you …
So that means for managing a hand-full of clients it is not possible is it not?
Depends on your product usage. The compliance team will be able to answer it better. You need to write at kiteconnect(at)zerodha.com.
I am getting a `TypeError: order_margins() got an unexpected keyword argument 'mode'` error when i use the
You would be on an older version of the python kiteconnect client. You can upgrade the package using:
pip install kiteconnect --upgrade
@stripathix
Is there any better way to handle this close connection so if it fails on all retry it does not crash nodeService as a whole?
Not able to get you on this. Do you want to keep the WebSocket connection active? After exhausting all retry a…
just wanted to know if we can get the freeze limit increased
No, it's being set by the exchange as @SRIJAN mentioned above. You can check all the freeze limits here.
You need to break net qty into multiple lesser than freeze qty orders.
Multi-user access is provided for the exchange-approved platforms which are developed to cater to masses like small-case, streak, sensibull, etc.
You will need to mention your platform usage i.e what would you be providing to user in detail.
This will be useful to validate the request_token
We are not able to understand the use case of validating the request_token from the profile call.
We will look into the possibility of adding the `client_id` field in the user profile call. But, may…
Can anybody tell me that can we generate API Secret also without 2000 credits if we create an App.
I can able to see only API KEY but not API Secret.
No, you need to pay to use kite connect APIs. The one you are seeing without API secret is the publ…
The open price for Federal Bank on 2013-08-01 was 350(as you can see from attached nse website historical data). There was a 1:1 split on 08 Jul 2015 , so price was halved, which is matching with our historical data.
Date,open,High,Low,close,volume
…
Your all modifications were successful(uptil 25, post which it was rejected by system because of rate-limit exceeding). Just that, because of ill-liquidity your order got converted to LIMIT. You can check this article to know more.
GeneralException:Couldn't find that 'order_id'
Is this happening only at the starting hours of the market open?
Can you add some delay(a few seconds) and then fetch the orderbook?
I am using old kiteconnect.
Old kiteconnect PHP client will work fine for basic API requests, but recent API additions like(basket margin, etc) won't be available in the same. So, it's recommended to use the latest composer package.
I have created …
$user = $kite->generateSession("request_token_obtained", "XXXXXXXXXXX");
It is always giving this error "Token is invalid or has expired".
You won't get 403 unless you are sending the wrong access_token, api_secret, or request_token(obtained afte…
Zerodha does not provide SLM or Cover order
Yes, market orders including SLM and CO-market are blocked for some index and all stock option contracts.
I want to create simple trading program using c# for which I need placing of Option buy order at ma…
Is Websocket API is supported in PHP?
No, currently it's not supported. We will add this in the future major version upgrade. For now, maybe you can try out Ratchet Pawl(PHP WS lib).
Just picking data from websocket and writing it in excel spreadsheet
You should avoid any computation inside on_tick thread. Go through WebSocket FAQs here.
builtins.AttributeError: 'NoneType' object has no attribute 'Worksheet'
It's related to the worksheet not with the WebSocket stream. You need to check on the worksheet assignment.
You need to dynamically create basket at your end, based on finished() callback i.e if status is cancelled, create/update the basket orders. You can go through the example here.
@amarkantk
We checked your order detail of tradeID: 265188 and there seems to be no issue in the same. Initially, you placed a LIMIT pending order at 75.4325. Modified it 20 times, the last modification registered at the exchange was at 13:45:55.43…
We tried reproducing at our end using the same param. With TOTP enabled, the order is going fine for all the further requests.
Make sure, you are using the same client id as added in the developer console.
Is order modification also counted in this limit?
No, for modification it's a max of 25 modifications per order. This is not included in the 3000 order limit. Both are different request types. Order placement is POST and order modification is PUT. B…
You might have multiple python versions installed or pykiteconnect points to different PATH. This thread explains more. For installation FAQs, visit here.
xlwings under ORB system
This doesn't seem to be related to kiteconnect APIs. Both mentioned package/system are independent not related to Kite Connect.
You need to subscribe to it from the developer's console.
Live fetching historical data for live use is not recommended. Go through historical data FAQs here.
Same in Happiest minds price series changed from BE to EQ on 27.12.21 and from 27.12.21 API is not fetching price.
HAPPSTMNDS has migrated to BE again from 21st Jan 2022. We just checked for the mentioned period i.e from 27.12.2021 onwards and it's …
It's showing as net margin right? As, you have done the intraday payin, it will show under intraday_payin field as well. Go through the documentation here.
then again when running the 4th time, session expired exception was thrown by the Kite Server
You need to check if another instance/process is not initiating the login as well on the same client. This thread explains more about the simultaneous sess…
I was looking for historical data - something like the way the KiteConnect gives with kite.historical_data(). But I would like this for every second.
No, second's data is not available for the historical periods. You can only fetch live second's dat…
kiteConnect.setPublicToken("yyyy")
Are you using publically exposed app(not restricted to your personal use)?
If not, then you need not set a public token(it's used only for a publically exposed app).
This is fixed. If you send any of the order params with None, you will get the required input exception message highlighting the expected input type.
{
"status": "error",
"message": "Invalid request (failed to decode `price`, got: `None` (expect…
ATR is generally calculated over a period range. I'm not sure, what period range you are looking for but for the live candle fetch historical data fetch is not recommended. Maybe you can try out the combination of historical data for the previous da…
My basket order had only 2 legs (short straddle: CE+PE)
Can you paste here the complete basket margin request param(including both order params)? We will check on this.
The margin returned by the API is different from the margin required during order execution
As explained in the above thread basket margin API consider margin benefit for all 3 legs before the position is created but we have restricted this 3rd leg …