Unofficial Python IG REST API Client.
This library stems from one of my own projects which I decided to rip out the client code and open-source.
It provides a variety of useful things, such as:
- IG Client (
ig_client.py
)- Robust implementation of IG REST client including most of the fundemental and core endpoints (found here).
- Feel free to contribute your implementation of unsupported endpoints or improve test.
- Data Wrappers (
wrappers/...
)- Custom data wrappers for common IG response objects e.g.
IGAccount
,IGWatchlist
,IGPosition
etc.
- Custom data wrappers for common IG response objects e.g.
- Utility Classes (
utility/...
)- Utilities which make working with library and IG objects easier.
- Ensure Python Version
>= 3
. - Install Library Dependancies.
pip install jsonpickle requests
- Clone Repository.
git clone https://github.com/ryanmaugv1/iglib-py
- Move into project directory.
- Update constants with your own app Key, ID, Password and Account IDs.
- Edit constants in
utility/constants.py
.
- Edit constants in
- Import client (
ig_client.py
) like you would any other local module. - Done.
Ryan Maugin (@ryanmaugv1)