Skip to main content

Order Margin

Request to be POSTed to uri : /NorenWClientTP/GetOrderMargin

Request Details :

Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
jKey*Key Obtained on login success.
Json FieldsPossible valueDescription
uid*Logged in User Id
actid*Account Id of logged in user
exch*NSE / NFO / BSE / MCXExchange (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-LMT / SL-MKT order.
prd*C / M / HProduct 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
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket orderOptional field. Application only for modify order, open order quantity
rorgqtyOptional field. Application only for modify order, open order
quantity
fillsharesOptional field. Application only for modify order, quantity already filled.
rorgprcOptional field. Application only for modify order, open order price
orgtrgprcOptional field. Application only for modify order, open order trigger price
norenordnoOptional field. Application only for H or B order modification
snonumOptional field. Application only for H or B order modification

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.
remarksThis field will be available only on success.
cashTotal credits available for order
marginusedMeaning changes with remarks as explained below.
ordermarginMargin required for this order.
marginusedprevMargin used excluding this order.
emsgThis will be present only if Order placement fails

Possible Response Cases for Order margin:

1.“remarks”:”Order Success” => Order will go through
“cash” -> field will have total cash available with the user.
“marginused” -> field will have Margin used if the user places order.
2.“remarks”:”Insufficient Balance” => Order will get rejected.
“cash” -> field will have total cash available for this type of order.
“marginused” -> field will have Additional margin required for this order to pass through. (Show caption as Shortfall margin)
3.“remarks”:”Order Success : Eligible Sell:<total qty available>” => Order will go through
4.“remarks”:”Eligible Sell: <total qty available>” => Order will get rejected.
5.“remarks”:”No Holdings uploaded” => Order will get rejected, no holding for this symbol
6.“remarks”:”Invalid scrip” or "RED is under Reconciliation" => Order will get rejected.
7.“remarks”:”Squareoff Order” => Order will go through