Skip to main content

GTD Order Book

This API retrieves GTD (Good Till Date) order book records, with optional filters for pagination and order status.

🔍Query Parameters

FieldsTypeRequiredDescriptionExample/Enum
offsetintegernoPage number of the collection to be displayedoffset=1
limitintegernoLimits number of items per pagelimit=20
orderStatusstringno1=Pending, 2=Completed, -1=All ordersorderstatus=1

🔑Header Parameters

FieldsTypeRequiredDescriptionExample/ ---
AuthorizationstringyesBearer token for authenticationaccess_token
Content_typestringyesMIME Typeapplication/JSON
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"Orders Fetched successfully"
Dataarray of objectsList of GTD order objectsSee below table

📘Data object fields

FieldsTypeDescriptionExample/Enum
order_idstringSystem-generated unique order numberORD123456789
exchangestringExchange segmentBSE
scrip_tokenintegerToken number of the scrip/instrument101234
exchange_order_nostringExchange order numberEXORD123456789
statusstringStatus of the orderCompleted
error_reasonstringError message if order is cancelle/ rejeted/not modifiedInsufficient funds
transaction_typestringOrder type: Buy or SellBUY
product_typestringProduct typeDelivery
order_typestringOrder TypesLIMIT
total_quantityintegerTotal quantity in the order10
pending_quantityintegerRemainin quantity that is yet to be executed100
traded_quantityintegerQuantity that has been executed0
disclosed_quantityintegerQuantity visisble to market out of the total quantity0
order_pricenumberPrice at which order was placed152.35
trigger_pricenumberTriger price for stop-loss or trigger based orders150.00
validitystringValidity of the orderGTD
validity_daysintegerNumber of days the order is valid (for GTD orders)7
symbolstringTrading symbol of the scripTCS
seriesstringSeries of the stock (EQ,BE,BL)EQ
instrumentnumberInstrument name code12
expiry_datestringContract expiry date (for derivatives )"2025-101-31"
strike_pricestringStrike price of the option0
option_typestringOption type: CE (Call), PE (PUT)PE
market_lotintegerLot size of the scrip1
order_timestampstringTime when he order was registered by OMS2025-06-11T10:10Z
initiated_bystringApp ID or user ID from where order was placedMOBILE_APP_01
modified_bystringApp ID or user ID from where order was modifiedWEB_PORTAL_02
gateaway_order_idstringInternal gateaway order IDGTW123456
order_identifierstringOptional user-defined identifier for tracking the orderGTD_TCS1

💬Notes

  • Use this API to retrieve GTD orders with support for pagination and status filters.
  • Each order contains detailed information including pricing, quantities, and instrument metadata.
  • Optional fields like initiated_by, trigger_price, and order_identifier are useful for deeper tracking and reporting.
get/transactional/v1/gtdOrders