PrePAN

Sign in to PrePAN

Profile

User's Modules

Finance::IG This module comes with a script that lists out your spreadbets.

The code above is the simplest code for printing out your spreadbet positions using an IG api key and login.

There is much more you can do, although the code is still in the early stages of development.

Other projects that could be done with the existing module include print out the diff to yesterdays prices that you squirrelled away, or even that IG supply. List your transactions, and a bunch of more advanced stuff.

The module comes with a fully developed version of the listing scipt that has a full command line interface.

I would really like to hear from anyone who is interested in this, who has suggestions as to what further api calls should be supported, and especially anyone who has successfully or unsuccessfully tried to use it.

I have not had the opportunity to test on a Windows machine, so feedback here would also be useful.

regards,

Mark

TheDoktar@github 0 comments

Finance::IG Module gor using IG Markets REST API.

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.

TheDoktar@github 0 comments