Order
This section provided to information of API calls to do the order management i.e. place fresh order, modify or cancel already submitted valid orders. Retrieve the order and trade book. Using Order API, various type of orders Intraday, Delivery, Bracket Order, etc. can be placed. Order type here is used as Product Type in System. Kindly refer to the respective API call for more detail.
Global Constants
Here are some of the constants enum values used for placing order.
| Param | Values (examples) |
|---|---|
| exchange (segment id) | NSE_EQ (1), NSE_FO (2), BSE_EQ (8), BSE_FO (4), MCX_FO (16), NCDEX_FO (64), NSE_CUR (2048), NSE_COMM (32768), BSE_CUR (268435456), BSE_COMM (16384), MSE_CUR (1024), NSE_OTS (536870912) |
| product_type | INTRADAY, DELIVERY, BTST, BRACKET, MTF |
| order_type | RL, RL-MKT, SL, SL-MKT |
| validity | DAY, IOC, GTD, GTC, EOS, EOSESS, EOTODY |
| order_status | PENDING, EXECUTED, CANCELLED, OMSXMITTED, OMSREJECT, ORDERERROR, ADMINREJECT, EXXMITTED, AMOACCEPTED, AMOWITHDRAWN |
📄️ Client Mapping
This call would return back the entire list of active client which is mapped to dealer.
📄️ Place Order
Lets you place a fresh buy order or sell order.
📄️ Modify Order
Lets you modify an existing pending order
📄️ Cancel Order
Lets you cancel an existing pending order
📄️ Place Bracket Order
Lets you place a bracket order. which means, you can place a Buy/sell order along with a square off order and a stop loss order.
📄️ Modify Bracket Order
Lets you modify an existing bracket order which is pending in the order book.
📄️ Exit Bracket Order
Lets you cancel an existing bracket order which is pending in the order book.
📄️ Place Multileg/Spread Order
Lets you place a multileg order/spread order.
📄️ Modify/Cancel Multileg/Spread Order
Lets you modify/cancel an existing multileg order/spread order from the order book.
📄️ Place/Modify EQSIP Order
Lets you place an EQSIP order. Once the order is placed it will also allow you to modify the same order.
📄️ Pause/Resume/Cancel EQ SIP Order
This is Pause EQ SIP Order API call
📄️ Cancel ALL EQ SIP Order
This is Pause EQ SIP Order API call
📄️ Cancel All Multileg Orders
Lets you cancel an existing multileg order/spread order from the order book.
📄️ Cancel All Orders
This API call is to cancel all orders from Open orders tab
📄️ Square-off All Orders
This API call is to square off all open positions from net position tab.
📄️ Square-off
This API call is to square off all open positions from net position tab.
📄️ GetOrderMarginInfo
This API call is to fetch the required Margin information for a particular order.
📄️ Order Book
This call would return back the entire data of orders from all orders tab.
📄️ Orders History
This call would fetch the entire state wise data for particular order.
📄️ Multileg Order Book
This API call represents Multileg order book records
📄️ GTD Order Book
This API call will fetch GTD order Book records.
📄️ GTD Order History
This API call is to fetch GTD Order history details
📄️ Equity SIP Order Book
This API call will fetch Equity SIP order book records.
📄️ Trade Book
This call would return back the entire data of trades from completed orders tab.
📄️ Get Scrip For Second Leg
Get Scrip For Second Leg
📄️ Get Scrip From Spread Symbol
Get Scrip From Spread Symbol