This API allows to modify values(parameters) of a placed order with open stoploss/profit legs.
Base URL https://openapi.5paisa.com/VendorsAPI/Service1.svc/ModifySMOOrder
API Name: ModifySMOOrder
Requires Authentication? No
Method Type: POST
Version of the API: Yes
Pre-requisites: HTTP authentication
URI: /ModifySMOOrder
| Sr.No. | Field Name | Description | Data Type | Sample Value |
|---|---|---|---|---|
| 1 | ClientCode | Pass the ClientCode. | String | |
| 2 | OrderRequesterCode | Pass the OrderRequesterCode. | String | |
| 3 | OrderFor | Pass the OrderFor. | String | M-Modify |
| 4 | Exchange | Pass the Exchange. | Char | |
| 5 | ExchangeType | Pass the ExchangeType. | Char | |
| 6 | Price | Pass the Price. | Double | |
| 7 | OrderID | Pass the OrderID. | Long | |
| 8 | OrderType | Pass the OrderType. | Date | |
| 9 | Qty | Pass the Qty. | Long | |
| 10 | OrderDateTime | Pass the OrderDateTime. | Date | |
| 11 | ScripCode | Pass the ScripCode. | Long | |
| 12 | AtMarket | Pass the AtMarket. | Boolean | |
| 13 | RemoteOrderID | Pass the RemoteOrderID. | String | |
| 14 | ExchOrderID | Pass the ExchOrderID. | String | |
| 15 | DisQty | Pass the DisQty. | Long | |
| 16 | TriggerPriceForSL | Pass the TriggerPriceForSL. | Double | |
| 17 | IsStopLossOrder | Pass the IsStopLossOrder. | Boolean | |
| 18 | IOCOrder | Pass the IOCOrder. | Boolean | |
| 19 | IsIntraday | Pass the IsIntraday. | Boolean | |
| 20 | ValidTillDate | Pass the ValidTillDate. | Date | |
| 21 | AHPlaced | Pass the AHPlaced. | Char | |
| 22 | PublicIP | Pass the PublicIP. | String | |
| 23 | iOrderValidity | Pass the iOrderValidity. | OrderValidity | |
| 24 | TrailingSL | Pass the TrailingSL. | Double | |
| 25 | LegType | Pass the LegType. | Int32 | |
| 26 | TMOPartnerOrderID | Pass the TMOPartnerOrderID. | Int32 | |
| 27 | AppSource | Pass the AppSource. | Integer | |
| 28 | TradedQty | Pass the TradedQty. | Long |
*Note:- All fields are mandatory (cannot be empty)
| Sr.No. | Field Name | Description | Data Type |
|---|---|---|---|
| 1 | ClientCode | Returns the ClientCode. | String |
| 2 | LocalOrderID | Returns the LocalOrderID. | Integer |
| 3 | BrokerOrderID | Returns the BrokerOrderID. | Integer |
| 4 | ExchOrderID | Returns the ExchOrderID. | Integer |
| 5 | ExchType | Returns the ExchType. | Char |
| 6 | Exch | Returns the Exch. | Char |
| 7 | RMSResponseCode | Returns the RMSResponseCode. | Integer |
| 8 | Status | Returns the Status. | Integer |
| 9 | Message | Returns the Message. | String |
| 10 | Time | Returns the Time. | DateTime |
| 11 | ScripCode | Returns the ScripCode. | Integer |
| 12 | AvlbMgn | Returns the AvlbMgn. | Double |
| 13 | AddReqMgn | Returns the AddReqMgn. | Double |
{
"body":{
"AddReqMgn":0,
"AvlbMgn":0,
"BrokerOrderID":0,
"ClientCode":"",
"Exch":"B",
"ExchOrderID":0,
"ExchType":"C",
"LocalOrderID":0,
"Message":"Order information not found",
"RMSResponseCode":1,
"ScripCode":532215,
"Status":0,
"Time":"/Date(1606885383438+0530)/",
},
"head":{
"responseCode":"5PSModMOOrd",
"status":"0",
"statusDescription":"Success"
}
}
{
"body":null,
"head":{
"responseCode":"5PSModMOOrd",
"status":"2",
"statusDescription":"Invalid head parameters."
}
}
{
"head":{
"appName": "5P50000091",
"appVer": "1.0",
"key": "zNfLvA5rBFGvdsHrDqemuG6faBBtFRrV",
"osName": "Android",
"requestCode":"5PSModMOOrd",
"userId":"3XAU76dja8q",
"password":"k3SBBhGOXgn"
},
"body":{
"ClientCode":"50000091",
"OrderFor":"M",
"Exchange":"B",
"ExchangeType":"C",
"Price":"401",
"OrderID":0,
"OrderType":"B",
"Qty":1,
"OrderDateTime":"/Date(1569396922334)/",
"ScripCode":"532215",
"AtMarket":false,
"RemoteOrderID":"5000009120154900067",
"ExchOrderID":1606801033587000415,
"DisQty":"0",
"TriggerPriceForSL":"0",
"IsStopLossOrder":false,
"IOCOrder":true,
"IsIntraday":false,
"ISVTD":false,
"AHPlaced":"N",
"PublicIP":"0.0.0.0",
"iOrderValidity":0,
"TradedQty":0,
"OrderRequesterCode":"50000091",
"AppSource":"0",
"TrailingSL":"0.02",
"LegType":"0",
"TMOPartnerOrderID":"0"
}
}
{
"body":{
"AddReqMgn":0,
"AvlbMgn":0,
"BrokerOrderID":17247899,
"ClientCode":"50000091",
"Exch":"B",
"ExchOrderID":1606801033587000415,
"ExchType":"C",
"LocalOrderID":0,
"Message":"",
"RMSResponseCode":0,
"ScripCode":532215,
"Status":0,
"Time":"/Date(1606847400000+0530)/"
},
"head":{
"responseCode":"5PSModMOOrd",
"status":"0",
"statusDescription":"Success"
}
}