{ "info": { "author": "Kira Hsieh", "author_email": "kiraxie11287@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows :: Windows 10" ], "description": "# Liqueur\n\nLiqueur is a lightweight trade framework for Taiwan stock market based on Taiwan securities broker company [Capital](https://www.capital.com.tw/)'s API. It is designed to make application start quickly and easy to use, so user can focus on strategy development.\n\n## Requirement\n\n[Capital API v2.13.18](https://www.capital.com.tw/Service2/download/api_zip/CapitalAPI_2.13.18.zip)\n\n## Installation\n\nInstall the framework with pip:\n\n```bash\npip install Liqueur\n```\n\n## Quick Start\n\n```python\nfrom liqueur import Liqueur, Config\n\nconf = Config('.')\nconf.from_mapping({\n \"account\": {\n \"username\": \"A123456789\",\n \"password\": \"xxxxxxxx\"\n },\n \"subscription\": {\n \"quote\": [2330],\n \"detail\": [],\n \"kbar\": [],\n \"tick\": []\n }\n})\n\napp = Liqueur(conf)\n\n\n@app.hook_message()\ndef message_handler(message):\n print(message, end='')\n\n@app.hook_quote()\ndef quote_handler(quote):\n print(quote)\n\nif __name__ == \"__main__\":\n app.run()\n```\n\n```bash\n$ python myapp.py\nLogin......ok\nConnect......success\n{\n \"datetime\": \"2019-09-10 14:00:00.847484\",\n \"timestamp\": 1568132147.847484,\n \"orderbook_id\": \"2330\",\n \"name\": \"\u53f0\u7a4d\u96fb\",\n \"high_price\": 264.0,\n \"open_price\": 263.5,\n \"low_price\": 260.5,\n \"close_price\": 261.5,\n \"bid_price\": 261.5,\n \"bid_qty\": 251,\n \"ask_price\": 262.0,\n \"ask_qty\": 580,\n \"buy_qty\": 10733,\n \"sell_qty\": 18537,\n \"tick_qty\": 10,\n \"total_qty\": 29270,\n \"ref_qty\": 17186,\n \"ref_price\": 265.0,\n \"up_price\": 291.5,\n \"down_price\": 238.5,\n \"simulate\": 0\n}\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/kiraxie/liqueur", "keywords": "Taiwan trading framework", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "liqueur", "package_url": "https://pypi.org/project/liqueur/", "platform": "win_amd64", "project_url": "https://pypi.org/project/liqueur/", "project_urls": { "Homepage": "https://github.com/kiraxie/liqueur" }, "release_url": "https://pypi.org/project/liqueur/0.0.2/", "requires_dist": [ "skcom (>=0.9.3)", "comtypes (>=1.1.7) ; platform_system == \"Windows\"", "pywin32 (>=1.0) ; platform_system == \"Windows\"" ], "requires_python": ">=3.7", "summary": "A lightweight python framework for Capital API", "version": "0.0.2" }, "last_serial": 5942635, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "da205dd6c3a93e967528da2a74ade181", "sha256": "9e9851fc203e6a4d8c113e0fc96104197f6004ae27bf8220ee244d0778f3c10e" }, "downloads": -1, "filename": "liqueur-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "da205dd6c3a93e967528da2a74ade181", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 16084, "upload_time": "2019-10-08T03:22:46", "url": "https://files.pythonhosted.org/packages/0e/2e/45864aa4b590ff552ab0e407dbe3f198e64c0273ac3fe70a66d14c3289f2/liqueur-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80f8041731e359492c583f79fd574242", "sha256": "a935871a2961c97ad2c4a5a445d0f80f09e419735d6466355c5420828119fda3" }, "downloads": -1, "filename": "liqueur-0.0.2.tar.gz", "has_sig": false, "md5_digest": "80f8041731e359492c583f79fd574242", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 15188, "upload_time": "2019-10-08T03:22:48", "url": "https://files.pythonhosted.org/packages/41/c4/afc230e0b38e247131bba6bb5c8a0cf76b30fe0fb1758814fe35eea0a06c/liqueur-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da205dd6c3a93e967528da2a74ade181", "sha256": "9e9851fc203e6a4d8c113e0fc96104197f6004ae27bf8220ee244d0778f3c10e" }, "downloads": -1, "filename": "liqueur-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "da205dd6c3a93e967528da2a74ade181", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 16084, "upload_time": "2019-10-08T03:22:46", "url": "https://files.pythonhosted.org/packages/0e/2e/45864aa4b590ff552ab0e407dbe3f198e64c0273ac3fe70a66d14c3289f2/liqueur-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80f8041731e359492c583f79fd574242", "sha256": "a935871a2961c97ad2c4a5a445d0f80f09e419735d6466355c5420828119fda3" }, "downloads": -1, "filename": "liqueur-0.0.2.tar.gz", "has_sig": false, "md5_digest": "80f8041731e359492c583f79fd574242", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 15188, "upload_time": "2019-10-08T03:22:48", "url": "https://files.pythonhosted.org/packages/41/c4/afc230e0b38e247131bba6bb5c8a0cf76b30fe0fb1758814fe35eea0a06c/liqueur-0.0.2.tar.gz" } ] }