Python library/framework to access and trade on IG Index
Install and update using pip:
pip install -U pygindex
from pygindex.client import IGClient
c = IGClient()
s = c.get_session_details()
print(s)
Will produce
{'clientId': 'XXXXXXXXX',
'accountId': 'XXXXX',
'timezoneOffset': 1,
'locale': 'en_GB',
'currency': 'GBP',
'lightstreamerEndpoint': 'https://apd.marketdatasystems.com'}