Infinn API Documentation
Order and Trades

Place Order

POST/NorenWClientAPI/PlaceOrder

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

Login users account ID

Exchange (Select from ‘exarr’ Array provided in User Details response)

Unique id of contract on which order to be placed. (use url encoding to avoid special char error for symbols like M&M)

Order Quantity

Order Price (if prctyp = 'MKT/ SL-MKT' then the price will be '0')

Only to be sent in case of SL-LMT / SL-MKT order.

Disclosed quantity (Max 10% for NSE, and 50% for MCX)

C-Delivery, M-Margin, H-Cover Order, I-Intraday, B-Bracket order, F-MTF, S-Special, P-Special2

B -> BUY, S -> SELL

LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L

Market order protection percentage. Applicable only for MKT orders in BSE/BFO/BCS and MCX segments.

Retention type (Show options as per allowed exchanges)

Any tag by user to mark order.

Used to generate exchange info fields.

Book Profit Price applicable only if product is selected as B (Bracket order)

Book loss Price applicable only if product is selected as H and B (High Leverage and Bracket order)

Trailing Price applicable only if product is selected as H and B (High Leverage and Bracket order)

External remarks

Cli Order Id

Channel

User Agent

App Install Id

The message "Invalid AMO" will be displayed if the "amo" field is not sent with a "Yes" value. If amo is not required, do not send this field.

Trading symbol of second leg, mandatory for price type 2L and 3L

Transaction type of second leg, mandatory for price type 2L and 3L

Quantity for second leg, mandatory for price type 2L and 3L

Price for second leg, mandatory for price type 2L and 3L

Trading symbol of third leg, mandatory for price type 3L

Transaction type of third leg, mandatory for price type 3L

Quantity for third leg, mandatory for price type 3L

Price for third leg, mandatory for price type 3L

Instrument Name

Client IP address

Cautionary message

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/PlaceOrder

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
uid*Logged in User Id
actid*Login users account ID
exch*NSE / NFO / BSE / MCX / CDS / NCX / BFO / BCDExchange (Select from ‘exarr’ Array provided in User Details response)
tsym*Unique id of contract on which order to be placed. (use url encoding to avoid special char error for symbols like M&M)
qty*Order Quantity
prc*Order Price (if prctyp = 'MKT/ SL-MKT' then the price will be '0')
trgprcOnly to be sent in case of SL-LMT / SL-MKT order.
dscqtyDisclosed quantity (Max 10% for NSE, and 50% for MCX)
prd*C / M / H / I / B / F / S / PC-Delivery, M-Margin, H-Cover Order, I-Intraday, B-Bracket order, F-MTF, S-Special, P-Special2
trantype*B / SB -> BUY, S -> SELL
prctyp*LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L
mkt_protectionMarket order protection percentage. Applicable only for MKT orders in BSE/BFO/BCS and MCX segments.
ret*DAY / EOS / IOCRetention type (Show options as per allowed exchanges)
remarksAny tag by user to mark order.
ordersourceMOB / WEB / TT / APIUsed to generate exchange info fields.
bpprcBook Profit Price applicable only if product is selected as B (Bracket order)
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket order)
trailprcTrailing Price applicable only if product is selected as H and B (High Leverage and Bracket order)
ext_remarksExternal remarks
cl_ord_idCli Order Id
channelChannel
usr_agentUser Agent
app_inst_idApp Install Id
amoYesThe message "Invalid AMO" will be displayed if the "amo" field is not sent with a "Yes" value. If amo is not required, do not send this field.
tsym2Trading symbol of second leg, mandatory for price type 2L and 3L
trantype2Transaction type of second leg, mandatory for price type 2L and 3L
qty2Quantity for second leg, mandatory for price type 2L and 3L
prc2Price for second leg, mandatory for price type 2L and 3L
tsym3Trading symbol of third leg, mandatory for price type 3L
trantype3Transaction type of third leg, mandatory for price type 3L
qty3Quantity for third leg, mandatory for price type 3L
prc3Price for third leg, mandatory for price type 3L
instnameInstrument Name
ipaddrClient IP address
cau_msgCautionary message

Example

curl https://apitest.kambala.co.in/NorenWClientAPI/PlaceOrder \
    -d "jData={\"uid\":\"VIDYA\", \"actid\":\"CLIENT1\", \"exch\":\"NSE\", \"tsym\":\"ACC-EQ\", \"qty\":\"50\", \"price\":\"1400\", \"prd\":\"H\", \"trantype\":\"B\", \"prctyp\":\"LMT\", \"ret\":\"DAY\"}"

Response Details

Response data will be in json format with below fields:

Json FieldsPossible valueDescription
statOk or Not_OkPlace order success or failure indication.
request_timeResponse received time.
norenordnoIt will be present only on successful Order placement to OMS.
emsgThis will be present only if Order placement fails

Sample Success Response

{
    "request_time": "10:48:03 20-05-2020",
    "stat": "Ok",
    "norenordno": "20052000000017"
}

Sample Failure Response

{
    "stat": "Not_Ok",
    "request_time": "20:40:01 19-05-2020",
    "emsg": "Error Occurred : 2 \"invalid input\""
}
curl --request POST \
  --url 'https://api.infinn.in/NorenWClientAPI/PlaceOrder' \
  --header 'Content-Type: text/plain' \
  --data 'jData={}'
Response will appear here after sending a request