Skip to content

Subscribe Position Update

Request

Json Fields Possible value Description
t p ‘p’ represents position subscription
uid User id

Response

Json Fields Possible value Description
t pk ‘pk’ represents position acknowledgement
uid User id

On successful connection establishment, position updates will be received if it is made available in the startup (-position_update).

Position Update subscription Updates

<tr><td>netqty</td><td></td><td>
Net Quantity<br />
[ daybuyqty + cfbuyqty - daysellqty - cfsellqty ]
</td></tr>
<tr><td>totbuyamt</td><td></td><td>Total Buy Amount</td></tr>
<tr><td>totsellamt</td><td></td><td>Total Sell Amount</td></tr>
<tr><td>totbuyavgprc</td><td></td><td>Total Buy Avg Price</td></tr>
<tr><td>totsellavgprc</td><td></td><td>Total Sell Avg Price</td></tr>
<tr><td>child_orders</td><td></td><td>Array Object, Details given below</td></tr>
</tbody>
Json Fields Possible value Description
tpm‘pm’ represents position update
exchExchange segment
tsymTrading symbol / contract
tokenContract token
uidUser Id
actidAccount Id
prdProduct name to be shown
daybuyqtyDay Buy Quantity
daysellqtyDay Sell Quantity
daybuyamtDay Buy Amount
daysellamtDay Sell Amount
cfbuyqtyCarry Forward Buy Quantity
cfsellqtyCarry Forward Sell Quantity
cfbuyamtCarry Forward Buy Amount
cfsellamtCarry Forward Sell Amount
openbuyqtyOpen Buy Quantity
opensellqtyOpen Sell Quantity
openbuyamtOpen Buy Amount
opensellamtOpen Sell Amount
instnameInstrument Name
upload_prcUpload Price
buyavgprc Buy Average Price
[ (daybuyamt + cfbuyamt) / (daybuyqty + cfbuyqty) ]
sellavgprc Sell Average Price
[ (daysellamt + cfsellamt) / (daysellqty + cfsellqty) ]
rpnlRealized panel

Json Fields of object in child_orders Array

Json Fields Possible value Description
exchExchange segment
tokenContract token
tsymTrading symbol / contract
daybuyqtyDay Buy Quantity
daysellqtyDay Sell Quantity
daybuyamtDay Buy Amount
daysellamtDay Sell Amount
cfbuyqtyCF Buy Quantity
cfsellqtyCF Sell Quantity
cfbuyamtCF Buy Amount
cfsellamtCF Sell Amount
openbuyqtyOpen Buy Quantity
opensellqtyOpen Sell Quantity
openbuyamtOpen Buy Amount
opensellamtOpen Sell Amount
rpnlRealized panel
netqty Net Quantity
[ daybuyqty + cfbuyqty - daysellqty - cfsellqty ]
upload_prcUpload Price
totbuyamtTotal Buy Amount
totsellamtTotal Sell Amount
totbuyavgprcTotal Buy Avg Price
totsellavgprcTotal Sell Avg Price
buyavgprcBuy Average Price
sellavgprcSell Average Price