Infinn API Documentation
Order and Trades

Product Conversion

POST/NorenWClientAPI/ProductConversion

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.

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 NamePossible valueDescription
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 FieldsPossible valueDescription
exch*ExchangeExchange
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 idAccount 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 typeTransaction type
postype*Day / CFConverting Day or Carry forward position
ordersource*MOBFor Logging

Response Details

Response data will be in json format with below fields:

Json FieldsPossible valueDescription
statOk or Not_OkPosition conversion success or failure indication.
emsgThis 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={}'
Response will appear here after sending a request