{ "info": { "author": "Wojciech Szlachta", "author_email": "wojciech@szlachta.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python :: 3", "Topic :: Office/Business :: Financial" ], "description": "# IG streaming API client\n\nSmall Python library to connect to [IG](https://www.ig.com/) streaming API (more information and API reference is available on [IG Labs](https://labs.ig.com/) website).\n\n## Installation\n\nTo use most recent release:\n\n```bash\npip install ig-streaming-client\n```\n\nTo use current master branch:\n\n```bash\npip install git+https://github.com/wjszlachta/ig-streaming-client.git\n```\n\n## Usage\n\nFor demo account:\n\n```python\nimport time\n\nfrom ig_streaming_client import IgStreamingSession\nfrom lightstreamer_client import LightstreamerSubscription\n\napi_key = '...'\naccount_id = '...'\nrest_api_username = '...'\nrest_api_password = '...'\n\nsession = IgStreamingSession(api_key, account_id, rest_api_username, rest_api_password)\n\nsubscription = LightstreamerSubscription('MERGE',\n ['MARKET:CS.D.BITCOIN.TODAY.IP'],\n ['UPDATE_TIME', 'BID', 'OFFER'])\nsubscription.addlistener(lambda item: print(item))\nsession.subscribe(subscription)\n\ntime.sleep(30)\n\nsession.log_out()\n```\n\nFor live account:\n\n```python\nimport time\n\nfrom ig_rest_client import IG_REST_TRADING_API_LIVE_URL\nfrom ig_streaming_client import IgStreamingSession\nfrom lightstreamer_client import LightstreamerSubscription\n\napi_key = '...'\naccount_id = '...'\nrest_api_username = '...'\nrest_api_password = '...'\n\nsession = IgStreamingSession(api_key, account_id, rest_api_username, rest_api_password, rest_api_url=IG_REST_TRADING_API_LIVE_URL)\n\nsubscription = LightstreamerSubscription('MERGE',\n ['MARKET:CS.D.BITCOIN.TODAY.IP'],\n ['UPDATE_TIME', 'BID', 'OFFER'])\nsubscription.addlistener(lambda item: print(item))\nsession.subscribe(subscription)\n\ntime.sleep(30)\n\nsession.log_out()\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wjszlachta/ig-streaming-client", "keywords": "IG trading", "license": "", "maintainer": "", "maintainer_email": "", "name": "ig-streaming-client", "package_url": "https://pypi.org/project/ig-streaming-client/", "platform": "", "project_url": "https://pypi.org/project/ig-streaming-client/", "project_urls": { "Bug Reports": "https://github.com/wjszlachta/ig-streaming-client/issues", "Homepage": "https://github.com/wjszlachta/ig-streaming-client", "Source": "https://github.com/wjszlachta/ig-streaming-client" }, "release_url": "https://pypi.org/project/ig-streaming-client/0.1/", "requires_dist": [ "ig-rest-client", "lightstreamer-client" ], "requires_python": "", "summary": "IG streaming API client", "version": "0.1" }, "last_serial": 4617867, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "36c8ee54321729e5eb7350f0c127658a", "sha256": "389d9ba4d1f738a014206c035abb95ca4d72904f0f2fe5f63d01cf25aa339ed3" }, "downloads": -1, "filename": "ig_streaming_client-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "36c8ee54321729e5eb7350f0c127658a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3303, "upload_time": "2018-12-19T18:51:01", "url": "https://files.pythonhosted.org/packages/d1/fd/39f16155f15352083616ef32bf79a47af768de6ed73c07b58383d65f714a/ig_streaming_client-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d31e07dc01553ad8e8c66a832748d296", "sha256": "fbb94cba0400395a399e1a17470e5154f98059681600494b667dc8b35a663d8f" }, "downloads": -1, "filename": "ig-streaming-client-0.1.tar.gz", "has_sig": false, "md5_digest": "d31e07dc01553ad8e8c66a832748d296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3024, "upload_time": "2018-12-19T18:51:03", "url": "https://files.pythonhosted.org/packages/b9/8d/75c783c151e622e1e36ade47d959db761311b9e226db1535465c03d69d12/ig-streaming-client-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36c8ee54321729e5eb7350f0c127658a", "sha256": "389d9ba4d1f738a014206c035abb95ca4d72904f0f2fe5f63d01cf25aa339ed3" }, "downloads": -1, "filename": "ig_streaming_client-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "36c8ee54321729e5eb7350f0c127658a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3303, "upload_time": "2018-12-19T18:51:01", "url": "https://files.pythonhosted.org/packages/d1/fd/39f16155f15352083616ef32bf79a47af768de6ed73c07b58383d65f714a/ig_streaming_client-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d31e07dc01553ad8e8c66a832748d296", "sha256": "fbb94cba0400395a399e1a17470e5154f98059681600494b667dc8b35a663d8f" }, "downloads": -1, "filename": "ig-streaming-client-0.1.tar.gz", "has_sig": false, "md5_digest": "d31e07dc01553ad8e8c66a832748d296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3024, "upload_time": "2018-12-19T18:51:03", "url": "https://files.pythonhosted.org/packages/b9/8d/75c783c151e622e1e36ade47d959db761311b9e226db1535465c03d69d12/ig-streaming-client-0.1.tar.gz" } ] }