The getOrders is supposed to give that days orders but it giving previous days holding in the list. causing error in transcation. Can somone tell me more about getOrder does it give holdings also from previous day? Also I guess quantity provided by API had an issue also.
I agree it should give orders with the right API and we sell orders when in profit, but I am seeing an issue you can correct if my understanding is wrong. I have BSOFT in my holdings and orders. Below is my point:- a) I bought BSOFT in the morning and I sold for example BSOFT today in profit of Rs.4, the same orders I bought in the morning b) but Positions tab in the APP shows "Sold HOLDING" of BSOFT c) Next day when I check my profit it shows BSOFT is loss since you sold BSOFT from your holdings (not your orders). I am seeing this issue second time. d) My sale of holdings I have put on hold (via API), hence this never gets executed.
Next day when I check my profit it shows BSOFT is loss since you sold BSOFT from your holdings (not your orders)
This might happen because of BSOFT being Trade to Trade stock. For T2T stock, the buy average will be the latest buy price. This article explains in detail. For further non-technical queries, you can write to Zerodha support here.
https://kite.trade/docs/connect/v3/orders/#retrieving-orders
It doesn't include holdings,but if you buy/sell your holdings that day,those orders would show up in the orders API response.
Holdings can be retrieved by using holdings API:
https://kite.trade/docs/connect/v3/portfolio/#holdings
There is no issue with KiteConnect APIs.
a) I bought BSOFT in the morning and I sold for example BSOFT today in profit of Rs.4, the same orders I bought in the morning
b) but Positions tab in the APP shows "Sold HOLDING" of BSOFT
c) Next day when I check my profit it shows BSOFT is loss since you sold BSOFT from your holdings (not your orders). I am seeing this issue second time.
d) My sale of holdings I have put on hold (via API), hence this never gets executed.
How do I resolve this., I see it is an API issue.
Keep me posted.
For further non-technical queries, you can write to Zerodha support here.