Skip to main content

GTD ORDER BOOK

This API retrieves the GTD (Good Till Date) Order Book for authorized end users through a middleware-based integration.

The API provides details of all GTD orders, including pending, completed, cancelled, and rejected orders along with their validity period and execution status.

🔑 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 page20
orderStatusnumberNoFilter orders by status-1

🟢 Success Response - 200 OK

FieldsTypeDescriptionExample
statusstringResponse status"success"
codestringResponse code"s-101"
messagestringSuccess message"GTD Order Book fetched successfully"
dataarray(object)List of GTD order recordsSee below table

📘 GTD Order Object Fields

FieldsTypeDescriptionExample
order_idstringSystem-generated unique order number"NXVZO00086K1"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerExchange token number of the scrip1594
exchange_order_nostringExchange order number"120000000123456"
statusstringCurrent order status"OPEN"
error_reasonstringError message if order is rejected, cancelled or modification fails"Insufficient Margin"
transaction_typestringBuy or Sell transaction"BUY"
product_typestringProduct type"D"
order_typestringOrder type"RL"
total_quantityintegerOriginal order quantity100
pending_quantityintegerPending quantity50
traded_quantityintegerExecuted quantity50
disclosed_quantityintegerQuantity disclosed to the market25
order_pricenumberOrder price2500.50
trigger_pricenumberTrigger price2495.00
validitystringOrder validity"GTD"
validity_daysintegerNumber of days the order remains valid30
symbolstringTrading symbol"INFY"
seriesstringSeries"EQ"
instrumentnumberInstrument type/name1
expiry_datestringContract expiry date"2026-07-30"
strike_pricestringStrike price"2500000"
option_typestringOption type"CE"
market_lotintegerMarket lot size50
order_timestampstringTimestamp when order was registered in OMS"2026-07-02 10:15:30"
initiated_bystringApplication identifier from which order was placed"MOBAPP"
modified_bystringApplication identifier from which order was modified"WEBAPP"
gateway_order_idstringInternal gateway order identifier"GW12345678"
order_identifierstringUser-defined order reference"ORD001"