Infinn API Documentation
Holdings and Limits

Limits

POST/NorenWClientAPI/Limits

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

Product display name

Segment

Exchange

  • Example: NSE
  • Where to get it: 'exarr' array in the UserDetails response.
  • Allowed: NSE, NFO, BSE, MCX, CDS, NCX, BFO, BCD

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.

Request to be POSTed to url: /NorenWClientAPI/Limits

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
prdProduct name
s_prdt_aliProduct display name
segEQT/DER/FX/COMSegment
exchExchange

Response Details:

Response data will be in JSON format with the fields below:

JSON Fields:

Field NamePossible ValueDescription
statOk or Not_OkLimits request success or failure indication.
actidAccount id
prdProduct name
segEQT/DER/FX/COMSegment
exchExchange

Cash Primary Fields:

Field NameDescription
cashCash Margin available
payinTotal Amount transferred using Payins today
payoutTotal amount requested for withdrawal today
remarks_amtRemarks amount
remarks_textRemarks Text
cac_daycashCAC Day Cash

Cash Additional Fields:

Field NameDescription
brkcollamtPrevalued Collateral Amount
unclearedcashUncleared Cash (Payin through cheques)
daycashAdditional leverage amount / Amount added to handle system errors - by broker.

Margin Utilized:

Field NameDescription
marginusedTotal margin / fund used today
mtomcurperMtom current percentage

Margin Used Components:

Field NameDescription
cbuCAC Buy used
cscCAC Sell Credits
rpnlCurrent realized PNL
unmtomCurrent unrealized mtom

Additional Risk Limits:

Field NameDescription
turnoverlmtTurnover
pendordvallmtPending Order value

Additional Risk Indicators:

Field NameDescription
turnoverTurnover
pendordvalPending Order value

Margin Used Detailed Breakup Fields:

Field NameDescription
rzpnl_e_iCurrent realized PNL (Equity Intraday)
rzpnl_e_mCurrent realized PNL (Equity Margin)
rzpnl_e_cCurrent realized PNL (Equity Cash n Carry)
rzpnl_d_iCurrent realized PNL (Derivative Intraday)
rzpnl_d_mCurrent realized PNL (Derivative Margin)
rzpnl_f_iCurrent realized PNL (FX Intraday)
rzpnl_f_mCurrent realized PNL (FX Margin)
rzpnl_c_iCurrent realized PNL (Commodity Intraday)
rzpnl_c_mCurrent realized PNL (Commodity Margin)
uzpnl_e_iCurrent unrealized MTOM (Equity Intraday)
uzpnl_e_mCurrent unrealized MTOM (Equity Margin)
uzpnl_e_cCurrent unrealized MTOM (Equity Cash n Carry)
uzpnl_d_iCurrent unrealized MTOM (Derivative Intraday)
uzpnl_d_mCurrent unrealized MTOM (Derivative Margin)
uzpnl_f_iCurrent unrealized MTOM (FX Intraday)
uzpnl_f_mCurrent unrealized MTOM (FX Margin)
uzpnl_c_iCurrent unrealized MTOM (Commodity Intraday)
uzpnl_c_mCurrent unrealized MTOM (Commodity Margin)
span_d_iSpan Margin (Derivative Intraday)
span_d_mSpan Margin (Derivative Margin)
span_f_iSpan Margin (FX Intraday)
span_f_mSpan Margin (FX Margin)
span_c_iSpan Margin (Commodity Intraday)
span_c_mSpan Margin (Commodity Margin)
expo_d_iExposure Margin (Derivative Intraday)
expo_d_mExposure Margin (Derivative Margin)
expo_f_iExposure Margin (FX Intraday)
expo_f_mExposure Margin (FX Margin)
expo_c_iExposure Margin (Commodity Intraday)
expo_c_mExposure Margin (Commodity Margin)

Sample Success Response:

{
  "request_time": "18:07:31 29-05-2020",
  "stat": "Ok",
  "cash": "1500000000000000.00",
  "payin": "0.00",
  "payout": "0.00",
  "brkcollamt": "0.00",
  "unclearedcash": "0.00",
  "daycash": "0.00",
  "turnoverlmt": "50000000000000.00",
  "pendordvallmt": "2000000000000000.00",
  "turnover": "3915000.00",
  "pendordval": "2871000.00",
  "marginused": "3945540.00",
  "mtomcurper": "0.00",
  "urmtom": "30540.00",
  "grexpo": "3915000.00",
  "uzpnl_e_i": "15270.00",
  "uzpnl_e_m": "61080.00",
  "uzpnl_e_c": "-45810.00"
}

Sample Failure Response:

{
  "stat": "Not_Ok",
  "emsg": "Server Timeout : "
}

Calculations:

  1. Available Margin: total - marginused, where total = cash + payin + payout + daycash + unclearedcash + brkcollamt + collateral + aux_brkcollamt
  2. Total Credits: cash + payin + payout + daycash + unclearedcash + brkcollamt + collateral + aux_brkcollamt
  3. Utilization: marginused
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/Limits' \
  --header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
  --header 'Content-Type: text/plain' \
  --data 'jData={"uid":"YOUR_USER_ID","actid":"YOUR_USER_ID"}'
Response will appear here after sending a request