Skip to main content

Trade Book

This API fetches all trade data from completed orders, optionally filtered by one or more order_ids. Useful for generating trade reports or verifying order execution.

🔍Query Parameters

FieldsTypeRequiredDescriptionExample/Enum
offsetintegernoSpecifies the page number of the collection to be displayed1
limitsintegernoLimits the numer of items on the page100
order_idstringnoSingle order ID to filter trades (URL-encoded if special characters present)NXWAO00001N3
order_idsstringnoComma-separated list of order IDs to get trade for multiple ordersNXWAO00001N3

🔑Header Parameters

FieldsTypeRequiredDescriptionExample/Enum
AuthorizationstringyesBearer token for authenticationaccess_token
x-api-keystringyesAPI key provided by bearerx-api-key

🟢Success Response - 200 Ok

FieldsTypeDescriptionExample/Enum
statusStringResponse of the API statussuccess
codestringResponse code to the user request"s-101"
messagestringSuccess message"user trade book data fetched successfully"
dataarray of objectsList of trader recordsSee below table

📘 Data object fields

FieldsTypeDescriptionExample/Enum
order_idstringSystem-generated unique order numberXWAO0000N3
exchangestringExchange segmentsNSE_EQ
scrip_tokenintegerToken number of the instrument12345
trade_nostringExchange Trade numberTRD1234567890
exchange_order_nostringExchange order numberEXORD1234567
transaction_typestringBUY or SELLBUY
product_typestringProduct typeDELIVERY
order_typestringOrder TypesLIMIT
traded_quantityintegerTraded quantity100
trade_pricestringPrice at which trade was executed865.5
symbolstringSybmol code from excange scripmaster fileTCS
seriesstringSeries of the instrumentEQ
instrumentnumberInstrument name or code101
expiry_datestringExpiry date of the contract2025-02-02
strike_pricestringStrike price in paise89000
option_typestringOption type: CE call or PE putCE
trade_timestampstringTime of trade execution2025-06-08T11:22Z
initiated_bystringApp ID or terminal ID that initiated the orderWEB_APP_01
modified_bystringApp ID or terminal ID that modified the orderMOBILE_APP_002
order_identifierstringOptioal identifier to trackTRACK123

📘 Metadata

FieldsTypeDescriptionExample/Enum
Total_recordsstringTotal count records12
get/transactional/v1/trades