D
Check this:
def PlaceRoboOrder(self, TradingSymbol, Token, BuySell, Exchange, Quantity, Price, stoploss,squareoff):
try:
orderparams = {
"variety": "ROBO",
"tradingsymbol": TradingSymbol, #"SBIN-EQ",
"symboltoken": Token, #"3045",
"transactiontype": BuySell, #"BUY",
"exchange": Exchange, #"NSE",
"ordertype": "LIMIT", #"LIMIT",Limit_Market
"producttype": "BO",
"duration": "DAY",
"price": Price, #"19500",
"squareoff": squareoff,
"stoploss": stoploss-1, #"0",
"quantity": Quantity, #"1"
"triggerprice" : stoploss, #Price-stoploss
"trailingstoploss": 5
}
smartApi.placeOrder(orderparams)