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 the Phemex tab on CryptoTrader.Tax and drag each of your csv files into the blue box to import your transactions.