Infinn API Documentation
Holdings and Limits

Holdings and Limits

POST/NorenWClientAPI/Holdings

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

"Use proxy" sends this request through this website's server, which never logs request or response bodies. Infinn sees the docs server's IP, not yours. Turn it off to send directly from your browser instead.

jData fields

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

Logged in User Id

  • Example: YOUR_USER_ID
  • Where to get it: The ID you log in with at trade.infinn.in (User ID = Client ID). Also returned as uid by GenAcsTok.

Account id of the logged in user

  • Example: YOUR_USER_ID
  • Where to get it: Same as User ID for individual accounts. Returned by GenAcsTok / UserDetails.

Product name

  • Example: C
  • Allowed: C = Delivery, M = Margin, H = Cover, I = Intraday, B = Bracket, F = MTF, S = Special, P = Special2

Authorization Token

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

⚠ When "Use proxy" is on, this token is sent through this website's server on its way to Infinn. It is never logged here, but if you would rather it never leave your browser, turn off "Use proxy" above or use the ready code with your own client instead.

Holdings

Request to be POSTed to url: /NorenWClientAPI/Holdings

Request Details:

Parameter NamePossible ValueDescription
jData*JSON objectShould send JSON object with fields in the list below
Authorization*Bearer <access_token>access_token from GenAcsTok response. Required for all API calls.

JSON Fields:

Field NamePossible ValueDescription
uid*Logged in User Id
actid*Account id of the logged in user.
prd*Product name

Response Details:

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

JSON Fields:

Field NamePossible ValueDescription
statOk or Not_OkHolding request success or failure indication.
exch_tsymArray of objects exch_tsym objects as defined below.
holdqtyHolding quantity
dpqtyDP Holding quantity
npoadqtyNon Poa display quantity
colqtyCollateral quantity
benqtyBeneficiary quantity
unplgdqtyUnpledged quantity
brkcolqtyBroker Collateral
btstqtyBTST quantity
btstcolqtyBTST Collateral quantity
usedqtyHolding used today
upldprcAverage price uploaded along with holdings
hair_cutHair Cut
prdProduct
s_prdt_aliProduct display name
trdqtyTrade Quantity
sell_amtSell Amount
npoadt1qtynonpoa display t1 qty
brk_hair_cutBroker HairCut
epi_done_qtyEPI done Quantity
combrkcollqtyCom Broker Collateral Quantity
eqtbrkcollqtyEqt Broker Collateral Quantity
derbrkcollqtyDerivative Broker Collateral Quantity
fxbrkcollqtyFx Broker Collateral Quantity

Notes:

  • Valuation: btstqty + holdqty + brkcolqty + unplgdqty + benqty + Max(npoadqty, dpqty) - usedqty
  • Salable: btstqty + holdqty + unplgdqty + benqty + dpqty - usedqty

exch_tsym Object:

Field NamePossible ValueDescription
exchNSE, BSE, NFO ...Exchange
tsymTrading symbol of the scrip (contract)
tokenToken of the scrip (contract)
ppPrice precision
tiTick size
lsLot size
lpLTP [#]
cnameCompany Name
dnameDisplay Name

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

JSON Fields:

Field NamePossible ValueDescription
statNot_OkPosition book request failure indication.
request_timeResponse received time.
emsgError message

[#] - By Default disabled and Enabled on request basis.

Sample Success Response:

[
  {
    "stat": "Ok",
    "exch_tsym": [
      {
        "exch": "NSE",
        "token": "13",
        "tsym": "ABB-EQ"
      }
    ],
    "holdqty": "2000000",
    "colqty": "200",
    "btstqty": "0",
    "btstcolqty": "0",
    "usedqty": "0",
    "upldprc": "1800.00"
  },
  {
    "stat": "Ok",
    "exch_tsym": [
      {
        "exch": "NSE",
        "token": "22",
        "tsym": "ACC-EQ"
      }
    ],
    "holdqty": "2000000",
    "colqty": "200",
    "btstqty": "0",
    "btstcolqty": "0",
    "usedqty": "0",
    "upldprc": "1400.00"
  }
]

Sample Failure Response:

{
  "stat": "Not_Ok",
  "emsg": "Invalid Input : Missing uid or actid or prd."
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/Holdings' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"uid":"YOUR_USER_ID","actid":"YOUR_USER_ID","prd":"C"}'
Response will appear here after sending a request