I am an intermediate user of Python, but do not know how to interface IG.com's API with Python. I have compiled some simple code (attached) to connect to the IG.com API (https://labs.ig.com/gettingstarted), but now need help to further develop the code to:
1. Request and pull price information from the IG REST API (https://labs.ig.com/rest-trading-api-guide) and store this information in a Pandas data frame. 2. Show me how to operate the four operators (GET - retrieve a resource, PUT - replace a resource, POST - create a resource and DELETE - delete a resource). I will need to create and cancel orders using the IG REST API. 3. Setup and get the IG streaming API working, to constantly grab and store the latest price information into the dataframe for particular instruments. (https://labs.ig.com/streaming-api-guide)
There have been a number of different libraries built by others to carry out the above, namely: https://github.com/tg12/FAIG and https://github.com/ig-python/ig-markets-api-python-library - however, I cannot get these to work reliably. I, therefore, want some simple and easy to use/easy to understand code to allow me to log in, grab prices and store in a DF, stream prices to keep the DF up-to-date and then create and cancel orders.
It is important to me that this code is simple and not overly complex, as I would like to fully understand every line and what it's doing. I will also need the code to be fully annotated, with all lines of code explained in full.
For reference, I use the latest version of Spyder and Python 3.7.4.
I will need the winning developer to create a new shared demo account (which will be shared with me) on IG.com and get all the above functionality working.
If I find the programmer is good and enjoyable to work with, there will be more work further developing this to assist with automating some of the orders and analysis.