Skip to main content
Trade API (64)

Which identifier do I use for an instrument?

Market data calls (LTP, quotes, candles, option chain and the live feed) use instrument_id, which is the id column in the scrip master. Order calls use exchange_segment and symbol instead. exchange_segment isn't a column in the scrip master; derive it from the exchange and instrument_type columns. STK, ETF and IDX rows are NSE or BSE, and FUTSTK, FUTIDX, OPTSTK and OPTIDX rows are NFO or BFO. For example, the NIFTY 30-Mar-26 26550 CE row has exchange NSE, instrument_type OPTIDX and symbol NIFTY30MAR26C26550: market data calls use its id, and an order sends exchange_segment NFO with that symbol.

Always copy the symbol from the scrip master, because formats differ between exchanges. For example, NIFTY30MAR26C26550 on NSE and SENSEX2691767800CE on BSE.