Holdings Conversion
/NorenWClientAPI/HoldingsConvAuthorization 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
ISIN
Source Broker Id
Optional
Only when holdqty is present
If holdqty is not there
If holdqty or dpqty is not there
If holdqty, dpqty, or benqty is not there
If holdqty, dpqty, benqty, or unplgdqty is not there
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/HoldingsConv
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 | |
| prd* | Product name | |
| isin* | ISIN | |
| src_brkuid | Source Broker Id | |
| holdqty | Holding quantity | Optional |
| colqty | Collateral Quantity | Only when holdqty is present |
| dpqty | DP Holding Quantity | If holdqty is not there |
| benqty | Beneficiary Holding Quantity | If holdqty or dpqty is not there |
| unplgdqty | Unplgd Holding Quantity | If holdqty, dpqty, or benqty is not there |
| brkcolqty | Broker Collateral Quantity | If holdqty, dpqty, benqty, or unplgdqty is not there |
Notes:
colqtywill be taken only ifholdqtyis provided.dpqtywill be taken only ifholdqtyis not provided.benqtywill be taken if bothholdqtyordpqtyare not provided.unplgdqtywill be taken ifholdqty,dpqty, orbenqtyare not provided.brkcolqtywill be taken only if the above quantities are not provided.
Response Details:
Response data will be in JSON format with the fields below in case of success:
JSON Fields:
| Field Name | Possible Value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Position book request success or failure indication. |
| request_time | Response received time. | |
| norentm | Noren time stamp | |
| noren_nsecs | Noren Nanoseconds | |
| emsg | Error message |
Sample Success Response:
{
"request_time": "17:33:10 04-07-2024",
"norentm": "1720094590",
"noren_nsecs": "25659771",
"stat": "Ok"
}Sample Failure Response:
{
"stat": "Not_Ok",
"request_time": "17:36:21 04-07-2024",
"emsg": "Error Occurred : 2 \"invalid input[Account doesn't exist]\""
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/HoldingsConv' \
--header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"YOUR_USER_ID","actid":"YOUR_USER_ID","prd":"C","isin":""}'