Skip to main content

TRADE BOOK

This API returns the complete trade data from the completed orders tab.

It includes execution-level details such as trade price, trade number, and timestamps.

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample / Enum
client_idstringNoClient ID to fetch trades for a user"VISHAL1"
offsetintegerNoPage number for pagination1
limitintegerNoNumber of records per page100
order_idstringNoFilter trades by single order ID (URL encoded)"NWSDJ00004B4"
order_idsstringNoComma-separated order IDs for bulk filtering"NWSDJ00004B4,NWSDJ00003B4"

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringRequest 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"Trade book fetched successfully"
dataarrayList of tradesRefer Data Object Fields
metadataobjectSummary informationRefer Metadata Fields

📦 Data Object Fields

FieldTypeDescriptionExample / Enum
order_idstringOrder ID"NWSDJ00004B4"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerScrip token12345
trade_nostringExchange trade number"TRD123456"
exchange_order_nostringExchange order ID"EX987654"
transaction_typestringBuy/Sell"BUY", "SELL"
product_typestringProduct type"MIS", "CNC"
order_typestringOrder type"MARKET", "LIMIT"
traded_quantityintegerQuantity executed10
trade_pricestringTrade price"2500.50"
symbolstringScrip symbol"RELIANCE"
seriesstringSeries"EQ"
instrumentnumberInstrument type1
expiry_datestringExpiry date"2026-06-25"
strike_pricestringStrike price"2500"
option_typestringOption type"CE", "PE"
trade_timestampstringTrade execution time"2026-05-27 10:15:00"
initiated_bystringSource of order placement"WEB", "MOBILE", "DEALER"
modified_bystringSource of modification"WEB"
order_identifierstringCustom identifier"ORD001"

📊 Metadata Fields

FieldTypeDescriptionExample
total_recordsnumberTotal trade records50