Login to your Bitfinex account.
Navigate to the reports page.
Click on the Trades link.
Select the full date range of your trading and all pairs.
Select Export to download the CSV report.
Navigate to the Bitfinex tab on the Import Trades step and upload your CSV file.