Back to home
Doc Fundamentals
API Reference
Funds Management
Order Management
Portfolio Management
User Authentication
Order Status
POSTJSONRest API
176632
Daily API Calls
99.97%
Success Rate
97.72ms
Avg. Response Time
This API helps you to check order status of placed orders using the RemoteOrderID.
API provides detail list which includes various parameters such as average Price , exchange order ID,trigger rate, quantity traded and pending etc.
Common Usage
Use Order Status API instead of Order Book API to know status of your Order as this API will help with details of Specific order and not all the orders.
This API returns Exchange Order ID which can be further used to modify orders.
REQUEST URL
https://Openapi.5paisa.com/VendorsAPI/Service1.svc/V2/OrderStatus
Request headers
KEY | VALUE |
---|---|
Content-Type | application/json |
Authorization | bearer {Your Access Token} |
Request body
FIELD NAME | MANDATORY | DESCRIPTION | |
---|---|---|---|
head | keySTRING | Yes | AppKey of User or Partner |
body | ClientCodeSTRING | Yes | 5paisa demat account client code of the user in plain text. |
body:OrdStatusReqList | ExchSTRING | Yes | This is the exchange in which order is placed. |
body:OrdStatusReqList | RemoteOrderIDSTRING | Yes | This is the RemoteOrderId passed by user while placing the order. |
SAMPLE REQUEST BODY :
{
"head":{
"key": "{{Your App Key}}"
},
"body": {
"ClientCode": "{{clientcode}}",
"OrdStatusReqList": [
{
"Exch": "N",
"RemoteOrderID": "0327020205139304480"
},
{
"Exch": "N",
"RemoteOrderID": "203051105331"
}
]
}
}
Response body
FIELD NAME | VALUES | DESCRIPTION | |
---|---|---|---|
head | responseCodeSTRING | 5POrdStatusV2 | This is the unique response code for the API. |
statusSTRING | 0: Success2: Invalid head parameters.
| This is the status code which depicts the status of API request to the server. | |
statusDescriptionSTRING | SuccessInvalid head parameters. | This is the description of the status received from the server for the API request. | |
body | OrdStatusResLstARRAY | It provides the order details for the requested order ids. | |
StatusINTEGER | 0: Success1: No orders found for this Client.9: Invalid Session | This is the numeric code | |
MessageSTRING | SuccessNo orders found for this Client.Invalid Session | This is the description of the status of API request. |
OrderBookDetail
FIELD NAME | VALUES | DESCRIPTION |
---|---|---|
AveragePriceSTRING | - | This specifies Average Price at which all trades are processed. For Partially filled order this will reflect price for filled trades. |
ExchOrderIDSTRING | - | This is the order ID generated by the exchange. |
ExchOrderTimeDATETIME | - | Timestamp at which order is placed in the exchange. |
ExchTypeSTRING | C: Cash | This is exchange type in which the order is placed. |
OldorderQtyINTEGER | - | This is the original order quantity in case any modification is done to the order. |
OrderRequesterCodeSTRING | - | This is 5paisa Securities client code of the user for which order is placed. |
OrderStatusSTRING | Mentioned in the table below | This is current status of the order. |
PendingQtyINTEGER | - | This is the quantity pending to be executed. |
OrderQtyINTEGER | - | This is the total quantity of the order. |
OrderRateDOUBLE | - | This is the price rate at which order is placed. |
ScripCodeINTEGER | - | This is the unique code for instrument in which order is placed. |
SymbolSTRING | - | This is the name of the instrument for which order is placed. |
TradedQtyINTEGER | - | This is the quantity which has been executed. |
Order Status
STATUS | DESCRIPTION |
---|---|
Fully Executed | Order has been fully executed. |
Modified | Order has been modified from its original execution state. |
Xmitted | Order has been prepared by 5paisa system, but exchange rejected it or hasn't reached exchange. |
Rejected By 5P | 5paisa Securities system rejected the order. |
Rejected by Exch | Order has been rejected by exchange. |
Cancelled | Order has been cancelled. |
Pending | Order has been placed and is pending. |
SAMPLE SUCCESS RESPONSE
{
"body": {
"Message": "Success",
"OrdStatusResLst": [
{
"AveragePrice": 431.05,
"Exch": "N",
"ExchOrderID": 10000365323,
"ExchOrderTime": "/Date(1715587966000+0530)/",
"ExchType": "C",
"OrderQty": 1,
"OrderRate": 431.05,
"PendingQty": 1,
"ScripCode": 1660,
"Status": "Modified",
"Symbol": "ITC",
"TradedQty": 0
},
{
"AveragePrice": 431.05,
"Exch": "N",
"ExchOrderID": 100000365383,
"ExchOrderTime": "/Date(1715587966000+0530)/",
"ExchType": "C",
"OrderQty": 1,
"OrderRate": 431.05,
"PendingQty": 0,
"ScripCode": 1660,
"Status": "Fully Executed",
"Symbol": "ITC",
"TradedQty": 1
}
],
"Status": 0
},
"head": {
"responseCode": "5POrdStatusV2",
"status": "0",
"statusDescription": "Success"
}
}
Failure when user has passed incorrect Remote Order Id
{
"body": {
"Message": "Success",
"OrdStatusResLst": [],
"Status": 0
},
"head": {
"responseCode": "5POrdStatusV2",
"status": "0",
"statusDescription": "Success"
}
}
On this Page