Get order1
Get Order by ID
Retrieve real-time status and details of any specific order using its order ID.
Usage
Accessing Data
Request Attribute
| Attribute | Type | Description | 
| order_id | int | Unique ID of the order to fetch | 
Response Structure
class RefData:
    ref_id: int
    option_type: Optional[str]
    token: Optional[int]
    stock_name: str
    nubra_name: str
    lot_size: Optional[int]
    asset: str
    exchange: str
    derivative_type: Optional[str]
class GetOrderResponse:
    order_id: int
    exchange_order_id: Optional[int]
    ref_id: Optional[int]
    display_name: Optional[str]
    order_type: Optional[str]
    order_side: Optional[OrderSideEnum]
    order_price: Optional[int]
    order_qty: Optional[int]
    leg_size: Optional[int]
    filled_qty: Optional[int]
    avg_filled_price: Optional[int]
    order_status: Optional[OrderStatusEnum]
    last_modified: Optional[datetime]
    ref_data: Optional[RefData]
    last_traded_price: Optional[int] 
    order_delivery_type: Optional[DeliveryTypeEnum]
    execution_type: Optional[ExecutionTypeEnum]
    duration: Optional[int]
    max_prate: Optional[int]
    trigger_price: Optional[int]
Response Attributes
| Attribute | Description | 
| order_id | Unique ID of the order | 
| exchange_order_id | order ID assigned by the exchange | 
| ref_id | The instrument reference id received from Instrument API (e.g., "69353") | 
| display_name | Represents the internal name of the traded instrument | 
| order_type | Type of order (Limit, Market) | 
| order_side | Buy or Sell | 
| order_price | Price at which order is placed (in paise) | 
| order_qty | Total quantity ordered | 
| leg_size | Size of each leg in the order | 
| filled_qty | Quantity already filled | 
| avg_filled_price | Average price of filled quantity (in paise) | 
| order_status | Current status of the order | 
| last_modified | Last modification time | 
| last_traded_price | Last traded price of the instrument (in paise) | 
| order_delivery_type | CNC, Intraday | 
| max_prate | Max participation rate for execution logic | 
| execution_type | LIMIT, MARKET, STOPLOSS , ICEBERG | 
| trigger_price | Trigger price for stop-loss orders | 
Get All Orders for the Day
Fetch a complete list of all orders placed during the trading day, along with their current status.
Usage
Request Attribute
| Attribute | Type | Description | 
| live | bool |  | 
| executed | bool |  | 
Accessing Data
Response structure
class RefData:
    ref_id: int
    option_type: Optional[str]
    token: Optional[int]
    stock_name: str
    nubra_name: str
    lot_size: Optional[int]
    asset: str
    exchange: str
    derivative_type: Optional[str]
class GetOrderResponse:
    order_id: int
    exchange_order_id: Optional[int]
    ref_id: Optional[int]
    display_name: Optional[str]
    order_type: Optional[str]
    order_side: Optional[OrderSideEnum]
    order_price: Optional[int]
    order_qty: Optional[int]
    leg_size: Optional[int]
    filled_qty: Optional[int]
    avg_filled_price: Optional[int]
    order_status: Optional[str]
    last_modified: Optional[datetime]
    ref_data: Optional[RefData]
    last_traded_price: Optional[int] 
    order_delivery_type: Optional[DeliveryTypeEnum]
    execution_type: Optional[ExecutionTypeEnum]
    duration: Optional[int]
    max_prate: Optional[int]
    trigger_price: Optional[int]
class GetAllOrder:
    root:List[GetOrderResponse]
Response attribute
| Field | Description | 
| root | List of all orders placed for the day. | 
Note:
Each order object inside the root list follows the same structure as the Get Order by ID response, which includes attributes like order_id, order_price, order_status, ref_data, and more.