Order
Modify pending order
Modifies an existing pending order using the order ID in the path. Use the id returned from GET /api/order/my, place order, or a previous modify response. Do not send id in the request body.
type: BUY or SELL duration: MIS (intraday) or CNC (delivery) orderType: LIMIT, MKT, or SL
- LIMIT → provide price
- MKT → market order
- SL → provide triggerPrice
Use instrumentToken from GET /api/marketwatch/instruments.
put/api/order/buysell/{orderId}
Request
- Base URL: http://api.megabull.in
- URL: http://api.megabull.in/api/order/buysell/{orderId}
- Auth: API key in header api-key
Path parameters
orderIdinteger required
Order ID from GET /api/order/my or from place/modify order response
Request body
Example request
{
"instrumentToken": "256265",
"qty": 50,
"price": 25000,
"triggerPrice": 24800
}Response
Order modified successfully
Changes
No recorded changes to this operation across all 1 revision of this API.