GTT Order Book
This API allows you to fetch your GTT orders along with their trigger prices, quantities and current status.
USE CASE
Check whether your GTT orders are pending, traded, cancelled or rejected.
Details
- You can fetch all pending GTT Orders.
- Orders come back in the
orderBookarray. Use each order'sidto modify or cancel it. ord_statusshows the state: 1 cancelled, 2 traded or filled, 4 in transit, 5 rejected, 6 pending.oms_msgcarries the OMS message.gtt_oco_indtells the type: 1 for a GTT order and 2 for an OCO order.- The second-leg fields
price2_limit,price2_triggerandqty2apply only to OCO orders. - Each order also includes the current
ltp,ltp_chandltp_chpof the symbol. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Response Attributes - For each order
| Attribute | Data Type | Description |
|---|---|---|
code | int |
|
message | string | Optional message about the API request (can be empty for successful requests). |
s | string | Status of the request: "ok" for success, "error" for failure. |
orderBook | array | List of order details. |
orderBook[].client_id | string | Client identifier associated with the order. |
orderBook[].exchange | int | Exchange code where the order is placed, e.g., 10 for NSE. |
orderBook[].fy_token | string | Unique token for the instrument in the order. |
orderBook[].id_fyers | string | Fyers system-generated unique identifier for the order. |
orderBook[].id | string | Order ID provided by the system. |
orderBook[].instrument | int | Instrument type, e.g., 0 for equity. |
orderBook[].lot_size | int | Lot size of the instrument in the order. |
orderBook[].multiplier | int | Multiplier for the instrument (e.g., for derivatives). |
orderBook[].ord_status | int |
|
orderBook[].precision | int | Decimal precision for the instrument's price. |
orderBook[].price_limit | float | Limit price for the first leg of the order. |
orderBook[].price2_limit | float | Limit price for the second leg (if OCO). |
orderBook[].price_trigger | float | Trigger price for the first leg of the order. |
orderBook[].price2_trigger | float | Trigger price for the second leg (if OCO). |
orderBook[].product_type | string | Product type, e.g., "CNC", "MARGIN", "MTF". |
orderBook[].qty | int | Quantity for the first leg of the order. |
orderBook[].qty2 | int | Quantity for the second leg (if OCO). |
orderBook[].report_type | string | Status of the order, e.g., "CANCELLED", "PLACED". |
orderBook[].segment | int | Segment code, e.g., 10 for equity. |
orderBook[].symbol | string | Symbol of the instrument, e.g., "NSE:CHOLAFIN-EQ". |
orderBook[].symbol_desc | string |
|
orderBook[].symbol_exch | string | Symbol short code on the exchange, e.g., "CHOLAFIN". |
orderBook[].tick_size | float | Minimum price increment for the instrument. |
orderBook[].tran_side | int | Transaction side: 1 for buy, -1 for sell. |
orderBook[].gtt_oco_ind | int |
|
orderBook[].create_time | string | Creation timestamp of the order in human-readable format. |
orderBook[].create_time_epoch | int | Creation timestamp of the order in epoch seconds. |
orderBook[].oms_msg | string | Message from the Order Management System (OMS) about the order's status. |
orderBook[].ltp_ch | float | Last traded price change. |
orderBook[].ltp_chp | float | Last traded price change percentage. |
orderBook[].ltp | float | Last traded price of the instrument. |
Last updated on