DESCRIPTION
Allows you to check margin for place order
URL
<protocol>://<domain name> /kb/PlaceOrders/CheckMargin
INPUT
S no. | Parameter | Description | Mandatory/Comments |
---|---|---|---|
1 | Uid | User Id | Yes |
2 | Actid | Account Id(Same as User id) | Yes |
3 | Exch | Exchange Possible Value: NSE, NFO , BSE , MCX , CDS , NCX , BFO , and BCD . |
Yes |
4 | Tsym | Trading Symbol,refer here | Yes |
5 | Qty | Order Quantity refers to the number of units of a product. | Yes |
6 | Prc | Order Price | Yes |
7 | Trgprc | Order Trigger Price refers to a Price at which the order is triggered,in case of SL-M & SL-L. | Yes |
8 | Prd | Product Name is basically the type of product you're ordering.
Possible Values: C: Delivery M: Margin H: Cover Order I: Intraday B: Bracket Order F: MTF |
Yes |
9 | Trantype | Transaction Type Possible Values: B - Buy, S - Sell |
Yes |
10 | Prctyp | Price Type Possible values: LMT (Limit) MKT (Market) SL LMT (Stop Loss Limit) SL-MKT (Stop Loss Market) |
Yes |
11 | Blprc | Book loss Price applicable only if product is selected as H and B(High Leverage and Bracket order). | Yes |
12 | Rorgqty | Application only for modify order, open order quantity. | No |
13 | Fillshares | Application only for modify order, quantity already filled. | Yes |
14 | Rorgprc | Application only for modify order, open order price. | Yes |
15 | Orgtrgprc | Application only for modify order, open order trigger price. | Yes |
16 | Norenordno | Application only for H or B order modification. | Yes |
17 | Snonum | This field will be present for product H and B; and only if it is profit/sl order. | Yes |
SAMPLE
{
"Uid": "DEMO",
"Actid": "DEMO",
"Exch": "NSE",
"Tsym": "ACC-EQ",
"Qty": "1",
"Prc": "2224.6",
"Trgprc": "2224.6",
"Prd": "I",
"Trantype": "B",
"Prctyp": "SL-LMT",
"Blprc": null,
"Rorgqty": null,
"Fillshares": null,
"Rorgprc": null,
"Orgtrgprc": null,
"Norenordno": null,
"Snonum": null
}
RESPONSE
S No. | Parameter | Description |
---|---|---|
1 | ResponseId | Response Id |
2 | Data | It contains the data of the response, such as the status of the request, request time, etc. |
DATA
S.No. | Parameter | Description |
---|---|---|
1 | Stat | Status Possible Values: 'Ok', 'Not_Ok' |
2 | Request_time | Response received time |
3 | Remarks | Remarks refer to any additional message. |
4 | Cash | Cash denotes the available fund in your account. |
5 | Marginused | Total margin used |
6 | Emsg | Message is a small remark,this will be present only if Order cancelation fails. |
SAMPLE
{
"StatusCode": 200,
"Message": "Request successful.",
"IsError": false,
"ResponseException": null,
"Result": {
"ResponseId": 1,
"ResponseMessage": null,
"Data": {
"Stat": "Ok",
"Request_time": "10:47:08 04-08-2022",
"Remarks": "Order Success",
"Cash": "357225.38",
"Marginused": "2669.52",
"Emsg": null
}
}
}