Skip to main content

Place Order

Request to be POSTed to uri : /NorenWClientTP/PlaceOrder

Request Details :

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
trgprcOnly to be sent in case of SL / SL-M order.
dscqtyDisclosed quantity (Max 10% for NSE, and 50% for MCX)
prd*C / M / H /I / B /F /S /P ( C-Delivery , M-Carry Forward(CF) ,H-Cover Order,I-Intraday,B-Bracketorder,F-MTF,S-Special,P-Special2)Product name (Select from ‘prarr’ Array provided in User Details response, and if same is allowed for selected, exchange. Show product display name, for user to select, and send corresponding prd in API call)
trantype*B / SB -> BUY, S -> SELL
prctyp*LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L
ret*DAY / EOS / IOCRetention type (Show options as per allowed exchanges)
remarksAny tag by user to mark order.
ordersourceMOB / WEB / TTUsed 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
amoThe 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 (use url encoding to avoid special char error for symbols like M&M)
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 (use url encoding to avoid special char error for symbols like M&M)
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
algo_idExchange approved algo id
naic_code
instnameInstrument Name
ordersourceOrder Source

Example :

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

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 Error Response :

{
"stat": "Not_Ok",
"request_time": "20:40:01 19-05-2020",
"emsg": "Error Occurred : 2 \"invalid input\""
}

Example

let orderparams = {
'buy_or_sell' : 'B',
'product_type' : 'C',
'exchange' : 'NSE',
'tradingsymbol' : 'CANBK-EQ',
'quantity' : 1,
'discloseqty' : 0,
'price_type' : 'LMT',
'price' : 175.0
};

api.place_order(orderparams)
.then((reply) => {
console.log(reply);
}