Skip to main content

GTD ORDER BOOK

This API returns the Good Till Date (GTD) order book records, including all pending and completed GTD orders.

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample / Enum
offsetintegerNoPage number for pagination1
limitintegerNoNumber of records per page20
orderStatusnumberNoOrder filter1 = Pending, 2 = Completed, -1 = All

🔑 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"GTD order book fetched successfully"
dataarrayList of GTD ordersRefer Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample / Enum
order_idstringUnique order ID"ORD12345"
exchangestringExchange segment"NSE_EQ"
scrip_tokenintegerScrip token12345
exchange_order_nostringExchange order ID"EX98765"
statusstringOrder status"OPEN", "COMPLETE", "CANCELLED"
error_reasonstringError message"Insufficient balance"
transaction_typestringBuy/Sell"BUY", "SELL"
product_typestringProduct type"MIS", "CNC"
order_typestringOrder type"LIMIT", "MARKET", "SL"
total_quantityintegerTotal quantity100
pending_quantityintegerPending quantity40
traded_quantityintegerExecuted quantity60
disclosed_quantityintegerDisclosed quantity50
order_pricenumberOrder price250.75
trigger_pricenumberTrigger price245.50
validitystringOrder validity"GTD"
validity_daysintegerValidity duration in days5
symbolstringSymbol"INFY"
seriesstringSeries"EQ"
instrumentnumberInstrument type1
expiry_datestringExpiry date"2026-06-25"
strike_pricestringStrike price"1500"
option_typestringOption type"CE", "PE"
market_lotintegerLot size1
order_timestampstringOrder placement time"2026-05-27 10:00:00"
initiated_bystringOrder source"WEB", "MOBILE", "DEALER"
modified_bystringModification source"WEB"
gateway_order_idstringGateway order ID"GW123456"
order_identifierstringCustom identifier (≤10 chars)"GTD001"