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_nodefaults to 1 andpage_sizeto 15. The default sort isUpdatedTime, newest first. sort_byaccepts CreatedTime, UpdatedTime or Alphabet.ord_byis 1 for ascending and -1 for descending.- Filters
flowtype,messageType,side,exchange(NSE, BSE, MCX) andproductcan each be repeated in the query.searchmatches the symbol name. flowtypevalues are 3 (Step), 4 (Limit), 6 (Trail) and 7 (SIP). The filter also lists 5 (Peg).countis the total number of smart orders before filters, andfilterCountis the number after filters.- Each item has
flowId,qty,filledQty,status,createdTimeandupdatedTime. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
| Attribute | Data Type | Default | Description |
|---|---|---|---|
flowtype | integer[] | (all types) | Filter by order type (repeatable query param): 3 = Step, 4 = Limit, 5 = Peg, 6 = Trail, 7 = SIP |
messageType | integer[] | (all) | Filter by order status/message type (repeatable query param) |
page_no | int | 1 | Page number for pagination |
page_size | int | 15 | Number of records per page |
sort_by | string | "UpdatedTime" | Sort by field: "CreatedTime", "UpdatedTime", "Alphabet" |
ord_by | int | -1 | Sort order: 1 for ascending, -1 for descending |
side | integer[] | (all) | Filter by side (repeatable query param): 1 for buy, -1 for sell |
exchange | string[] | (all) | Filter by exchange (repeatable query param): "NSE", "BSE", "MCX" |
product | string[] | (all) | Filter by product type (repeatable query param): "CNC", "MARGIN", "INTRADAY", "MTF" |
search | string | (none) | Search by symbol name |
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
code | int | Status code: 200 indicates success |
s | string | "ok" indicates success |
orderBook | array | List of smart orders retrieved |
count | int | Total number of smart orders (before filters) |
filterCount | int | Number of smart orders after applying filters |
Order Book Item Attributes
| Attribute | Data Type | Description |
|---|---|---|
flowId | string | Unique order identifier |
flowtype | int | Order type (3=Step, 4=Limit, 6=Trail, 7=SIP) |
symbol | string | Symbol ticker |
side | int | 1=Buy, -1=Sell |
qty | int | Total quantity |
filledQty | int | Executed quantity |
status | int | Order status |
productType | string | Product type |
createdTime | int | Creation timestamp (epoch) |
updatedTime | int | Last update timestamp (epoch) |
Last updated on