You can fetch mutual funds holdings and sum up all the (average price * quantity) to get total investments.
You can sum all the (LTP * quantity) to get the current value. P&L is the difference between these two values.
The source for quote API call is Kite Ticker and it stores the last received tick and it will be replaced only when there is a new tick for that instrument. I would suggest using tick timestamp to check before using it.
Currency and commodity marke…
The above statuses can be seen in successful cases. In addition, stop-loss orders will sit in TRIGGER PENDING state.
If something goes wrong then the order will sit in one of the statuses which is not in the above-mentioned statuses.
For AMO orders…
You seem to be using an old version of pykiteconnect, you need to use
pip install kiteconnect --upgrade --pre
to install the latest version of pykiteconnect.
Apologies, I was under the impression that in case of self-trade both orders will get rejected but it is wrong.
Let us say you place a BUY order for 10 quantity and 5 got filled and somehow your algorithm triggers another SELL order then the new or…
An order can be rejected because of hundreds of reasons. It is rejected by RMS or the exchange I am afraid we can't do anything about it.
Generally, the probability of this will be very less. If your algorithm itself creates this scenario then I thi…
@krishnanm2006,
Please don't hijack other threads, you can search for the query as this has been answered hundreds of times or create a new thread which might help others who are looking for the same.
Anyways you can check out login flow here.
I agree ideally it shouldn't be different. But what is the point of this image, you need to provide more information if you expect people to spend time on the issue and provide a solution.
@vinodhec,
Can you let us know from where you placed this order?
Is it from Kite web or mobile?
If you placed it via Kite Connect app, can you give us exact params you sent?
Hi,
The getQuote API will return absolute change only. You can calculate change_percent as follows,
change percent = ((lastTradedPrice - closePrice) * 100) / closePrice
When a client subscribes for ticks. Initially, Kite Ticker sends a cached tick. Hence you can see ticks for all the instruments. Post that data is sent whenever there is a change in the subscribed data.
Let us say you subscribe for an instrument in…
You can check out more details about the cover order here.
The trigger_price can take any value in between co_lower or co_upper values as specified in the instruments margin API. You can check out this thread to know more about instruments margins A…
You seem to be using old API. I would suggest migrating to Kite Connect 3 APIs. You can check out more details here.
You can check out more details about the TokenException here.
Can you mention the request params you are passing?
It is better to always mention the version of Kite Connect client you are using and steps to reproduce the issue.
Hi,
We don't have the sandbox environment. You need to subscribe in order to use APIs as of now.
You need to sign up and create a Kite Connect app here.
You can check out documenation here to get started.
@nickmanan,
In an ideal scenario, the system shouldn't exit second leg orders but as of now, it is exiting bracket order when you cancel first leg order. We are working on the fix.
You can fetch orderbook and loop through the unfilled_quantity fiel…
It is mandatory by the exchange that a trader has to log in manually at least once in a day. We don't recommend automating the login.
You can generate an access token and then use the same until it is invalidated.
You can check out this thread for more information about the access token validity.
Can you add more details about your scenario which Kite Connect client are you using and which version of the client are you using and steps to reproduce?
You can fetch historical data for any instrument using the instrument token which is available in the instrument master dump.
The instrument master dump will not have the delisted instruments and hence you won't be able to fetch historical data for …
Create an empty project with Java 8 SDK, no modules and then import kiteconnect and sample into the project. Go to build settings add kiteconnect dependency to sample module.
Add dependency for all the /lib directories to kiteconnect modules. Do the…
For backtesting, you can use historical data API. For live strategies, I would suggest generating candles at your end using the websocket live market data.