Unable to Place Stop Loss Order
-
Hello Team,
I am trying to place the stop loss order using the below parameters and getting unused argument trigger price.
order_place <- place_order(object = session_data,
variety= "STOPLOSS",
tradingsymbol= "ITC-EQ",
exchange= "NSE",
quantity= 323,
transactiontype= "BUY",
ordertype = "STOPLOSS_LIMIT",
producttype= "INTRADAY",
price= "210",
triggerprice = "209",
symboltoken= "1660",
duration= "DAY")
Can you please help me with the proper parameters for placing a stop-loss order?
Thanks in Advance
Regards,
Sai Teja Reddy -
my Inputs
{"tradingsymbol": "BANKNIFTY12JAN2341800PE", "symboltoken": "40708", "quantity": 25, "variety": "STOPLOSS", "transactiontype": "BUY", "ordertype": "STOPLOSS_LIMIT", "producttype": "CARRYFORWARD", "duration": "DAY", "exchange": "NFO", "triggerprice": "85.0"}Error :
{'status': False, 'message': 'INVALID PARAMETERS', 'errorcode': 'AB1007', 'data': {'script': 'BANKNIFTY12JAN2341800PE', 'orderid': None}}Please hep me to solve this issue
-
HI @Snehal Have you filled the below form..?
-
hi @Reddy we have fixed this you can check now.
-
Hi @Reddy have you update the sdk and executed the order..?
-
This is pending since a long ago and the code didn't work properly any time. Please fix the issue on priority. Happy to escalate if you need any further assistance.
-
@admin
I have checked with the latest code and the issue is still the same. Can you please let me know if this is tested and working fine from your end?Happy to connect at market hours tomorrow.
-
@admin Sure I will check with the latest code.
-
Hi @Reddy we have fixed this issue you can check now.
-
@admin
Yeah bro I have updated the SDK with the latest version and still unable to place the market order. Can you please test from your end before publishing?PFA error
-
HI @Reddy Have you incorporated the new change which are done yesterday.
-
AS discussed I am not able to place the Market, Limit, Robo order and getting the below error :
Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "SBIN-EQ", :
unused arguments (squareoff = "0", stoploss = "0") -
Hi @Reddy The issue has been fixed by the team.Kindly revert us need any assistance.
-
Hi @Reddy Our team will connect you soon to resolve your query.
-
@admin
Yeah, the stoploss and squareoff parameters were expected if I want to place a limit/market order.
However, If I remove those two parameters then I am getting :
ERROR=No method as JSON S3 class: name Http Exception Occured -
Hi @Reddy prior to this also have you you stoploss and squareoff as mentioned above.?
-
@admin
Bro I have given LIMIT ordertype only. It was running fine earlier. -
@Reddy said in Unable to Place Stop Loss Order:
order_place <- place_order(object = session_data,
variety= "NORMAL",
tradingsymbol= "BANDHANBNK-EQ",
symboltoken= "2263",
transactiontype= "BUY",
exchange= "NSE",
ordertype = "LIMIT",
producttype= "INTRADAY",
duration= "DAY",
price= 300,
squareoff= "400",
stoploss= "360",
quantity= 100000
)
Getting the error :
Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "BANDHANBNK-EQ", :
unused arguments (squareoff = "400", stoploss = "360")Please go thorugh the above parameters again.
-
@admin
I have tried the below parameters and it is still not working.order_place <- place_order(object = session_data,
variety= "NORMAL",
tradingsymbol= "BANDHANBNK-EQ",
symboltoken= "2263",
transactiontype= "BUY",
exchange= "NSE",
ordertype = "LIMIT",
producttype= "INTRADAY",
duration= "DAY",
price= 300,
squareoff= "400",
stoploss= "360",
quantity= 100000
)Getting the error :
Error in place_order(object = session_data, variety = "NORMAL", tradingsymbol = "BANDHANBNK-EQ", :
unused arguments (squareoff = "400", stoploss = "360") -
HI @Reddy kindly refer below values for order type:
MARKET
LIMIT
STOPLOSS_LIMIT
STOPLOSS_MARKET