Skip to main content

TRADE BOOK

This API retrieves the Trade Book for authorized end users through a middleware-based integration.

The Trade Book contains details of executed trades, including trade prices, quantities, exchange trade numbers, and associated order information.

🔑 Header Parameters

FieldsTypeRequiredDescriptionExample
AuthorizationstringYesBearer token for authenticationaccess_token
x-api-keystringYesAPI key providedx-api-key

🔍 Query Parameters

FieldsTypeRequiredDescriptionExample
userIdstringYesUser ID (UCC){{user_id}}
offsetintegerNoSpecifies the page number of the collection to be displayed1
limitintegerNoLimits the number of items returned per page100
order_idsstringNoComma-separated Order IDs to fetch trades for multiple ordersNXVZO00105K1,NXVZO00104K1

🟢 Success Response - 200 OK

FieldsTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringSuccess message"Trade Book fetched successfully"
dataarray(object)List of trade recordsSee below table

📘 Trade Object Fields

FieldsTypeDescriptionExample
order_idstringSystem-generated unique order number"NXVZO00105K1"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerExchange token number of the scrip1594
trade_nostringExchange Trade Number"123456789"
exchange_order_nostringExchange order number"120000000123456"
transaction_typestringBuy or Sell transaction"BUY"
product_typestringProduct type"D"
order_typestringOrder type"RL"
traded_quantityintegerExecuted trade quantity100
trade_pricestringPrice at which trade was executed"2500.50"
symbolstringTrading symbol"INFY"
seriesstringSeries"EQ"
instrumentnumberInstrument type/name1
expiry_datestringContract expiry date"2026-07-30"
strike_pricestringStrike price"2500000"
option_typestringOption type"CE"
trade_timestampstringTimestamp at which trade was registered by the OMS"2026-07-02 10:15:31"
initiated_bystringApplication identifier from which the order was placed"MOBAPP"
modified_bystringApplication identifier from which the order was modified"WEBAPP"
order_identifierstringUser-defined order reference"ORD001"

📘 Metadata Object Fields

FieldsTypeDescriptionExample
total_recordsnumberTotal number of trade records available250