# STP download

Get executed trades that have not been downloaded before.
To get trades that have been previously downloaded, you must first call the [Prepare trades to resend](#operation/resend) endpoint.

 - [GET /v2/trades/stp/messages](https://docs.fxinside.net/openapi/integral-api-reference/rest/stp-download/gettrades.md): Get executed trades that have not been downloaded before. The default maximum number of trades returned is determined by the server. You should poll this endpoint until you receive an empty response i
 - [POST /v2/trades/stp/resend](https://docs.fxinside.net/openapi/integral-api-reference/rest/stp-download/resend.md): Set previously downloaded trades with `tradeDate` within the specified date range as eligible for download. You must then call the [Get trades](#operation/getTrades) endpoint to download the trades. T
