Skip to main content

Interop Positions Book

Request to be POSTed to uri : /NorenWClientTP/InteropPositionBook

Request Details :

Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
jKey*Key Obtained on login success.
Json FieldsPossible valueDescription
actid*Account id of the logged in user.

Example:

curl https://apitest.kambala.co.in/NorenWClientTP/InteropPositionBook \
-d "jData={ \”actid\”:\”ACCT_1\”}“ \
-d “jKey=GHUDWU53H32MTHPA536Q32WR”

Response Details :

Response data will be in json format with Array of Objects with below fields in case of success.

Json FieldsPossible valueDescription
statOk or Not_OkPosition book success or failure indication.
exchExchange segment
tsymTrading symbol / contract.
tokenContract token
uidUser Id
actidAccount Id
prdProduct name to be shown.
s_prdt_aliProduct display name
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 Amounte
totsellamtTotal Sell Amount
totbuyavgprcTotal Buy Avg Price
totsellavgprcTotal Sell Avg Price
openbuyavgprcOpen Buy Average Price
opensellavgprcOpen Sell Average Price
cfbuyavgprcCarry Forward Buy average price
cfsellavgprcCarry Forward Buy average price
child_ordersArray Object ,Details given below

child_orders Obj format

Json FieldsPossible valueDescription
exchExchange segment
tokenContract token
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
upload_prcUpload Price
totbuyamtTotal Buy Amount
totsellamtTotal Sell Amount
totbuyavgprcTotal Buy Avg Price
totsellavgprcTotal Sell Avg Price
openbuyavgprcOpen Buy Average Price
opensellavgprcOpen Sell Average Price
cfbuyavgprcCarry Forward Buy average price
cfsellavgprcCarry Forward Buy average price

Response data will be in json format with below fields in case of failure:

Json FieldsPossible valueDescription
statOk or Not_OkInterop Position book request failure indication.
request_timeResponse received time.
emsgError message

Sample Success Response :

[
{
"stat":"Ok",
"actid":"TESTINV1",
"exch":"EQT",
"token":"PRAKASH",
"prd":"I",
"openbuyqty":"00",
"opensellqty":"09",
"openbuyamt":"00",
"opensellamt":"54000",
"daybuyqty":"01",
"daysellqty":"01",
"daybuyamt":"6000",
"daysellamt":"6000",
"cfbuyqty":"00",
"cfsellqty":"00",
"cfbuyamt":"00",
"cfsellamt":"6000",

"child_orders":
[
{
"exch":"NSE",
"token":"2708",
"openbuyqty":"00",
"opensellqty":"09",
"openbuyamt":"00",
"opensellamt":"54000",
"daybuyqty":"00",
"daysellqty":"01",
"daybuyamt":"00",
"daysellamt":"6000",
"cfbuyqty":"00",
"cfsellqty":"00",
"cfbuyamt":"00",
"cfsellamt":"00",
"upload_prc":"00"
},
{
"exch":"BSE",
"token":"506022",
"openbuyqty":"00",
"opensellqty":"00",
"openbuyamt":"00",
"opensellamt":"00",
"daybuyqty":"01",
"daysellqty":"00",
"daybuyamt":"6000",
"daysellamt":"00",
"cfbuyqty":"00",
"cfsellqty":"00",
"cfbuyamt":"00",
"cfsellamt":"00",
"upload_prc":"00"
}
]
}
]

Sample Failure Response :

{
"stat":"Not_Ok",
"request_time":"14:14:11 26-05-2020",
"emsg":"Error Occurred : 5 \"no data\""
}