Skip to Content

Get Orders

This API allows you to fetch all the orders placed in your account today.

USE CASE

Check the current status of every order placed today.

Note

Live Streaming — Receive real-time order updates through the General WebSocket instead of repeatedly polling the Order Book. View General WebSocket Overview documentation.

Details

  • Fetches all the orders placed by the user across all platforms and exchanges in the current trading day.
  • Orders placed from other FYERS platforms also appear, not only API orders. The source field tells you where each order was placed.
  • status values: 1 Cancelled, 2 Traded / Filled, 4 Transit, 5 Rejected, 6 Pending, 7 Expired. Value 3 is not used.
  • For a partly filled order, compare filledQty with remainingQuantity; tradedPrice is the average traded price.
  • When an order is rejected, message carries the error text.
  • orderDateTime is in IST (DD-MMM-YYYY hh:mm:ss), slNo sorts orders by time, and offlineOrder is true for AMO orders.
  • orderTag carries a 1: prefix for tags you set and 2: for tags generated by FYERS. Orders without a tag show 2:Untagged.
  • parentId is returned only for orders that have a parent order. Take profit and stop loss prices come in takeProfit and stopLoss.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Response Attributes - For each order

AttributeData TypeDescription
idstringThe unique order id assigned for each order
exchOrdIdstringThe order id provided by the exchange
id_fyersstringFyers system-generated unique identifier for the order
symbolstringThe symbol for which order is placed
qtyintThe original order qty
remainingQuantityintThe remaining qty
filledQtyintThe filled qty after partial trades
statusint
  • 1 => Canceled
  • 2 => Traded / Filled
  • 3 => (Not used currently)
  • 4 => Transit
  • 5 => Rejected
  • 6 => Pending
  • 7 => Expired
  • View Details
    slNointThis is used to sort the orders based on the time
    messagestringThe error messages are shown here
    segmentint
    • 10 => E (Equity)
    • 11 => D (F&O)
    • 12 => C (Currency)
    • 20 => M (Commodity)
    • View Details
    limitPricefloatThe limit price for the order
    stopPricefloatThe limit price for the order
    productTypestringThe product type
    typeint
    • 1 => Limit Order
    • 2 => Market Order
    • 3 => Stop Order (SL-M)
    • 4 => Stoplimit Order (SL-L)
    sideint
    disclosedQtyintDisclosed quantity
    orderValiditystring
    • DAY
    • IOC
    orderDateTimestringThe order time as per DD-MMM-YYYY hh:mm:ss in IST
    parentIdstringThe parent order id will be provided only for applicable orders.
    tradedPricefloatThe average traded price for the order
    sourcestring
    fytokenstring
    • Fytoken is a unique identifier for every symbol.
    • View Details
    offlineOrderboolean
    • False => When market is open
    • True => When placing AMO order
    panstringPAN of the client
    clientIdstringThe client id of the fyers user
    exchangeint
    instrumentint
    discloseQtyintDisclosed quantity
    orderTagstring
    • ordertag provided when placing the order
    • Note: 1: will be concatenated at the start of tag provided by user.
    • 2: will be concatenated at the start of tag generated internally by Fyers.
    • Default value if tag not provided when order is placed is 2:Untagged
    takeProfitfloatTake profit price for the order.
    stopLossfloatStop loss price for the order.
    Last updated on