Skip to Content

Smart Order Book

This API allows you to fetch your smart orders along with their current status and filled quantity.

USE CASE

Check the status of your smart orders and find the flow ID needed to modify, pause or cancel one.

Details

  • Retrieve the list of all smart orders (active, completed, and cancelled).
  • Optional query parameters (all optional; repeatable parameters may be passed more than once):
  • Results are paged. page_no defaults to 1 and page_size to 15. The default sort is UpdatedTime, newest first.
  • sort_by accepts CreatedTime, UpdatedTime or Alphabet. ord_by is 1 for ascending and -1 for descending.
  • Filters flowtype, messageType, side, exchange (NSE, BSE, MCX) and product can each be repeated in the query. search matches the symbol name.
  • flowtype values are 3 (Step), 4 (Limit), 6 (Trail) and 7 (SIP). The filter also lists 5 (Peg).
  • count is the total number of smart orders before filters, and filterCount is the number after filters.
  • Each item has flowId, qty, filledQty, status, createdTime and updatedTime.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
AttributeData TypeDefaultDescription
flowtypeinteger[](all types)Filter by order type (repeatable query param): 3 = Step, 4 = Limit, 5 = Peg, 6 = Trail, 7 = SIP
messageTypeinteger[](all)Filter by order status/message type (repeatable query param)
page_noint1Page number for pagination
page_sizeint15Number of records per page
sort_bystring"UpdatedTime"Sort by field: "CreatedTime", "UpdatedTime", "Alphabet"
ord_byint-1Sort order: 1 for ascending, -1 for descending
sideinteger[](all)Filter by side (repeatable query param): 1 for buy, -1 for sell
exchangestring[](all)Filter by exchange (repeatable query param): "NSE", "BSE", "MCX"
productstring[](all)Filter by product type (repeatable query param): "CNC", "MARGIN", "INTRADAY", "MTF"
searchstring(none)Search by symbol name

Response Attributes

AttributeData TypeDescription
codeintStatus code: 200 indicates success
sstring"ok" indicates success
orderBookarrayList of smart orders retrieved
countintTotal number of smart orders (before filters)
filterCountintNumber of smart orders after applying filters

Order Book Item Attributes

AttributeData TypeDescription
flowIdstringUnique order identifier
flowtypeintOrder type (3=Step, 4=Limit, 6=Trail, 7=SIP)
symbolstringSymbol ticker
sideint1=Buy, -1=Sell
qtyintTotal quantity
filledQtyintExecuted quantity
statusintOrder status
productTypestringProduct type
createdTimeintCreation timestamp (epoch)
updatedTimeintLast update timestamp (epoch)
Last updated on