This help page explains how to obtain transaction history.
There are below methods to obtain (prepare) transaction history:
① Exchange file How to get trade histories from exchanges
② API integration Exchange API Connection
③ Wallet address How to upload a trade history of Metamask wallet?
④ Custom trade
Transaction histories outside supported exchanges, peer-to-peer transactions, or transactions not obtainable through files or APIs may require the creation of custom files as needed.