Stop loss oder
-
How to put stoploss order , if anyone have idea or code pls share.
-
Isn't the message clear itself ? Invalid characters.. Are you sure you are passing the correct value..
-
@bincyajithm Please share you code so that everyone can check.
-
@rajanprabu we are getting this error warning16408 : Trigger price entered has invalid characters
-
@rajanprabu thanks bro,let me try
-
https://smartapi.angelbroking.com/docs/Orders
you can use trigger price as given in the table below.
-
@rajanprabu said in Stop loss oder:
orderparams = {
"variety": "STOPLOSS",
"tradingsymbol": "SBIN-EQ",
"symboltoken": "3045",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "STOPLOSS_LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "302.50",
"squareoff": "0",
"stoploss": "280",
"quantity": "1"
}where I can put trigger price
-
combine code here
https://github.com/angelbroking-github/smartapi-pythonwith this table according to your requirement
orderparams = { "variety": "STOPLOSS", "tradingsymbol": "SBIN-EQ", "symboltoken": "3045", "transactiontype": "BUY", "exchange": "NSE", "ordertype": "STOPLOSS_LIMIT", "producttype": "INTRADAY", "duration": "DAY", "price": "302.50", "squareoff": "0", "stoploss": "280", "quantity": "1" }