When stock is held in single exchange, the response comes correct but when a user have a stock in two exchanges, i.e; NSE, BSE, the holding response only shows holding in BSE.
Does anyone have a solution to this or i am doing something wrong?
Holdings response will be usually BSE. It technically doesn't matter because it is held inside your demat account and not in a particular exchange. You can choose to exit it in any exchange while placing the sell order.
You can know more here.