Infinn API Documentation
Order and Trades

Interop Positions Book

POST/NorenWClientAPI/InteropPositionBook

Authorization token is required. Enter your access_token from GenAcsTok above.

jData fields

Values are sent as a JSON string in the jData form field.

Account id of the logged in user.

Authorization Token

Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.

Request to be POSTed to url : /NorenWClientAPI/InteropPositionBook

Request Details

Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
Authorization*Bearer <access_token>access_token from GenAcsTok response. Required for all API calls.
Json FieldsPossible valueDescription
actid*Account id of the logged in user.

Example

curl https://apitest.kambala.co.in/NorenWClientAPI/InteropPositionBook \
    -d "jData={\"actid\":\"ACCT_1\"}"

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 PnL
netqtyNet Quantity [daybuyqty + cfbuyqty - daysellqty - cfsellqty]
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 Sell average price
child_ordersArray ObjectDetails given below
netavgprcNet Average Price
multMultiplier
urmtomUnrealized MTOM
prcftrPrice Factor

Child Orders Object 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 Sell average price
netupldprcNet Upload Price

Response Details in case of failure

Json FieldsPossible valueDescription
statNot_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\""
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/InteropPositionBook' \
  --header 'Content-Type: text/plain' \
  --data 'jData={}'
Response will appear here after sending a request