Yes, you need to use multiplier from the portfolio/positions.
If you need live P&L then you need to use the last price from the Websocket API or Quote API and keep updating the data.
We don't have a special endpoint to fetch partial positions. Y…
Kite Connect is purely an execution platform. We don't provide solutions for writing strategies.
Regulations don't allow a broker to provide these kinds of solutions.
@mahajangaurav28,
Kite Connect offers a tag feature for orders, you can tag the orders and use its quantity to find a particular position and its quantity.
KiteRequestHandler class has the OkHttpClient which is used to make requests and that is created only once and reused.
Can you try to fork javakiteconnect and try calling client.getDispatcher().getExecutorService().shutdown(); once you are done?
so…
But then how did you conclude that it takes 5 minutes to expire?
Signal Dispatcher
OkHttp TaskRunner
main
Finalizer
Reference Handler
Okio Watchdog
Monitor Ctrl-Break
Process finished with exit code 0
This is the output for me.
for the next time, it is saying that the access token is not valid or expired.
When you run the same code(i.e index.js here) for next time, generateSession function here,kc.generateSession("request_token", "api_secret") tries to re-generate session…
@AvinashKrishnappa,
You seem to be sending a wrong variety value. You are sending a constant name as mentioned in the example, the value is lower case regular
The instrument master has tradingsymbol, company name, instrument token, exchange token, exchange all the details. We don't have any other ad hoc APIs.
Since you gave that URL for redirect, you are being redirected there. It has nothing to do with Kite Connect.
You need to pick the request token from the URL that is the required result.
P&L can change arbitrarily and the GET positions API is not meant for polling. It is thus not possible to provide accurate, real-time P&L with an HTTP response and the recommended way is to use WebSockets and consume real-time data and compu…
Kite Connect is working fine and it is being used on many production apps without any issues. You need to give us exact params in order to investigate the issue.
@Sandeep07,
I don't think you can use Kite Connect APIs to display prices on your platform. You can write to compliance and check if you can do that. Make sure you give more information about your platform.
You can reach out to compliance at kitecon…
You need to send a correct tradingsymbol as mentioned in the instruments master file.
The kite app and web modify symbols to make it more readable. It has nothing to do with Kite Connect.
I don't think you can directly invoke Publisher from the app, it has to be opened from a webpage that is embedded in the apk or you need to land on your webpage and then invoke publisher from there.
@rajatbiswas,
One can't display our data on a third party website. You can speak to the compliance team for more information. You can reach out to them at kiteconnect(at)zerodha.com
You can enable debug logs and paste the complete stack trace here, for further investigation.
You can check out the rate limits here.
If you hit the rate limits then you will receive a 429 error from the Kite trade.
Positions only update when one places an order or modifies or when one gets an order update.
One can fetch positions and cache it locally and keep updating the P&L using the last price fetched from Websockets API.
An optimized solution is to fe…
It seems like you landed on the Kite dashboard which means you logged into kite web.
Please write to support if this about Kite web. If you are facing an issue with the Kite Connect login then you can report it here.
The historical data only provides OHLCV and OI data. You will have to check the BHAV copy to get the average traded price and use that for calculating traded value.
Kite Connect doesn't offer IV and greeks data.
Kite Connect only provides the whole dump. You will have to filter out the things you want from that dump.
The use case for instruments file is to download once a day and use the cached data rest of the day. Since the file is very large.
Can you run pykiteconnect with debug logs enabled and paste the complete stack trace here?
PS: Make sure to remove the app and client-specific details are not there.
Hi,
One has to create different developer accounts and create multiple apps under that.
For multi-user access, one has to write to kiteconnect(at)zerodha.com with product details and screenshots of the platform.
You need to read the Kite Exception status code and message before retrying with an alternative order type.
If bracket order is allowed someday and you get 503 in some scenario then you will end up placing double order.
A parent order id is a string and a non-second leg order doesn't have a parent order id. The non-second leg includes a regular order or a first leg order.
The last traded time is in the full mode tick only. You won't see data if you have subscribed…
Hi,
We are revamping the Coin web where we are planning to provide all the features currently available on the app.
I am not sure we can provide data via APIs, there are some regulatory implications that need to be sorted.
@Akhil_Saketh,
It is mandatory by the exchange that a user has to manually login at least once a day. All the sessions are flushed every morning and users are required to log in every day.
@vijoeyz,
The second leg order for the cover order is placed at the same time while placing the first leg order, hence the system won't allow user to modify the quantity.
A Kite Connect app can only have one active session, you need to figure out a way to pass access token between your strategies. If you try to create a new session on the second machine then you may end up killing the session of the first one.