Get Orders by Order Tag
This API allows you to fetch the orders placed with a specific order tag.
USE CASE
List only the orders placed by one strategy, using its order tag.
Details
- You can query for a particular orderTag by passing the orderTag in the get parameters
- Pass the tag in the GET parameters. The sample request uses
order_tag=1:Ordertag, which includes the1:prefix. - A tag you set when placing an order is stored with
1:in front; tags generated by FYERS get2:. Orders without a tag show2:Untagged. - Tag rules at order placement: letters and digits only (no spaces or special characters), 1 to 30 characters, and it cannot be your client ID or
Untagged. - The response uses the same
orderBookfields as Get Orders, includingstatus,filledQtyandtradedPrice. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Response Attributes - For each order in orderBook
| Attribute | Data Type | Description |
|---|---|---|
clientId | string | The client id of the fyers user |
id | string | The unique order id assigned for each order |
exchOrdId | string | The order id provided by the exchange |
qty | int | The original order qty |
remainingQuantity | int | The remaining qty |
filledQty | int | The filled qty after partial trades |
discloseQty | int | Disclosed quantity |
limitPrice | float | The limit price for the order |
stopPrice | float | The stop price for the order |
tradedPrice | float | The average traded price for the order |
type | int |
|
fyToken | string | Fytoken is a unique identifier for every symbol |
exchange | int | The exchange in which the order is placed |
segment | int |
|
symbol | string | The symbol for which the order is placed. Eg: NSE:IDEA-EQ |
instrument | int | Exchange instrument type |
message | string | The error messages are shown here |
offlineOrder | boolean | False when market is open, True when placed as an AMO order |
orderDateTime | string | The order time as per DD-MMM-YYYY hh:mm:ss in IST |
orderValidity | string | DAY or IOC |
pan | string | PAN of the client |
productType | string | The product type of the order, e.g. CNC |
side | int |
|
status | int | The order status code, e.g. 2 => Traded / Filled |
source | string | Source from where the order was placed, e.g. W (Web) |
ex_sym | string | The short exchange symbol/ticker name, e.g. IDEA |
description | string | The full descriptive name of the traded instrument |
ch | float | The absolute change in the last traded price |
chp | float | The percentage change in the last traded price |
lp | float | The last traded price (LTP) of the symbol |
slNo | int | Used to sort the orders based on the time |
dqQtyRem | int | The remaining disclosed quantity |
orderNumStatus | string | Concatenation of the order id and status code, e.g. 23030900015105:2 |
disclosedQty | int | Disclosed quantity |
orderTag | string | The order tag provided when placing the order, prefixed with 1: for user-provided tags or 2: for internally generated tags |
takeProfit | float | Take profit price for the order |
stopLoss | float | Stop loss price for the order |
Last updated on