Skip to Content

Get Trades

This API allows you to fetch all the trades executed in your account today.

USE CASE

Check the price and quantity at which your orders were filled today.

Note

Live Streaming — Receive trade execution updates in real time through the General WebSocket. View General WebSocket Overview documentation.

Details

  • Fetches all the trades for the current day across all platforms and exchanges in the current trading day.
  • Each row is one executed trade. orderNumber links it to the order it filled and tradeNumber is the number generated by the exchange.
  • Orders that were never executed (pending, rejected or cancelled) do not appear here. Use Get Orders to see them.
  • orderDateTime is the time the trade occurred, in IST. row is a unique value you can use to sort trades.
  • orderTag carries a 1: prefix for tags you set and 2: for tags generated by FYERS. Trades without a tag show 1:Untagged.
  • exchangeOrderNo is the order number provided by the exchange, and fyToken is the unique identifier of the symbol.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Response Attributes - For each trade

AttributeData TypeDescription
symbolstringEg: NSE:SBIN-EQ
rowintThe unique value to sort the trades
orderDateTimestringThe time when the trade occurred in “DD-MM-YYYY hh:mm:ss” format in IST
orderNumberstringThe order id for which the trade occurred
tradeNumberstringThe trade number generated by the exchange
tradePricefloatThe traded price
tradeValuefloatThe total traded value
tradedQtyintThe total traded qty
sideint
productTypestring
exchangeOrderNostringThe order number provided by the exchange
segmentint
exchangeint
fyTokenstringFytoken is a unique identifier for every symbol.
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 1:Untagged
Last updated on