Issue Placing Stop Limit Order for F&O using order_placement function

I’m trying to place a Stop Limit order for NIFTY 13 MAR 22400 using the following function:

tsl.order_placement(
    "NIFTY 13 MAR 22400", 'NFO', 75, 0, 90,
    'STOPLIMIT', 'SELL', 'MIS'
)

Using this I’m getting this exception:
'Got exception in place_order as Check the Tradingsymbol'

  • I used the same trading symbol (NIFTY 13 MAR 22400) for a LIMIT BUY order, and it worked fine.
  • The issue only happens when I try to place a STOPLIMIT SELL order.

Am I missing something here?

Hi @GaneshGani55 ,

It seems the Tradingsymbol name is incorrect, use the below code

tsl.order_placement("NIFTY 13 MAR 22400 CALL", 'NFO', 75, 0, 90,'STOPLIMIT', 'SELL', 'MIS')