Post Trade

Get historical trades

This API retrieves the trade history for a specified time interval.

get/v2/charges/historical-trades

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v2/charges/historical-trades
  • Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)

Query parameters

segmentstring

Segment for which data is requested can be from the following options EQ - Equity, FO - Futures and Options, COM - Commodity, CD - Currency Derivatives MF - Mutual Funds

start_datestring required

Date from which trade history needs to be fetched. Date in YYYY-mm-dd format

end_datestring required

Date till which history needs needs to be fetched. Date in YYYY-mm-dd format

page_numberinteger required

Page number for which you want to fetch trade history

page_sizeinteger required

How many records you want for a page

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.