Skip to Content
API ReferenceTradingOrder BookGet Order by Order ID

Get Order by Order ID

This API allows you to fetch the details of a single order using its order ID.

USE CASE

Check the latest status of one order after you place, modify or cancel it.

Details

  • You can query for a particular order id by passing the id in the get parameters
  • Pass the order id as the id query parameter, for example GET /api/v3/orders?id=sample_order_id.
  • The value to pass is the order id assigned by FYERS (the id field of an order). exchOrdId is a different value, the id given by the exchange.
  • The response uses the same orderBook list and order fields as Get Orders, so one parser can handle both.
  • status values: 1 Cancelled, 2 Traded / Filled, 4 Transit, 5 Rejected, 6 Pending, 7 Expired. For partial fills compare filledQty with remainingQuantity.
  • When the order is rejected, message carries the error text.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Response Attributes

AttributeData TypeDescription
clientIdstringThe client id of the fyers user
idstringThe unique order id assigned for each order
exchOrdIdstringThe order id provided by the exchange
qtyintThe original order qty
remainingQuantityintThe remaining qty
filledQtyintThe filled qty after partial trades
discloseQtyintDisclosed quantity
limitPricefloatThe limit price for the order
stopPricefloatThe stop price for the order
tradedPricefloatThe average traded price for the order
typeintOrder type — 1: Limit Order, 2: Market Order, 3: Stop Order (SL-M), 4: Stoplimit Order (SL-L)
fyTokenstringFytoken is a unique identifier for every symbol
exchangeintThe exchange in which the order is placed
segmentintThe segment of the order — 10: Equity, 11: F&O, 12: Currency, 20: Commodity
symbolstringThe symbol for which the order is placed
instrumentintExchange instrument type
messagestringThe error message, if any, for this order
offlineOrderbooleanfalse when placed during market hours, true when placed as an AMO order
orderDateTimestringThe order time as DD-MMM-YYYY hh:mm:ss in IST
orderValiditystringOrder validity — DAY or IOC
panstringPAN of the client
productTypestringThe product type of the order
sideintOrder side — 1: Buy, -1: Sell
statusintOrder status code
sourcestringSource from where the order was placed
ex_symstringThe exchange symbol (trading symbol without the exchange/segment prefix)
descriptionstringThe description of the traded symbol
chfloatChange in LTP compared to the previous close
chpfloatPercentage change in LTP compared to the previous close
lpfloatLast traded price of the symbol
slNointUsed to sort the orders based on time
dqQtyRemintRemaining disclosed quantity
orderNumStatusstringThe order id concatenated with its status code
disclosedQtyintDisclosed quantity
orderTagstringOrder tag provided when placing the order
takeProfitfloatTake profit price for the order
stopLossfloatStop loss price for the order
Last updated on