Know parameter types of robo order
-
Can anyone explain the various parameter TYPES for a ROBO order, specifically the squareoff,stoploss and triggerPrice parameters? Want to know what values(price,percentage,etc of what parameter) these parameters take....?
-
@aakashsri013 These parameters are compulsory for ROBO order, i.e
"producttype"
:"BO"
. For other product types, these are not compulsory and you can skip them. You can check our documentation for more details. The params which have ONLY for ROBO order are optional for normal orders.Thank you.
Regards
SmartAPI Team -
@Moderator_1 So can we completely skip these parameters or are all the Params necessary to provide for?
-
@Moderator_1 Are these necessary to provide or we can skip? What are the OBVIOUS options to make the api overlook them?
-
Hello @aakashsri013,
Squareoff and stoploss in ROBO Order are absolute values, let's say for a price of 194.5, you want to place a stoploss at 190 and squareoff at 199, so you'll have to enter 194.5 - 190, i.e. 4.5 and 199-194.5 i.e. 4.5 for Stoploss and squareoff respectively. The value passed in the key is absolute difference.
All params take absolute values, hope that is clear.
Please let us know if you need any other clarification.
Thank you.
Regards
SmartAPI Team