In order to generate reports on orders and positions, you need to connect trading accounts. It can be done via API-keys. Let's make an example of adding API-keys via Binance exchange.
Create the keys in your personal exchange's account. Be sure to create "reading" keys. Such keys allow you to read out the trades, but do not provide the ability to make exchange transactions. This ensures that the bot will not have access to your account transactions. Follow the safety rules!
The "ticks" for creating "reading" keys on Binance should be set like this.