Place BO Order
To get characters you need to make a POST call to the following url
REQUEST ATTRIBUTES
| Request Parameter | Description | Mandatory |
|---|---|---|
| exchange | Exchange name | Yes |
| tsym | Trading Symbol | Yes |
| trantype | Transaction Type | Yes |
| qty | Quantity | Yes |
| validity | Validity - It can be one of the following: DAY, IOC | Yes |
| discqty | Disclosed Quantity | Yes |
| price | Square Off | Yes |
| squareoff | Square Off | Yes |
| stoploss | Stop Loss | Yes |
| trailing_tick | Trailing Ticks | Yes |
| pricetype | It can be one of the following: MKT - Market Order, L - Limit Order, SL-L - Stop Loss Limit Order, SL-M - Stop Loss Market Order | Yes |
| trgprc | Trigger Price |
RESPONSE ATTRIBUTES
| Response Parameter | Description |
|---|---|
| nstordno | Order Number |
curl / cURL
curl --location --request POST 'https://api.gwcindia.in/v1/placeboorder' //
--header 'x-api-key: 2e4c1f0ac084dd6b30fd808e016be3f0' //
--header 'Authorization: Bearer 05b8167eed78367034cb5ed4a8c15930'
Request Example
{
"exchange": "NSE",
"tsym": "YESBANK-EQ",
"trantype": "B",
"qty": "1",
"validity": "DAY",
"discqty": "0",
"price": "14",
"squareoff": "15",
"stoploss": "13",
"trailing_ticks": "0",
"pricetype": "L",
"trgprc": "0"
}
Response Example
{
"status": "success",
"data": {
"nstordno": "220104000034606"
}
}