Instrument Not Found
Common symptoms
InstrumentNotFoundError
- order/quote call fails for specific symbol+expiry+strike
Fast checks
- Verify exchange is correct (
NSE, BSE, etc.).
- Verify symbol spelling exactly.
- For derivatives, verify expiry/strike/CE-PE exactly.
- Use search/helper APIs before placing order.
Debug pattern
from tt_connect import TTConnect
from tt_connect.instruments import Equity
from tt_connect.enums import Exchange
config = {"api_key": "...", "access_token": "..."}
with TTConnect("zerodha", config) as broker:
print(broker.search_instruments("SBIN", exchange="NSE"))
underlying = Equity(exchange=Exchange.NSE, symbol="SBIN")
print(broker.get_expiries(underlying))
Common root causes
- wrong exchange
- stale/invalid derivative contract values
- typo in symbol