The CSV file can be downloaded from your LocalBitcoins account https://localbitcoins.com/accounts/profile-edit/personal-data/ then click in "transaction history" to download the CSV file.
Please import your Localbitcoins CSV on the Custom Exchange Import page with the following settings for the deposit and withdrawal transactions only:
You can save those settings for later use as well.