Contract Trading in Phemex has a leverage feature.
![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/29028746343/original/ff8NtSaq9qF2rI8CLkBI1ES1r7nfDFblJQ.png?1610996209)
You will need to import it as PnL rather than a trade history from here: https://phemex.com/assets/contract-pnl-details
![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/29028746341/original/UuQszjaBnmtJNZGyqNiWI37Bs9hZTxUZ5w.png?1610996208)
If the data is not exportable, you can ask the Phemex support or you can copy-paste the table to an excel file.
You can also generate a CSV file now which you can implement via
the Custom Exchange Import with the following setting:
![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/29033767692/original/bK6paDj_i0nfN55BxGYcvt19Ys8Fs_SCTg.png?1630404365)
Since the P&L will be imported as deposits and withdrawals, please bulk edit the transaction type to "Derivatives / Futures Profit" and "Derivatives / Futures Loss" as described here: Bulk Edit/Delete - Instructions.