Exchange mismatch in orders

ramachandrappa_k
ramachandrappa_k edited August 2023 in Java client
I am placing the order in NSE exchange with order type as market. I executed 30 stocks with all NSE exchange in a loop. But my orders placed randomly in NSE and also in BSE. Why this is happening? Below is my code to place order.

orderParams.quantity = 1
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.tradingsymbol = v.getStockSymbol();
orderParams.product = Constants.PRODUCT_CNC;
orderParams.exchange = Constants.EXCHANGE_NSE;
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
orderParams.validity = Constants.VALIDITY_DAY;

kiteConnect.placeOrder(orderParams, Constants.VARIETY_REGULAR);
  • rakeshr
    But my orders placed randomly in NSE and also in BSE
    This shouldn't happen. Can you paste here the order book response from orders, for such cross-exchange order?
  • ramachandrappa_k
    ramachandrappa_k edited August 2023
    I did not observe this when I place the orders yesterday but when I see the holding I found that few are in NSE and few are in BSE. So where can I get the order book details now. May be I can give it today.
  • rakeshr
    I see the holding I found that few are in NSE and few are in BSE
    This article explains in the detail.
  • ramachandrappa_k
    Now I got it. I think if we buy from one exchange and sell in different exchange will cause the penalty right?
  • sujith
    A holding will not have any exchange associated with it. It is just a unit present in your demat. The exchange displayed on Kite(trading terminal) is for calculating P&L and take quick action.
This discussion has been closed.