Get Trades by Order Tag
This API allows you to fetch the trades executed for orders placed with a specific order tag.
USE CASE
Review the fills of a single 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:. Trades without a tag show1: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 trade fields as Get Trades, such as
tradePrice,tradedQtyandorderNumber. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
symbol | string | Trading symbol of the instrument, e.g. NSE:SBIN-EQ |
row | int | Unique value used to sort the trades |
orderDateTime | string | Time the trade occurred, in DD-MMM-YYYY hh:mm:ss format (IST) |
orderNumber | string | The order ID for which the trade occurred |
exchangeOrderNo | string | The order number provided by the exchange |
tradeNumber | string | The trade number generated by the exchange |
tradePrice | float | The traded price |
tradeValue | float | The total traded value |
tradedQty | int | The total traded quantity |
orderType | int | The type of order that generated the trade (e.g. Limit, Market) |
side | int |
|
productType | string | The product type in which the order was placed, e.g. CNC or INTRADAY |
segment | int | The segment in which the order was placed |
exchange | int | The exchange in which the order was placed |
fyToken | string | Fytoken — a unique identifier for the symbol |
clientId | string | The FYERS client ID of the account the trade belongs to |
orderTag | string | The order tag matched by the order_tag filter; a 1: prefix denotes a user-supplied tag and a 2: prefix denotes a tag generated internally by FYERS (default is 1:Untagged) |
Last updated on