Navigate to the Spot Trade History page and click the Export Recent Trade History link:
Click the Custom (max range 3 months) option and export 4 files for each year of trading with the following date ranges for each year of trading and click Export.
January 1st - March 31st
April 1st - June 30th
July 1st - September 30th
October 1st - December 31st
You will receive a file in .csv format. Navigate to Step 1. Import. Select Add Account then choose the Phemex tab on CoinLedger. Click on Upload File and drag each of your CSV files into the box to import your transactions.