IG REST trading API client
Small Python library to connect to IG REST trading API (more information and API reference is available on IG Labs website).
Installation
To use most recent release:
pip install ig-rest-client
To use current master branch:
pip install git+https://github.com/wjszlachta/ig-rest-client.git
Usage
For demo account:
from ig_rest_client import IgRestSession
api_key = '...'
account_id = '...'
rest_api_username = '...'
rest_api_password = '...'
session = IgRestSession(api_key, account_id, rest_api_username, rest_api_password)
print(session.session_details())
session.log_out()
For live account:
from ig_rest_client import IgRestSession, IG_REST_TRADING_API_LIVE_URL
api_key = '...'
account_id = '...'
rest_api_username = '...'
rest_api_password = '...'
session = IgRestSession(api_key, account_id, rest_api_username, rest_api_password, rest_api_url=IG_REST_TRADING_API_LIVE_URL)
print(session.session_details())
session.log_out()
Metadata
Release files for ig-rest-client 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ig-rest-client-0.1.tar.gz | 4.3 kB | Without provenance | Details for ig-rest-client-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ig_rest_client-0.1-py3-none-any.whl | Python 3 | none | any | Details for ig_rest_client-0.1-py3-none-any.whl |
Total release size: 8.9 kB
Release files / ig-rest-client-0.1.tar.gz
| Download URL | ig-rest-client-0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e884aa19deb44f18b4c8ba5f45ac7f50cfba69935315f82aee9c337540b79d8
|
|
BLAKE2b-256 checksum How to use checksums |
9aeb5dd00baf4e9e0f9fead3cd9c8bac020770ed73a97eace9be58cd3579b4ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / ig_rest_client-0.1-py3-none-any.whl
| Download URL | ig_rest_client-0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cea613f3d390d9e97a30246bed56ba95f0cac2619d21e8101101d7e09da62077
|
|
BLAKE2b-256 checksum How to use checksums |
897b38143d76a22931c7b31a37437064d356306ccb9acde6415a5d768cd47165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for ig-rest-client 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.