The getInstruments API isn't authenticated. The getLTP API call is authenticated by the Kite Trade. Once you obtain an access token store it and reuse it in subsequent runs for the day. Don't call generate session again.
@naveen278,
Please don't hijack the thread. If you are unable to post then you can search for the similar queries on the forum and comment there. You need to give request and response logs with query if you want someone to help.
@naveen278,
You can check out documentation to know what params to be sent for placing an order.
All the meta data you need for placing order are in the instruments master file. You can again checkout documentation here.
Go through the complete API…
You will have to listen to order updates via Websockets API and use that as an event to fetch orderbook and in the orderbook response you will get the latest status of your SL order, if it is COMPLETED then it means your order is filled completely.
This is very unlikely, can you log the response and give it next time this happens?
The intermittent solution is to fetch last price from ticker or get quote when it happens.
on_tick is called only when there is a new incoming tick data from the server. During off market hours, Kite Ticker will return only one cached tick. Try it in market hours.
Kite Connect doesn't have this feature. I don't think exchange publishes data like that but maybe you can get a colo setup at the exchange for more data.
@shashankpaik,
You can email kiteconnect(at)zerodha.com with the confirmation email or transaction reference number with email id to the business team. They will check and get back to you.
If you get any non 400 status for order placement. You need to check orderbook and then retry placing order.
You may get gateway time out or network exception. There are many hops internally within Kite Trade and OMS. It is not possible to know whic…
@naveen278,
You can take a look at the documentation. The exchange value for NSE options is NFO, For other exchange types refer to instruments master dump.
@sandesh,
You can refer to this thread.
Also make sure you are not running any program on other server or stale one that is making request continuously.
@kartikpateldev,
Postbacks are sent for the orders that are initiated from the Kite Connect app. It won't be sent for the orders that are placed via kite web or app.
You will have to listen to order updates via Websockets API. On websockets API, ord…
The instruments master dump doesn't have authentication. You need to re-login and create a new access token. It looks like session is expired based on the above message.
1. Why initial web socket connection of Zerodha fails or times out on several occasions on some days, but connects successfully on others. Presume that login credentials (API_KEY, ACCESS_TOKEN) are correctly passed to Kite Connect. If initial connec…
Both have same data but on_order_update will be exclusively for end user because websocket connection is owned by the user but postbacks is more suitable for the platforms that offer service to clients. Postback can be used by individual users also …
Positions API has no relation to orderbook, it just shows account's mark to market at the moment.
You can see overnight positions and current day's positions in the net field of the positions response.
We relay whatever data we get from the exchange. All the members get level 2 data only.
If you want data every millisecond then you will have to get a colocation setup at the exchange wherein ticks are broadcasted via LAN and frequency of ticks will…
@kishorsandage,
Kite Trade expects both the params to be there. The above logic needs to be added in the frontend apps.
That is how the API is designed. In case of Kite web and app it is handled at the frontend.
Few users might want to use legs to …
@ArunH,
The above instrument tokens are correct. You can always look for instrument tokens from the current day's instruments master dump. You can check out documentation to know more.
While using websockets API, you need to make sure that you are …
@deadlock,
This is a community driven forum and we are all developers like you who work on our own projects and take out sometime to help out fellow community members. Zerodha doesn't provide one to one support for writing solutions or strategies.
…
You need to make sure that main thread on which you are receiving data isn't block by doing computation or writing to database.
You can refer to this FAQs thread.
@nselvamca,
It could be because you haven't closed connection properly. Server might have an ongoing connection and your program might have dropped it. You need to call close method so that connection can be closed gracefully.
@dknaix,
Are you sure…
In the first example you mentioned, backend will send first leg order with quantity 63 and remaining 62 is considered by backend only. End users don't have to do anything.
The iceberg order backend is designed in such a way that it requires both values to be sent from the frontend.
Onus is on the frontend/client apps to send the values.
You can use this logic for iceberg_quantity calculation
double slice = quantity /…
@anitag,
You need to enable debug logs and see what is the actual input you are sending when you get this error json.
PS: Maybe you can check the extra trailing space at the exchange name or trading symbol.
@ouroboros,
Why do you need so many websocket connections?
You can subscribe to 9000 instruments with 3 websocket connections?
If you want you can create another app and pay for another Kite Connect app. All the requests are capped per api_key, so …
The ideal solution is to use postback or Websocket order update as an event and pull orderbook and check the status rather than polling order history in loop.
@reedos,
Kite Publisher is working fine and being used by many users in production. There is no issue from our end.
You need to put debug logs and see what data you are passing.
@shivdas_b,
Sorry, my bad. The put option looks like very less traded and about call option, I have asked RMS, we will get back to you once we get the reply.
@manya_investorPukka,
It takes a few seconds for an order to hit the exchange. Please note that Kite Connect is not meant for time/latency based strategies or HFT.
It has been a year since we have mandated TOTP for the Kite Connect clients as per the SEBI circular. You can know more here.
We have always informed clients not to automate logins as per the exchange regulations. It is mandatory to login manually …
1. by this logic, is it possible to subscribe to 1000 tokens with FULL_MODE with 2 websocket connection?
Yes, you can and your logic should make sure to not block the main thread that is receiving ticks.
2. I think the maximum tick request rate is 3…
@vijaynair,
Showing fine for me for the Banknifty index(260105) for date = "01022017" .
2017-02-01 00:00:00+05:30,19522.4,20047.85,19470.95,20020.6
You need to re-check if you are sending correctly from and to dates.