Skip to main content

ORDER BOOK

This API returns the complete list of orders from the All Orders tab, including pending, completed, and all orders based on filters.

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample
client_idstringNoClient ID to fetch orders for a specific userclient_id=VISHAL1
offsetintegerNoPage number for paginationoffset=1
limitintegerNoNumber of records per pagelimit=20
orderStatusnumberNoFilter orders (1 = Pending, 2 = Completed, -1 = All)orderStatus=-1

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the requestapplication/json
AuthorizationstringAccess token for authenticated requests{{access_token}}
x-api-keystringAPI key used to authorize the request{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Order book fetched successfully"
dataarrayList of ordersRefer to Data Object Fields
metadataobjectSummary of order recordsRefer to Metadata Fields

📦 Data Object Fields

FieldTypeDescriptionExample / Enum
order_idstringUnique system-generated order ID"NWSDJ00015H3"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerExchange token of instrument12345
exchange_order_nostringExchange order number"110000000001234"
statusstringCurrent order status"OPEN", "COMPLETE", "CANCELLED", "REJECTED"
error_reasonstringError/rejection/cancellation reason"Insufficient margin"
transaction_typestringTransaction type"BUY", "SELL"
product_typestringProduct type"MIS", "CNC", "NRML"
order_typestringOrder type"MARKET", "LIMIT", "SL", "SL-M"
total_quantityintegerOriginal order quantity100
pending_quantityintegerPending quantity40
traded_quantityintegerExecuted quantity60
disclosed_quantityintegerQuantity disclosed to market50
order_pricenumberOrder price2500.50
trigger_pricenumberTrigger price2490.00
validitystringOrder validity"DAY", "IOC", "GTD"
validity_daysintegerGTD validity in days5
symbolstringTrading symbol"RELIANCE"
seriesstringSeries"EQ"
instrumentnumberInstrument type1
expiry_datestringExpiry date"2026-06-25"
strike_pricestringStrike price"2500"
option_typestringOption type"CE", "PE"
market_lotintegerLot size50
order_timestampstringOMS order timestamp"2026-06-08 10:15:00"
exchange_timestampstringExchange timestamp"2026-06-08 10:15:02"
initiated_bystringSource application for order placement"WEB", "MOBILE", "DEALER"
modified_bystringSource application for order modification"WEB"
is_amo_orderstringIndicates AMO order"true", "false"
gateway_order_idstringInternal gateway order ID"GW12345678"
order_identifierstringCustom order identifier (max 10 chars)"ORD001"
bracket_detailsobjectBracket order detailsRefer Bracket Details Fields

📘 Bracket Details Fields

FieldTypeDescriptionExample / Enum
parent_order_idstringMain leg order ID"ORD123456"
leg_indicatorstringBracket order leg type"MAIN", "SL", "TARGET"
stoploss_pricenumberStop-loss order price2450.00
stoploss_trigger_pricenumberStop-loss trigger price2455.00
profit_pricenumberProfit booking price2550.00
stoploss_jump_pricenumberTrailing SL increment value1.00
ltp_jump_pricenumberLTP movement increment2.00
bo_order_idstringBracket order ID"BO12345"
bo_order_statusstringBracket order status"NOT_INITIATED", "COMPLETED", "STOPPED", "CONVERTED"
bo_modify_flagnumberModifiable bracket legs0, 1, 2, 4, 6, 7

📌 BO Modify Flag Values

ValueMeaning
0Modification not allowed
1Main leg editable
2Stop-loss leg editable
4Profit leg editable
6Stop-loss & Profit legs editable
7All legs editable

📊 Metadata Fields

FieldTypeDescription
total_recordsnumberTotal orders count
all_recordsnumberAll orders count
completed_recordsnumberCompleted orders count
open_recordsnumberOpen orders count