Skip to main content

GTT Order Book

This API returns the list of all GTT orders associated with the client account.

🛣️ Endpoint

GET {{hosturl}}/transactional/v1/gttOrders

🔑 Header Parameters

FieldsTypeRequiredDescriptionExample/Enum
AuthorizationstringYesBearer token for authenticationaccess_token
x-api-keystringYesAPI key provided by brokerx-api-key

🔍 Query Parameters

FieldsTypeRequiredDescriptionExample/Enum
offsetintegerYesPage number of the results to display1
limitintegerYesMaximum number of records per page200
orderStatusintegerYesFilter by order status. 1 = Pending, 2 = Completed, -1 = All-1
resetbooleanNoWhether to reset paginationfalse
order_idstringNoFilter results for a specific order IDNYMKZ00005A3

🟢 Success Response – 200 OK

FieldsTypeDescriptionExample/Enum
statusstringAPI call statussuccess
codestringResponse codes-101
messagestringSuccess messageOrders fetched successfully
dataarray(object)List of GTT order objectsSee below table
metadataobjectPagination and count summarySee below table

📘 Order Object Fields (inside data array)

FieldsTypeDescriptionExample/Enum
client_idstringClient account ID"SP"
order_idstringSystem-generated Order ID"NYMKL00015;<"
exchangestringExchange segment"BSE_EQ"
scrip_tokenintegerUnique token identifying the instrument500410
exchange_order_nostringExchange-assigned order number"0"
statusstringCurrent order statusACTIVE / TRIGGERED / WITHDRAWN / COMPLETED
error_reasonstringError message if order failed""
transaction_typestringDirection of the tradeBUY / SELL
product_typestringProduct categoryDELIVERY / INTRADAY
order_typestringOrder typeRL / SL / RL-MKT
total_quantityintegerTotal order quantity1
pending_quantityintegerQuantity still pending execution1
traded_quantityintegerQuantity already traded0
prev_traded_quantityintegerTraded quantity before today0
today_traded_quantityintegerTraded quantity today0
disclosed_quantityintegerDisclosed quantity0
order_pricestringLimit price of the order"2269.00"
trigger_pricestringTrigger price of the order"2270.00"
validitystringOrder validity typeGTT / DAY
validity_daysintegerNumber of validity days3
symbolstringTicker symbol"ACC"
seriesstringInstrument series"A"
instrumentstringInstrument type"FUTSTK" / ""
expiry_datestringExpiry date for derivatives"2025-03-27" / ""
strike_pricestringStrike price for options"-1" / "0.00"
option_typestringOption type"XX" / "CE" / "PE"
market_lotintegerMarket lot size1
order_timestampstringTimestamp when order was placed"2024-12-11 17:51:53"
is_amo_orderbooleanWhether it is an After Market Orderfalse
initiated_bystringPlatform from which order was placed"WAVE_MOBILE"
modified_bystringPlatform from which order was last modified"WAVE_MOBILE"
gateway_order_idstringInternal gateway reference ID"20241211NYMKL000001A"
order_identifierintegerCustom order identifier0
target_pricestringTarget profit price (for OCO orders)"0.00"
target_trigger_pricestringTarget trigger price (for OCO orders)"0.00"

📘 Metadata Object Fields

FieldsTypeDescriptionExample/Enum
total_recordsintegerTotal number of orders returned5
completed_recordsintegerCount of completed/executed orders0
open_recordsintegerCount of currently open/active orders2

📋 Sample Response

{
"status": "success",
"code": "s-101",
"message": "Orders fetched successfully",
"data": [
{
"client_id": "SP",
"order_id": "NYMKL00015;<",
"exchange": "BSE_EQ",
"scrip_token": 500410,
"exchange_order_no": "0",
"status": "TRIGGERED",
"error_reason": "",
"transaction_type": "BUY",
"product_type": "DELIVERY",
"order_type": "RL",
"total_quantity": 1,
"pending_quantity": 1,
"traded_quantity": 0,
"prev_traded_quantity": 0,
"today_traded_quantity": 0,
"disclosed_quantity": 0,
"order_price": "2269.00",
"trigger_price": "2270.00",
"validity": "GTT",
"validity_days": 3,
"symbol": "ACC",
"series": "A",
"instrument": "",
"expiry_date": "",
"strike_price": "0.00",
"option_type": "",
"market_lot": 1,
"order_timestamp": "2024-12-11 17:51:53",
"is_amo_order": false,
"initiated_by": "WAVE_MOBILE",
"modified_by": "WAVE_MOBILE",
"gateway_order_id": "20241211NYMKL000001A",
"order_identifier": 0,
"target_price": "0.00",
"target_trigger_price": "0.00"
}
],
"metadata": {
"total_records": 5,
"completed_records": 0,
"open_records": 2
}
}