kiteconnect.exceptions.InputException: Unknown `tradingsymbol`

sprashant5
price = kite.ltp('MCX:' + tokens[token]) -----// is working fine giving LTP
//If run below command ---- NSE working fine ----problem with MCX
kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_MCX,
order_type=kite.ORDER_TYPE_LIMIT, tradingsymbol='GOLDPETAL22MARFUT',
transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=qty1, price=lim103,
validity=kite.VALIDITY_DAY, product=kite.PRODUCT_NRML)
//Gives below error ---
Traceback (most recent call last):
File "C:\Users\Prashant\PycharmProjects\ZERODHA_1301\empty2.py", line 130, in
buy_order10 = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_MCX,
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 355, in place_order
return self._post("order.place",
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 841, in _post
return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 913, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.InputException: Unknown `tradingsymbol`.

Sign In or Register to comment.