How to identify exchange as NSE, BSE in holding API?

When the exchange as ALL appears in holding ! So how to identify exchange as NSE, BSE in holding?

Hi @ankurcool85 ,
When the exchange appears as ‘ALL’ in the holding, it indicates that this particular holding can be traded on both the National Stock Exchange (NSE) and the Bombay Stock Exchange (BSE).

Hi @ravibeck ,
I have developed API developed so I need to sell shares so can I sell the shares bought in Bombay Stock Exchange (BSE) in National Stock Exchange (NSE)?

Yes, when the exchange appears as ‘ALL’ in the holding, you can sell the shares bought on the Bombay Stock Exchange (BSE) on the National Stock Exchange (NSE) and vice versa. Make sure to use the exchange-specific security ID while selling.

okay but
I want to sell the shares on the same exchange where I bought them.