Skip to main content

ORDERS HISTORY

This API returns the complete state-wise history of a specific order, including all lifecycle events such as placement, modification, execution, cancellation, or rejection.

🔗 Path Parameters

ParameterTypeRequiredDescriptionExample
order_idstringYesUnique order identifier (URL encoded)"NWSDJ00015H3"

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies request payload formatapplication/json
AuthorizationstringAccess token{{access_token}}
x-api-keystringAPI key{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringSuccess message"Order history fetched successfully"
dataarrayOrder lifecycle recordsRefer Data Object Fields
metadataobjectSummary infoRefer Metadata Fields

📦 Data Object Fields

FieldTypeDescriptionExample / Enum
order_idstringOrder ID"NWSDJ00015H3"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerScrip token12345
exchange_order_nostringExchange order no"EX123456"
statusstringOrder status"COMPLETE", "PENDING", "CANCELLED"
error_reasonstringError message"Insufficient margin"
transaction_typestringBuy/Sell"BUY", "SELL"
product_typestringProduct type"MIS", "CNC"
order_typestringOrder type"MARKET", "LIMIT", "SL"
total_quantityintegerTotal quantity10
pending_quantityintegerPending quantity2
traded_quantityintegerExecuted quantity8
disclosed_quantityintegerDisclosed qty5
order_pricenumberOrder price100.5
trigger_pricenumberTrigger price99.5
validitystringValidity"DAY", "IOC", "GTD"
validity_daysintegerGTD days2
symbolstringSymbol"RELIANCE"
seriesstringSeries"EQ"
instrumentnumberInstrument type1
expiry_datestringExpiry date"2026-06-25"
strike_pricestringStrike price"2500"
option_typestringOption type"CE", "PE"
order_timestampstringOMS timestamp"2026-05-27 10:00:00"
exchange_timestampstringExchange timestamp"2026-05-27 10:00:01"
initiated_bystringSource of placement"WEB", "MOBILE"
modified_bystringSource of modification"WEB"
is_amo_orderstringAMO flag"true", "false"
gateway_order_idstringGateway ID"GW12345"
order_identifierstringCustom ID"ORD001"
sequence_numberstringState change sequence"1"

📘 Bracket Order Details

FieldTypeDescriptionExample / Enum
parent_order_idstringMain leg order ID"ORD123"
leg_indicatorstringLeg identifier"MAIN", "SL", "PROFIT"
stoploss_pricenumberStop-loss price95.5
stoploss_trigger_pricenumberStop-loss trigger96
profit_pricenumberProfit price110.5
stoploss_jump_pricenumberTrailing SL step0.5
ltp_jump_pricenumberLTP increment1
bo_order_idstringBracket order ID"BO12345"
bo_order_statusstringBracket order status"NOT_INITIATED", "COMPLETED", "STOPPED"
bo_modify_flagnumberAllowed modifications0, 1, 2, 4, 6, 7

📊 Metadata Fields

FieldTypeDescriptionExample
total_recordsnumberTotal history records5