I found the answer. I'll leave it here for everyone else. It is "NSE:NIFTY-INDEX" and "NSE:NIFTYBANK-INDEX"
Join FYERS Community to pick others' brains on Trading/Investing
For NIFTY & BANKNIFTY spot, NSE:NIFTY50-INDEX and NSE:NIFTYBANK-INDEX respectively has to be used.