How do I automate the CSV-dumping of trade history from Bisq?

I want to automate this:

  1. Start Bisq.
  2. Click “Portfolio”.
  3. Click “History”.
  4. Click “Export to CSV”.
  5. Select file location.

Instead, I wish to do something like:

bisq.exe --export-trade-history-to-csv --output-file="C:\tmp\Bisq.csv"

You know, to automate it. I hate trying to remember manual tasks and doing them. It’s extremely stressful to my brain. (You can imagine what I think about the forced, manual Bisq updates…)

Before you tell me to “just use the API”, I’ve tried to read about it about a hundred times over years now, but the documentation seems to say nothing about how to actually use it. At least I can’t find any such information. It redirects around to some wiki.