Infinn API Documentation
Web Socket API

Subscribe Position Update

Request

Json FieldsPossible valueDescription
tp‘p’ represents position subscription
uidUser id

Response

Json FieldsPossible valueDescription
tpk‘pk’ represents position acknowledgement
uidUser id

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

Position Update subscription Updates

Json FieldsPossible valueDescription
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
buyavgprcBuy Average Price [ (daybuyamt + cfbuyamt) / (daybuyqty + cfbuyqty) ]
sellavgprcSell Average Price [ (daysellamt + cfsellamt) / (daysellqty + cfsellqty) ]
rpnlRealized panel
netqtyNet Quantity [ daybuyqty + cfbuyqty - daysellqty - cfsellqty ]
totbuyamtTotal Buy Amount
totsellamtTotal Sell Amount
totbuyavgprcTotal Buy Avg Price
totsellavgprcTotal Sell Avg Price
child_ordersArray Object, Details given below

Json Fields of object in child_orders Array

Json FieldsPossible valueDescription
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
netqtyNet 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

On this page