Position Update Feed
This document details how to get position Update feed on the Firstock Websockets.
Overview
The Order‑Update Feed delivers real-time updates on the status of your orders via a persistent WebSocket connection.
Response Structure
Body
On successful connection establishment, order updates will be received.
Parameter | Description |
---|---|
child_orders | List of child order objects |
upload_prc | Uploaded price for the order |
totsellamt | Total sell amount |
daybuyqty | Quantity bought during the day |
daybuyamt | Amount spent on buying during the day |
sellavgprc | Average selling price |
rpnl | Realized Profit and Loss |
totbuyamt | Total amount spent on buying |
daybuyavgprc | Day-wise average buy price |
netqty | Net quantity |
buyavgprc | Average buying price |
totbuyavgprc | Total average buying price |
opensellqty | Open sell quantity |
openbuyamt | Open buy amount |
opensellamt | Open sell amount |
totsellavgprc | Total average sell price |
uptm | Update timestamp |
openbuyqty | Open buy quantity |
brkname | Broker name or code |
instname | Instrument name (e.g., EQ for Equity) |
Response
{
"child_orders": [
{
"ls": "1",
"upload_prc": "00",
"totsellamt": "0.00",
"exch": "NSE",
"pp": "2",
"mult": "1",
"prcftr": "1.000000",
"daybuyqty": "1",
"daybuyamt": "2.67",
"sellavgprc": "0.00",
"token": "9931",
"tsym": "VIKASLIFE-EQ",
"rpnl": "-0.00",
"totbuyamt": "2.67",
"ti": "0.01",
"daybuyavgprc": "2.67",
"netqty": "1",
"buyavgprc": "2.67",
"totbuyavgprc": "2.67"
}
],
"buyavgprc": "2.67",
"sellavgprc": "0.00",
"totbuyavgprc": "2.67",
"rpnl": "-0.00",
"opensellqty": "00",
"uid": "NP2997",
"prcftr": "1.000000",
"daybuyavgprc": "2.67",
"totsellamt": "0.00",
"openbuyamt": "0.00",
"netqty": "1",
"pp": "2",
"token": "VIKASLIFE",
"pcode": "C",
"brkname": "90047",
"opensellamt": "0.00",
"daybuyqty": "01",
"totsellavgprc": "0.00",
"totbuyamt": "2.67",
"uptm": "11003337967278",
"ti": "5.00",
"daybuyamt": "2.67",
"openbuyqty": "00",
"upload_prc": "00",
"actid": "NP2997",
"exch": "EQT",
"mult": "1",
"ls": "1",
"tsym": "VIKASLIFE-EQ",
"instname": "EQ"
}