Unable to place stop loss order
-
Hi @theVishal we have noted this we will update you on this.
-
@admin Hello admin,
Please update the JAVA jar file to include trigger price while placing an order.
-
This post is deleted! -
HI @vvbchandrasekhar @bhushan The above issue is solved you can check now and try to execute order.
-
@bhushan
Thanks for the workaround! -
@admin Appreciate your reply but I solved it by myself.
I made the following changes in source code and rebuilt the jar.
- in OrderParams.java I added the parameter triggerprice
public String triggerprice;
-in SmartConnect.java I added the trigger price in JSONObject params which will be sent via order post request
if (orderParams.triggerprice != null)
params.put("triggerprice", orderParams.triggerprice);- in Constants.java there was no option to set order type "STOPLOSS_LIMIT" and variety "STOPLOSS" so I am using them as direct string in my program.
Now I am able to place stoploss order and I can also use triggerprice along with the order
- in OrderParams.java I added the parameter triggerprice
-
hi @bhushan provide us with your client to further assist you.
-
Hi @bhushan we will get back to you on your issue it is noted.
-
@admin not getting any errors. I tried with multiple combination but unable to place stop loss order. Limit orders are fine. And I am unable to find trigger price also in orderparams.
When I was checking this market was at 358 range and I wanted to buy if the price moves above 362. I know I can place a limit order if the price matches my price, but I want to keep the order ready with trigger price.
-
Hi @bhushan please post your error here also check your stoploss and price.