I am trying to place orders for IL&FSENGG-BZ trading using this code
order_id = thefirstock.firstock_placeOrder(
userId=“”,
exchange=“NSE”,
tradingSymbol=“IL&FSENGG-BZ”,
quantity=“1”,
price=“37.70”,
product=“C”,
transactionType=“B”,
priceType=“LMT”,
retention=“DAY”,
triggerPrice=“37.60”,
remarks=“try”,
)
Ignore the price and trigger price.
For the above code i am getting this error
{‘message’: ‘Invalid Input : jData is not valid json object’}
and for the same code if i pass another trading symbol say MUFIN-EQ the order is going through
and i am getting this response
{‘status’: ‘success’, ‘data’: {‘requestTime’: ‘11:22:37 23-08-2024’, ‘orderNumber’: ‘24082300007096’}}
What might be the issue ? Is it the “&” symbol or any other issue?