@pankaj8932
I am also facing same issue. Is it resolved ?
neeluru
@neeluru
Best posts made by neeluru
-
RE: 'TypeError' object has no attribute 'message' Error while placing order
Latest posts made by neeluru
-
RE: "Order placement failed: 'NoneType' object is not subscriptable"
ROBO order is working fine for me.
try:
orderparams = {
"variety": "ROBO",
"tradingsymbol": str(tradingsymbol),
"symboltoken": str(symboltoken),
"transactiontype": str(transactiontype),
"exchange": str(symbolexchange),
"ordertype": "LIMIT",
"producttype": "BO",
"duration": "DAY",
"price":float(pricelimit),
#"triggerprice":100,
"squareoff": 12,
"stoploss": 12,
"quantity": str(quantity)
}
orderId=client_smartApi.placeOrder(orderparams)
return orderId
except Exception as e:
print("Order placement failed: {}".format(e.message)) -
RE: "Order placement failed: 'NoneType' object is not subscriptable"
@laxm
below is piece of code..try: orderparams = { "variety": "STOPLOSS", "tradingsymbol": str(tradingsymbol), "symboltoken": str(symboltoken), "transactiontype":"BUY", "exchange": "NFO", "ordertype": "STOPLOSS_LIMIT", "producttype": "CARRYFORWARD", "duration": "DAY", "price":pricelimit, "triggerprice":triggerprice, "squareoff": "0", "stoploss": "0", "quantity": "50" } orderId=obj.placeOrder(orderparams) return orderId except Exception as e: print(orderparams) # it's helpful to understand which values you've passed.. print("Order placement failed: {}".format(e.message))
-
RE: "Order placement failed: 'NoneType' object is not subscriptable"
Thanks admin.. It's working well now.
-
RE: 'TypeError' object has no attribute 'message' Error while placing order
@pankaj8932
I am also facing same issue. Is it resolved ? -
RE: "Order placement failed: 'NoneType' object is not subscriptable"
{
'variety': 'NORMAL',
'tradingsymbol': 'NIFTY29DEC2218400CE',
'symboltoken': '86414',
'transactiontype': 'BUY',
'exchange': 'NFO',
'ordertype': 'STOPLOSS_LIMIT',
'producttype': 'CARRYFORWARD',
'duration': 'DAY',
'price': '199.0',
'triggerprice': '198.95',
'squareoff': '0',
'stoploss': '0',
'quantity': '50'
}am getting an error
orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptablePlease help
-
RE: Working WebSocket Sample code to retrieve LTP - Python
@rajanprabu
OK..Is code is correct one ?
have used ss.connect() instead ws.connect(). Have changed it but no use at all
-
RE: Working WebSocket Sample code to retrieve LTP - Python
@rajanprabu
Any idea on below error. Using google.colab