Infinn API Documentation
Holdings and Limits

Limits

POST/NorenWClientAPI/Limits

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.

Logged in User Id

Account id of the logged in user

Product name

Product display name

Segment

Exchange

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/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 'Content-Type: text/plain' \
  --data 'jData={}'
Response will appear here after sending a request