The sample code lists your positions and prints them out in a 1 line per position format.
Transactions and accounts can be listed in a similar way.
This code is at an early stage and should serve as a framework for further additions.
I invite anyone who has an IG account and uses the REST API with an api key to try it and advise how you get on.