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
sourcefield tells you where each order was placed. statusvalues: 1 Cancelled, 2 Traded / Filled, 4 Transit, 5 Rejected, 6 Pending, 7 Expired. Value 3 is not used.- For a partly filled order, compare
filledQtywithremainingQuantity;tradedPriceis the average traded price. - When an order is rejected,
messagecarries the error text. orderDateTimeis in IST (DD-MMM-YYYY hh:mm:ss),slNosorts orders by time, andofflineOrderis true for AMO orders.orderTagcarries a1:prefix for tags you set and2:for tags generated by FYERS. Orders without a tag show2:Untagged.parentIdis returned only for orders that have a parent order. Take profit and stop loss prices come intakeProfitandstopLoss.- Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Response Attributes - For each order
| Attribute | Data Type | Description |
|---|---|---|
id | string | The unique order id assigned for each order |
exchOrdId | string | The order id provided by the exchange |
id_fyers | string | Fyers system-generated unique identifier for the order |
symbol | string | The symbol for which order is placed |
qty | int | The original order qty |
remainingQuantity | int | The remaining qty |
filledQty | int | The filled qty after partial trades |
status | int |
|
slNo | int | This is used to sort the orders based on the time |
message | string | The error messages are shown here |
segment | int |
|
limitPrice | float | The limit price for the order |
stopPrice | float | The limit price for the order |
productType | string | The product type |
type | int |
|
side | int |
|
disclosedQty | int | Disclosed quantity |
orderValidity | string |
|
orderDateTime | string | The order time as per DD-MMM-YYYY hh:mm:ss in IST |
parentId | string | The parent order id will be provided only for applicable orders. |
tradedPrice | float | The average traded price for the order |
source | string |
|
fytoken | string |
|
offlineOrder | boolean |
|
pan | string | PAN of the client |
clientId | string | The client id of the fyers user |
exchange | int |
|
instrument | int |
|
discloseQty | int | Disclosed quantity |
orderTag | string |
|
takeProfit | float | Take profit price for the order. |
stopLoss | float | Stop loss price for the order. |
Last updated on