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.
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:
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.