# 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 done trades - [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 indicating that there are no remaining executed trades available for STP download. To get trades that have been previously downloaded, you must first call the Prepare trades to resend endpoint. ## Prepare trades to resend - [POST /v2/trades/stp/resend](https://docs.fxinside.net/openapi/integral-api-reference/rest/stp-download/resend.md): Set previously downloaded trades with within the specified date range as eligible for download. You must then call the Get trades endpoint to download the trades. The attribute on previously downloaded trades is always set to .