Product Conversion
/NorenWClientAPI/ProductConversionAuthorization token is required. Enter your access_token from GenAcsTok above.
jData fields
Values are sent as a JSON string in the jData form field.
Exchange
Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M)
Quantity to be converted.
User id of the logged in user.
Account id
Product to which the user wants to convert position.
Original product of the position.
Transaction type
Converting Day or Carry forward position
For Logging
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/ProductConversion
Request Details
| Parameter Name | Possible value | Description |
|---|---|---|
| jData* | Should send json object with fields in below list | |
| Authorization* | Bearer <access_token> | access_token from GenAcsTok response. Required for all API calls. |
| Json Fields | Possible value | Description |
|---|---|---|
| exch* | Exchange | Exchange |
| tsym* | Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M) | Unique id of contract on which order was placed. Can’t be modified, must be the same as that of original order. (use url encoding to avoid special char error for symbols like M&M) |
| qty* | Quantity to be converted. | Quantity to be converted. |
| uid* | User id of the logged in user. | User id of the logged in user. |
| actid* | Account id | Account id |
| prd* | Product to which the user wants to convert position. | Product to which the user wants to convert position. |
| prevprd* | Original product of the position. | Original product of the position. |
| trantype* | Transaction type | Transaction type |
| postype* | Day / CF | Converting Day or Carry forward position |
| ordersource* | MOB | For Logging |
Response Details
Response data will be in json format with below fields:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Ok or Not_Ok | Position conversion success or failure indication. |
| emsg | This will be present only if Position conversion fails. |
Sample Success Response
{
"request_time":"10:52:12 02-06-2020",
"stat":"Ok"
}Sample Failure Response
{
"stat":"Not_Ok",
"emsg":"Invalid Input : Invalid Position Type"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/ProductConversion' \
--header 'Content-Type: text/plain' \
--data 'jData={}'