This API allows to Place/Modify/Cancel a new Cover/Bracket order.
Base URL https://openapi.5paisa.com/VendorsAPI/Service1.svc/SMOOrderRequest
API Name: SMOOrderRequest
Requires Authentication? No
Method Type: POST
Version of the API: No
Pre-requisites: HTTP authentication
URI: /SMOOrderRequest
| Sr.No. | Field Name | Description | Data Type | Sample Value |
|---|---|---|---|---|
| 1 | ClientCode | Pass the ClientCode. | String | |
| 2 | OrderRequesterCode | Pass the OrderRequesterCode. | String | |
| 3 | RequestType | Pass the RequestType. | Char | p-place |
| 4 | BuySell | Pass the BuySell. | String | B/S |
| 5 | Qty | Pass the Qty. | Long | |
| 6 | Exch | Pass the Exch. | String | |
| 7 | ExchType | Pass the ExchType. | String | |
| 8 | DisQty | Pass the DisQty. | Long | |
| 9 | AtMarket | Pass the AtMarket. | Boolean | true/false |
| 10 | ExchOrderId | Pass the ExchOrderId. | Integer | |
| 11 | LimitPriceInitialOrder | Pass the LimitPriceInitialOrder. | Double | |
| 12 | TriggerPriceInitialOrder | Pass the TriggerPriceInitialOrder. | Double | |
| 13 | LimitPriceProfitOrder | Pass the LimitPriceProfitOrder. | Double | |
| 14 | TriggerPriceForSL | Pass the TriggerPriceForSL. | Double | |
| 15 | TrailingSL | Pass the TrailingSL. | Double | |
| 16 | StopLoss | Pass the StopLoss. | Boolean | |
| 17 | ScripCode | Pass the ScripCode. | Integer | |
| 18 | OrderFor | Pass the OrderFor. | String | |
| 19 | UniqueOrderIDNormal | Pass the UniqueOrderIDNormal. | String | 5000009120154900067 |
| 20 | UniqueOrderIDSL | Pass the UniqueOrderIDSL. | String | |
| 21 | UniqueOrderIDLimit | Pass the UniqueOrderIDLimit. | String | |
| 22 | LocalOrderIDNormal | Pass the LocalOrderIDNormal. | Long | |
| 23 | LocalOrderIDSL | Pass the LocalOrderIDSL. | Long | |
| 24 | LocalOrderIDLimit | Pass the LocalOrderIDLimit. | Long | |
| 25 | PublicIP | Pass the PublicIP. | String | |
| 26 | AppSource | Pass the AppSource. | Integer | |
| 27 | TradedQty | Pass the TradedQty. | Long |
*Note:- All fields are mandatory (cannot be empty)
| Sr.No. | Field Name | Description | Data Type |
|---|---|---|---|
| 1 | LocalOrderIDNormal | Returns the LocalOrderIDNormal. | Integer |
| 2 | LocalOrderIDSL | Returns the LocalOrderIDSL. | Integer |
| 3 | BrokerOrderIDNormal | Returns the BrokerOrderIDNormal. | Integer |
| 4 | BrokerOrderIDSL | Returns the BrokerOrderIDSL. | Integer |
| 5 | RMSStatus | Returns the RMSStatus. | Integer |
| 6 | Time | Returns the Time. | Integer |
| 7 | FirstOrderPrice | Returns the FirstOrderPrice. | Integer |
| 8 | FirstOrderTriggerPrice | Returns the FirstOrderTriggerPrice. | Integer |
| 9 | SLOrderPrice | Returns the SLOrderPrice. | Integer |
| 10 | SLOrderTriggerPrice | Returns the SLOrderTriggerPrice. | Integer |
| 11 | LocalOrderIDProfit | Returns the LocalOrderIDProfit. | Integer |
| 12 | BrokerOrderIDProfit | Returns the BrokerOrderIDProfit. | Integer |
| 13 | ProfitPrice | Returns the ProfitPrice. | Integer |
| 14 | TrailingSL | Returns the TrailingSL. | Integer |
| 15 | ClientCode | Returns the ClientCode. | String |
| 16 | ExchOrderID | Returns the ExchOrderID. | Integer |
| 17 | ExchType | Returns the ExchType. | Char |
| 18 | Exch | Returns the Exch. | Char |
| 19 | RMSResponseCode | Returns the RMSResponseCode. | Integer |
| 20 | Message | Returns the Message. | String |
| 21 | AvlbMgn | Returns the AvlbMgn. | Double |
| 22 | AddReqMgn | Returns the AddReqMgn. | Double |
{
"body": {
"AddReqMgn":0,
"AvlbMgn":0,
"BrokerOrderIDNormal":0,
"BrokerOrderIDProfit":0,
"BrokerOrderIDSL":0,
"ClientCode":"",
"Exch":"\u0000",
"ExchOrderID":0,
"ExchType":"\u0000",
"FirstOrderPrice":0,
"FirstOrderTriggerPrice":0,
"LocalOrderIDNormal":0,
"LocalOrderIDProfit":0,
"LocalOrderIDSL":0,
"Message":"Invalid body parameters.",
"ProfitPrice":0,
"RMSResponseCode":0,
"RMSStatus":0,
"SLOrderPrice":0,
"SLOrderTriggerPrice":0,
"Time":0,
"TrailingSL":0
},
"head":{
"responseCode":"5PSMOOrd",
"status":"0",
"statusDescription":"Success"
}
}
{
"body":null,
"head":{
"responseCode":"5PSMOOrd",
"status":"2",
"statusDescription":"Invalid head parameters."
}
}
{
"head":{
"appName": "5P50000091",
"appVer": "1.0",
"key": "zNfLvA5rBFGvdsHrDqemuG6faBBtFRrV",
"osName": "Android",
"requestCode":"5PSMOOrd",
"userId":"3XAU76dja8q",
"password":"k3SBBhGOXgn"
},
"body":{
"ClientCode" : "50000091",
"OrderRequesterCode" : "50000091",
"RequestType" : "P",
"BuySell" : "B",
"Qty" : "1",
"Exch" : "B",
"ExchType" : "C",
"DisQty" : "0",
"AtMarket" : "true",
"ExchOrderId" : "0",
"LimitPriceInitialOrder" : "0",
"TriggerPriceInitialOrder" : "0",
"LimitPriceProfitOrder" : "420",
"TriggerPriceForSL" : "386",
"TrailingSL" : "0",
"StopLoss" : "0",
"ScripCode" : "532215",
"OrderFor" : "S",
"UniqueOrderIDNormal" : "5000009120154900067",
"UniqueOrderIDSL" : "0",
"UniqueOrderIDLimit" : "0",
"LocalOrderIDNormal" : "5",
"LocalOrderIDSL" : "0",
"LocalOrderIDLimit" : "0",
"PublicIP" : "",
"AppSource" : "6",
"TradedQty" : "0"
}
}
{
"body":{
"AddReqMgn":0,
"AvlbMgn":0,
"BrokerOrderIDNormal":17247902,
"BrokerOrderIDProfit":0,
"BrokerOrderIDSL":0,
"ClientCode":"50000091",
"Exch":"B",
"ExchOrderID":0,
"ExchType":"C",
"FirstOrderPrice":0,
"FirstOrderTriggerPrice":0,
"LocalOrderIDNormal":5,
"LocalOrderIDProfit":0,
"LocalOrderIDSL":0,
"Message":"",
"ProfitPrice":42000,
"RMSResponseCode":0,
"RMSStatus":0,
"SLOrderPrice":0,
"SLOrderTriggerPrice":38600,
"Time":1291334400,
"TrailingSL":0
},
"head": {
"responseCode":"5PSMOOrd",
"status":"0",
"statusDescription":"Success"
}
}