Gunbot core injects the datasets of information needed by Gunbot in the state files, you can locate those files in the json folder.
./json
they are named like this EXCHANGE-BASE-PAIR-state.json
inside the json you will find each field that are displayed in the core.
So mainly directly reading that file from your program you could be able to build anything you need like a profit tracker for example.