Import account list

I’m putting together a small program to convert transactions lists from the Avanza bank into Portfolio Performance CSV files. I have managed to generate a file for account transactions and one for portfolio transactions.

Is there a way to import a list of accounts into pp? I tried exporting an XML from pp, stripping away everything but the <accounts> tag and importing it again. This results in errors though.

I currently have my program list the accounts to add in pp before the user does the import, but it would be handy if these could be imported as well.

Add the following accounts before importing the CSV files:

Deposit accounts:
* Avanza All weather
* Avanza Rainy days
* Avanza Crazy trading

Securities accounts:
* Avanza All weather
* Avanza Rainy days
* Avanza Crazy trading