GET POSITION BOOK LIST
DESCRIPTION
Allows you to get position book list
URL
<protocol>://<domain name>/kb/PositionBook/GetPositionBookList
INPUT
| S no. | Parameter | Description | Mandatory/Comments |
|---|---|---|---|
| 1 | Uid | User Id | Yes |
| 2 | Actid | Account Id(same as User Id) | Yes |
SAMPLE
{
"Uid": "DEMO",
"Actid": "DEMO"
}
RESPONSE
| S No. | Parameter | Description |
|---|---|---|
| 1 | ResponseId | Response Id |
| 2 | ResponseMessage | Response Message |
| 3 | 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 | Exch | Exchange, Possible Values: NSE , NFO , BSE , MCX , CDS , NCX , BFO , and BCD. |
| 3 | Tsym | Trading Symbol,refer here |
| 4 | Token | Contract token |
| 5 | Uid | User Id |
| 6 | Actid | Account Id |
| 7 | Prd | Product Name, Possible Values: C: Delivery M: Margin H: Cover Order I: Intraday B: Bracket Order F: MTF |
| 8 | Netqty | Net Position Quantity |
| 9 | Netavgprc | Net position average price |
| 10 | Daybuyqty | Day Buy Quantity |
| 11 | Daysellqty | Day Sell Quantity |
| 12 | Daybuyavgprc | Day buy average price |
| 13 | Daysellavgprc | Day Sell Average Price |
| 14 | Daybuyamt | Day Buy Amount |
| 15 | Daysellamt | Day Sell Amount |
| 16 | Cfbuyqty | Carry Forward Buy Quantity |
| 17 | Cfsellqty | Carry Forward Sell Quantity |
| 18 | Cfbuyavgprc | Carry Forward Buy average price |
| 19 | Cfsellavgprc | Carry Forward Sell average |
| 20 | Cfbuyamt | Carry Forward Buy Amount |
| 21 | Cfsellamt | Carry Forward Sell Amount |
| 22 | Lp | Last Traded Price |
| 23 | Rpnl | Realized PNL. |
| 24 | Urmtom | UnrealizedMTOM represents potential profit or loss based on current market conditions.(Can be recalculated in LTP update := netqty* (lp from web socket - netavgprc) * prcftr |
| 25 | Bep | Break even price |
| 26 | Openbuyqty | Open Buy Quantity |
| 27 | Opensellqty | Open Sell Quantity |
| 28 | Openbuyamt | Open Buy Amount |
| 29 | Opensellamt | Open Sell Amount |
| 30 | Openbuyavgprc | Open Buy Average Price |
| 31 | Opensellavgprc | Open Sell average price |
| 32 | Mult | Contract price multiplier |
| 33 | Pp | Price precision |
| 34 | Prcftr | gn*pn/(gd*pd) |
| 35 | Ti | Tick size,refer here |
| 36 | Ls | Lot size,refer here |
| 37 | Request_time | Response Recieve Time |
| 38 | Cforgavgamt | Carry Forward Original Avg Amount |
| 39 | Cforgavgtype | Carry Forward Original Average Type |
| 40 | CForgbuyqty | Carry Forward Original Buy Quantity |
| 41 | CForgsellqty | Carry Forward Original Sell Quantity |
SAMPLE
{
"StatusCode": 200,
"Message": "Request successful.",
"IsError": false,
"ResponseException": null,
"Result": {
"ResponseId": 1,
"ResponseMessage": "",
"Data": [
{
"Stat": "Ok",
"Exch": "NFO",
"Tsym": "WIPRO25AUG22C450",
"Token": "145003",
"Uid": "ADMIN4",
"Actid": "OHO0187",
"Prd": "M",
"Netqty": "-1000",
"Netavgprc": "7.70",
"Daybuyqty": "0",
"Daysellqty": "0",
"Daybuyavgprc": "0.00",
"Daysellavgprc": "0.00",
"Daybuyamt": "0.00",
"Daysellamt": "0.00",
"Cfbuyqty": "0",
"Cfsellqty": "1000",
"Cfbuyavgprc": null,
"Cfsellavgprc": "7.70",
"Cfbuyamt": null,
"Cfsellamt": "7700.00",
"Lp": "6.15",
"Rpnl": "0.00",
"Urmtom": "1550.00",
"Bep": "7.70",
"Openbuyqty": "0",
"Opensellqty": "0",
"Openbuyamt": "0.00",
"Opensellamt": "0.00",
"Openbuyavgprc": "0.00",
"Opensellavgprc": "0.00",
"Mult": "1",
"Pp": "2",
"Prcftr": "1.000000",
"Ti": "0.05",
"Ls": "1000",
"Request_time": null,
"Cforgavgamt": null,
"Cforgavgtype": null
}
]
}
}
DESCRIPTION
Allow to convert order position
URL
<protocol>://<domain name>/kb/PositionBook/PositionConversion
INPUT
| S no. | Parameter | Description | Mandatory/Comments |
|---|---|---|---|
| 1 | Exch | Exchange, Possible Values: NSE , NFO , BSE , MCX , CDS , NCX , BFO , and BCD . |
Yes |
| 2 | Tysm | Trading Symbol,refer here | Yes |
| 3 | NetQty | Net Quantity (CFQty + DayQty) |
Yes |
| 4 | CfQty | CF Quantity | Yes |
| 5 | DayQty | Day Quantity | Yes |
| 6 | CreqQty | Request Quantity | Yes |
| 7 | Uid | User Id | Yes |
| 8 | Prd | Product Name, Possible values: C: Delivery M: Margin H: Cover Order I: Intraday B: Bracket Order F: MTF |
Yes |
| 9 | Prevprd | Original product | Yes |
| 10 | Trantype | Transaction Type, Possible Values: B - Buy, S - Sell |
Yes |
SAMPLE
{
"Exch": "CDS",
"Tsym": "USDINR26AUG22C80",
"NetQty": 5000,
"CFQty": -5,
"DayQty": 0,
"CReqQty": -5,
"Uid": "DEMO",
"Prd": "I",
"Prevprd": "M",
"Trantype": "S"
}
RESPONSE
| S No. | Parameter | Description |
|---|---|---|
| 1 | ResponseId | Response Id |
| 2 | ResponseMessage | Response Message |
SAMPLE
{
"StatusCode": 200,
"Message": "Request successful.",
"IsError": false,
"ResponseException": null,
"Result": {
"ResponseId": 1,
"ResponseMessage": "Product conversion successfully done."
}
}