Position
To get characters you need to make a GET call to the following url :
RESPONSE ATTRIBUTES
| Parameter | Description |
|---|---|
| exchange | Exchange name |
| product | Product code |
| tsym | Trading symbol |
| token | Token of the scrip |
| cfbuyqty | CF buy quantity |
| cfbuyavgprc | CF net buy average price |
| cfsellqty | CF sell quantity |
| cfsellavgprc | CF net sell average price |
| bqty | Buy quantity |
| buyavgprc | Buy average price |
| sqty | Sell quantity |
| sellavgprc | Sell average price |
| netqty | Net quantity |
| netbuyavgprc | Net Buy Average price |
| netsellavgprc | Net Sell Average price |
| netamt | Net amount |
| ltp | Last trade price of the scrip |
| bep | Break-even price of the position |
| realisedprofitloss | Realized profit loss |
| unrealisedprofitloss | Unrealized profit loss |
curl / cURL
curl --location --request GET 'https://api.gwcindia.in/v1/positions' \
--header 'x-api-key: 2e4c1f0ac084dd6b30fd808e016be3f0' \
--header 'Authorization: Bearer 05b8167eed78367034cb5ed4a8c15930'
Success Response Body
{
"status": "success",
"data": [
{
"exchange": "NSE",
"product": "MIS",
"tsym": "IDEA-EQ",
"token": "14366",
"cfbuyqty": "0",
"cfbuyavgprc": "",
"cfsellqty": "0",
"cfsellavgprc": "",
"bqty": "0",
"buyavgprc": "0.00",
"sqty": "0",
"sellavgprc": "0.00",
"netqty": "0",
"netbuyavgprc": "655.00",
"netsellavgprc": "650.00",
"netamt": "0",
"ltp": "6.60",
"bep": "",
"realisedprofitloss": "-0.75",
"unrealisedprofitloss": "0.00"
}
]
}