Introduction¶
Webhook empowers traders to receive real-time updates on order-related events directly from our system. Traders can register their webhook endpoint, and our system will notify them asynchronously whenever there is a relevant change in the order status. Use the methods below to subscribe and unsubscribe for order updates.
Authorization type: Bearer Token
Subscribe¶
To subscribe to our Order Update Webhook service and start receiving real-time notifications, users can effortlessly register their webhook endpoint using the URL below. Users can subscribe up to 5 URLs per user ID.
URL: https://web.gopocket.in/order-notify/webhook/subscribe
Sample Request:
Unsubscribe¶
To unsubscribe from our Order Update Webhook service and cease receiving notifications, users can easily deactivate the webhook by utilizing the URL below.
URL: https://web.gopocket.in/order-notify/webhook/unSubscribe
Sample Request:
Sample Order Update¶
{
"norenordno": "123456789",
"actid": "DEMO123",
"exch": "NSE",
"tsym": "INFY-EQ",
"qty": "1",
"prc": "1594.00",
"prd": "CNC",
"status": "",
"reporttype": "",
"trantype": "",
"prctyp": "",
"ret": "",
"fillshares": "",
"avgprc": "",
"fltm": "",
"flid": "",
"flqty": "",
"flprc": "",
"rejreason": "",
"exchordid": "",
"cancelqty": "",
"remarks": "",
"dscqty": "",
"trgprc": "",
"snonum": "",
"snoordt": "",
"blprc": "",
"bpprc": "",
"trailprc": "",
"exch_tm": "",
"amo": "",
"tm": "",
"ntm": "",
"kidid": "",
"sno_fillid": "",
"pcode": ""
}
| Field | Type | Description |
|---|---|---|
| norenordno | string | Order number |
| actid | string | Account ID |
| exch | string | Exchange |
| tsym | string | Trading symbol |
| qty | string | Quantity |
| prc | string | Price |
| prd | string | Product type |
| status | string | Order status |
| reporttype | string | Order report type |
| trantype | string | Transaction type (Buy/Sell) |
| prctyp | string | Price type |
| ret | string | Retention type |
| fillshares | string | Filled shares |
| avgprc | string | Average Price |
| fltm | string | Filled time |
| flid | string | Filled ID |
| flqty | string | Filled quantity |
| flprc | string | Filled Price |
| rejreason | string | Reject Reason |
| exchordid | string | Exchange order ID |
| cancelqty | string | Cancelled Quantity |
| remarks | string | Remarks |
| dscqty | string | Disclosed Quantity |
| trgprc | string | Trigger Price |
| snonum | string | SNO order Number (BO CO orders only) |
| snoordt | string | SNO order date (BO CO orders only) |
| trailprc | string | Trailing Price |
| exch_tm | string | Exchange time |
| amo | string | AMO type |
| no_fillid | string | SNO filled ID (BO CO orders only) |
| pcode | string | Product Code |