API BUG
-
When I try to place SELL order from API example, my order is getting placed.
{
"variety":"NORMAL",
"tradingsymbol":"SBIN-EQ",
"symboltoken":"3045",
"transactiontype":"SELL",
"exchange":"NSE",
"ordertype":"MARKET",
"producttype":"DELIVERY",
"duration":"DAY",
"price":"194.50",
"squareoff":"0",
"stoploss":"0",
"quantity":"1"
}But, when I try to put my stockname & symbol to it. it returns an error "TypeError: 'NoneType' object is not subscriptable"
{
"variety":"NORMAL",
"tradingsymbol":"COALINDIA-EQ",
"symboltoken":"20374",
"transactiontype":"SELL",
"exchange":"NSE",
"ordertype":"MARKET",
"producttype":"DELIVERY",
"duration":"DAY",
"price":"194.50",
"squareoff":"0",
"stoploss":"0",
"quantity":"1"
}This is really a frustrating problem, no proper documentation of errors is present.
Please help & resolve it. ASAP -
@rajanprabu
Got that, I'll sure try it.
Thank you for your valuable response. -
Try the SDK from angel-one
https://github.com/angel-one/smartapi-python
This resolved some of my order errors.. Although im not sure if this will resolve your issue,,
-
@rajanprabu
Yes, Trying to sell my holding. -
-