Balance
To get characters you need to make a GET call to the following url :
RESPONSE ATTRIBUTES
| ATTRIBUTES | Datatype | Description |
|---|---|---|
| segment | string | Segment type - ALL |
| bookedpnl | string | Booked profit and loss |
| unbookedpnl | string | Unbooked profit and loss |
| openingbalance | string | Opening balance or cash margin available |
| credits | string | Credits |
| payinamt | string | Pay in amount |
| utilizedamount | string | Utilized amount |
| payoutamt | string | Pay out amount |
| varmargin | string | Var margin |
| spanmargin | string | Span margin |
| realisedmtom | string | Realised mtom |
| unrealisedmtom | string | UnRealised mtom |
| debits | string | Debits |
curl / cURL
curl --location --request GET 'https://api.gwcindia.in/v1/balance' \
--header 'x-api-key: 2e4c1f0ac084dd6b30fd808e016be3f0' \
--header 'Authorization: Bearer 05b8167eed78367034cb5ed4a8c15930'
Success Response Body
{
"status": "success",
"data": {
"segment": "ALL",
"bookedpnl": "1.45",
"unbookedpnl": "0",
"openingbalance": "2016.03",
"credits": "0",
"payinamt": "0.00",
"utilizedamount": "77.04",
"payoutamt": "0.00",
"varmargin": "",
"spanmargin": "",
"realisedmtom": "1.45",
"unrealisedmtom": "",
"debits": "0"
}
}