Get Sub Limits
/NorenWClientAPI/GetSubLimitsAuthorization 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.
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/GetSubLimits
Request Details:
| Parameter Name | Possible Value | Description |
|---|---|---|
| jData* | JSON object | Should 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 Name | Possible Value | Description |
|---|---|---|
| uid* | Logged in User Id | |
| actid | Account id of the logged in user |
Response Details:
Response data will be in JSON array of objects with the fields below in case of success:
JSON Fields:
| Field Name | Possible Value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Request success or failure indication |
| actid | Account id | |
| prd | Product name | |
| s_prdt_ali | Product display name | |
| seg | EQT/DER/FX/COM | Segment |
| exch | Exchange | |
| cash | Cash Margin available | |
| payin | Total Amount transferred using Payins today | |
| payout | Total amount requested for withdrawal today | |
| brkcollamt | Prevalued Collateral Amount | |
| unclearedcash | Uncleared Cash (Payin through cheques) | |
| daycash | Additional leverage amount / Amount added to handle system errors - by broker. | |
| marginused | Total margin / fund used today | |
| mtomcurper | Mtom current percentage | |
| cbu | CAC Buy used | |
| csc | CAC Sell Credits | |
| rpnl | Current realized PNL | |
| unmtom | Current unrealized mtom | |
| marprt | Covered Product margins | |
| span | Span used | |
| expo | Exposure margin | |
| premium | Premium used | |
| varelm | Var Elm Margin | |
| grexpo | Gross Exposure | |
| greexpo_d | Gross Exposure derivative | |
| scripbskmar | Scrip basket margin | |
| addscripbskmrg | Additional scrip basket margin | |
| brokerage | Brokerage amount | |
| collateral | Collateral calculated based on uploaded holdings | |
| grcoll | Valuation of uploaded holding pre haircut |
Sample Success Response:
[
{
"request_time": "17:03:37 04-07-2022",
"stat": "Ok",
"prfname": "KAMBALA",
"cash": "50000000.00",
"daycash": "0.00",
"blk_amt": "0.00",
"unclearedcash": "0.00",
"brkcollamt": "0.00",
"payin": "320.00",
"payout": "-24.00"
},
{
"request_time": "17:03:37 04-07-2022",
"stat": "Ok",
"prfname": "DEFAULT",
"cash": "213145.00",
"daycash": "0.00",
"blk_amt": "0.00",
"unclearedcash": "0.00",
"brkcollamt": "0.00",
"payin": "320.00",
"payout": "-24.00"
},
{
"request_time": "17:03:37 04-07-2022",
"stat": "Ok",
"prfname": "DEFAULT",
"cash": "12345.00",
"daycash": "0.00",
"blk_amt": "0.00",
"unclearedcash": "0.00",
"brkcollamt": "0.00",
"payin": "320.00",
"payout": "-24.00"
}
]Sample Failure Response:
{
"stat": "Not_Ok",
"emsg": "Server Timeout"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/GetSubLimits' \
--header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"YOUR_USER_ID"}'