PyGIndex - Python library/framework
Project description
PyGIndex
Python library/framework to access and trade on IG Index
Examples
Get session details
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'}
Get account details
from pygindex.client import IGClient
c = IGClient()
s = c.get_accounts()
print(s)
Will produce
{
"accounts": [
{
"accountAlias": null,
"accountId": "XXXXX",
"accountName": "CFD",
"accountType": "CFD",
"balance": {
"available": 0.0,
"balance": 0.0,
"deposit": 0.0,
"profitLoss": 0.0
},
"canTransferFrom": true,
"canTransferTo": true,
"currency": "GBP",
"preferred": false,
"status": "ENABLED"
},
{
"accountAlias": null,
"accountId": "XXXXX",
"accountName": "Spread bet",
"accountType": "SPREADBET",
"balance": {
"available": 0.0,
"balance": 0.0,
"deposit": 0.0,
"profitLoss": 0.0
},
"canTransferFrom": true,
"canTransferTo": true,
"currency": "GBP",
"preferred": true,
"status": "ENABLED"
}
]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygindex-0.0.2.tar.gz
(18.6 kB
view hashes)
Built Distribution
Close
Hashes for pygindex-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b13eacc497355c192a77f3ca456833a85e0cf187edcd86ba363569c2340d2e |
|
MD5 | a4338c891d564cbb861806961d9db00f |
|
BLAKE2b-256 | 1c2a722d63f26ca9d5edcd1775aa0d4d9c14681b3fff02eeef669efa194da2c6 |