Connection closed: 1006 - connection was closed uncleanly (None)
Can you paste here the complete error stack trace?
You can try out the similar solution in websocket FAQs here.
Exchange needs to update the daily security file with the updated expiry date, once it is updated. It will start reflecting in the kite instruments file as well.
But my orders placed randomly in NSE and also in BSE
This shouldn't happen. Can you paste here the order book response from orders, for such cross-exchange order?
retrieve all orders > how to check pending SL cover order and it's ID > how to relate it with parent executed cover order
You can check for the required order_type field from the order book to filter out. Cover order will have parent_order_id …
Is there any way using way we can download technical data in table format?
No, you need to calculate technical data at your end based on the OHLCV data available from the historical data.
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Is this the complete error stack trace?
Go through the Python websocket FAQs.
I noticed that options that were expired are NOT reflected in the trade book
Are you referring to the trade book downloaded from https://console.zerodha.com/reports/tradebook ?
It should contain all trades, including that of the expired contract. Yo…
This cross ordering has never happened before.
No, cross-client ID order placement can't happen. Can you DM me your client ID's and respective order ID details? Will get this checked.
2023-08-22 15:07:50,491 - kiteconnect.ticker - ERROR - Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
This seems like a network disconnection. Yeah, you can enable a debug log for detailed stack trace.
1006 - connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake in time)
Go through the WebSocket FAQs here.
can i place more than 200 orders in a minute using 3 api keys for same user. Can i place more than 10 orders per second using 3 api keys for same user?
No. Go through the article here.
which returns the following even though the actual order gets rejected as seen in Kite interface
This thread explains more. You need to read status_message field from the order history, to know the rejection reason.
request call automatically adds …
I am trying to place order through webhook URL
This happens when I have two or more accounts linked to the same alert(webhook)
This can happen if you are placing an order for each webhook status received. You need to re-check your order placement l…
Placing 50 basket orders using kite publisher
or placing 50 orders using kite rest api.
Both use the same order placement backend, with the same rate limit.
Why market order is not allowed for sensex from API?
Can you let us know the complete trading symbol of the Sensex contract?
Margin policy of contracts can change in the intraday as per the requirement from the RMS. This documentation explains more.
login_url = "https://kite.zerodha.com/api/login"
r = s.post(login_url, data={"user_id": user_id, "password":password})
You need to perform the login flow manually, as mandated by the exchange.
Go through this thread.
so in the historical data API will the data automatically be updated to 1,000 rupees for data before 10th June 2023 or the API user needs to handle this logic ?
It will be auto-adjusted. Currently, adjustments are applied for split and bonus types o…
What I am naturally expecting, is to get all available NIFTY weekly and monthly expiry data across all strikes trading at that time.
Continuous data is only available for the futures monthly expiry for the day interval.
Can you change the end lines of your code to this and try?
kws = KiteTicker(api_key, kite.access_token)
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close
kws.on_error = on_error
kws.connect(threaded=True)
while True:
…
We just checked a couple of ITM midcpnifty contracts(MIDCPNIFTY238028900CE), and ticks were coming fine for those till 2023-08-0215:29:59.
Can you paste here the debug log for those?
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7).
Is it only happening around 09:20 to 09:30AM?
You need to hand this time-out with a re-try. This thread will be of help.
At what time does the list of intraday margins and leverages updates in the morning?
It's updated at the beginning of the day process(after the first span file of the day from the exchange) around 8:30 AM.
IndentationError: unexpected indent
This error is from your local code environment and is not related to the kiteconnect APIs. For assistance on resolving unexpected indent issues in Python, please refer to this thread
@shivdas_b
All these fields will be available in the new instruments file. We are currently addressing a few bottlenecks, but rest assured, it will be released for API users soon. We'll keep you updated on the progress.
1. You mentioned usually there will be just 1 tick per second, do we get same update frequency in kite.zerodha.com as well or do we have more ticks per second there?
All our platforms, Web, Mobile apps, and APIs consumes the same ticker streams, so …
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Historical data response seems to be empty. Can you paste here the complete debug logs?
(*Ticker).checkConnection()
(*Ticker).readMessage()
There are no above-defined functions in the official gokiteconnect. Go through the go-ticker example here.
onOrderUpdate function, will this function will receive as soon order got fulfilled / cancelled ?
Yes.
BCoz when I ran above code in real market , the onOrderUpdate function didn't call.
Make sure, you are assigning calling back for onOrderUpdate pr…
I think FromDate and ToDate are the same
You will need to send hours and minutes stamps as well for the historical data of the same day, in the format YYYY:MM:DD HH:MM:SS. Otherwise, for the date stamp alone, the default hours and minutes taken will…
so I use this kite object to place order buy and sell. first time it works, and I use the same kite object for other order placement .... this is the time where I think its failing.
pool = {
"pool_connections": 10,
"pool_maxsize": 10,
"max_retries":…
When I listen through WebSockets, will it contain the Tag that I set during the entry order?
Yes. You will get the tag field in the websocket order update response.