Unable to place MCX Option Orders
-
Hello All, I am try to place the MCX Option Orders using the below code. MCX has enabled . Any one faced similar issue. Anu Suggestions and help. Thank you!
orderparams={
"variety":"NORMAL",
"tradingsymbol":"CRUDEOIL24MAR6200CE",
"symboltoken":"427032",
"transactiontype":"BUY",
"exchange":"MCX",
"ordertype":"MARKET",
"producttype":"CARRYFORWARD",
"duration":"DAY","squareoff":"0", "stoploss":"0", "quantity":1 #100 } obj.placeOrder(orderparams)
Error: rderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptable -
Hi @venkuu
We have fixed the "Nonetype" error on our SDKs. Please make sure if the new sdk version is consumed.
Regards,
SmartAPI team