Modify 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 |
| nstordno | Order ID | Yes |
| trantype | Transaction Type(B/S) | 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 |
| price | Price at which the order was placed | Yes |
| qty | Quantity with which the order was placed | Yes |
| discqty | Disclosed Quantity | Yes |
| trgprc | Trigger Price | Yes |
| validity | Validity | Yes |
| filledqty | Filledqty | Yes |
| product | Product Code |
RESPONSE ATTRIBUTES
| Response Parameter | Description |
|---|---|
| result | Order Number |
curl / cURL
curl --location --request POST 'https://api.gwcindia.in/v1/modifyorder' \
--header 'x-api-key: 2e4c1f0ac084dd6b30fd808e016be3f0' \
--header 'Authorization: Bearer 3e81bfb2a1ef11d3bd3e9a8966d4d51e'
Request Example
{
"exchange":"NSE",
"tsym": "YESBANK-EQ",
"nstordno":"23031400017379",
"trantype":"B",
"pricetype":"MKT",
"price":"0",
"qty":"1",
"discqty":"0",
"trgprc":"0",
"validity":"DAY",
"filledqty":"1",
"product":"CNC"
}
Response Example
{
"status": "success",
"data": {
"result": "23031400017379"
}
}