{ "info": { "author": "bopo.wang", "author_email": "ibopo@126.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# [Bitfinex](https://www.bitfinex.com/) [MooQuant](http://gbeced.github.io/pyalgotrade/) Module\n\nThis is a very early version of the module. **Live trading is not yet implemented.** Right now, I have only implemented LiveFeed (extends ```barfeed.BaseBarFeed```). Live data is fetched from the trades and order book API endpoint of Bitfinex. Hopefully in the near future, a live broker class will be implemented.\n\nThe LiveFeed class can be plugged just as any other bar feed in MooQuant. To subscribe for bid and ask prices, just call ```getOrderBookUpdateEvent().subscribe()``` from the LiveFeed instance. Kindly see example at sample.py.\n\nLiked my work? **Leave me a tip @ 32dzQMkn4RgChSFzemwdYyKJ85PcsVmP6e**\n\nSample dump:\n```\n2015-08-10 07:56:02,672 strategy [INFO] Order book updated. Best bid: 265.83. Best ask: 265.89\n2015-08-10 07:56:10,800 strategy [INFO] Order book updated. Best bid: 265.83. Best ask: 265.93\n2015-08-10 07:56:24,272 strategy [INFO] Order book updated. Best bid: 265.83. Best ask: 265.94\n2015-08-10 07:56:29,269 strategy [INFO] Price: 265.91. Volume: 0.94.\n2015-08-10 07:56:33,044 strategy [INFO] Order book updated. Best bid: 265.83. Best ask: 265.92\n2015-08-10 07:56:43,051 strategy [INFO] Order book updated. Best bid: 265.65. Best ask: 265.8\n2015-08-10 07:56:48,124 strategy [INFO] Price: 265.83. Volume: 2.91549425.\n2015-08-10 07:56:48,125 strategy [INFO] Price: 265.83. Volume: 0.419.\n2015-08-10 07:56:48,125 strategy [INFO] Price: 265.83. Volume: 0.38.\n2015-08-10 07:56:48,125 strategy [INFO] Exit signal. Sell at 265.65\n2015-08-10 07:56:48,126 strategy [INFO] Position closed at 265.83\n2015-08-10 07:56:48,126 strategy [INFO] Price: 265.83. Volume: 0.634.\n2015-08-10 07:56:48,126 strategy [INFO] Price: 265.83. Volume: 0.397.\n2015-08-10 07:56:48,127 strategy [INFO] Price: 265.83. Volume: 0.38.\n2015-08-10 07:56:48,127 strategy [INFO] Price: 265.83. Volume: 0.424.\n2015-08-10 07:56:48,127 strategy [INFO] Price: 265.83. Volume: 7.6751.\n2015-08-10 07:56:48,127 strategy [INFO] Price: 265.82. Volume: 0.377.\n2015-08-10 07:56:48,127 strategy [INFO] Price: 265.82. Volume: 0.376.\n2015-08-10 07:56:48,128 strategy [INFO] Price: 265.78. Volume: 0.07.\n2015-08-10 07:56:51,492 strategy [INFO] Order book updated. Best bid: 265.66. Best ask: 265.78\n2015-08-10 07:56:59,802 strategy [INFO] Order book updated. Best bid: 265.66. Best ask: 265.79\n2015-08-10 07:57:16,524 strategy [INFO] Order book updated. Best bid: 265.68. Best ask: 265.79\n2015-08-10 07:57:21,770 strategy [INFO] Price: 265.79. Volume: 0.79.\n2015-08-10 07:57:24,932 strategy [INFO] Order book updated. Best bid: 265.71. Best ask: 265.79\n2015-08-10 07:57:33,249 strategy [INFO] Order book updated. Best bid: 265.76. Best ask: 265.79\n2015-08-10 07:57:41,749 strategy [INFO] Order book updated. Best bid: 265.78. Best ask: 265.79\n2015-08-10 07:58:30,414 strategy [INFO] Price: 265.79. Volume: 0.010227.\n2015-08-10 07:58:30,415 strategy [INFO] Price: 265.79. Volume: 0.375861.\n```\n\nThis is based on Bitstamp and Xignite module of MooQuant.\n# mooquant_okex\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bopo/mooquant_okex", "keywords": "mooquant_okex", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "mooquant_okex", "package_url": "https://pypi.org/project/mooquant_okex/", "platform": "", "project_url": "https://pypi.org/project/mooquant_okex/", "project_urls": { "Homepage": "https://github.com/bopo/mooquant_okex" }, "release_url": "https://pypi.org/project/mooquant_okex/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "mooquant okex module", "version": "0.1.2" }, "last_serial": 3886534, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "e8162536d51f4f8c94a21ae7f5db4054", "sha256": "b980714831cd485814e05b46ef94480fcb359225c808e454e7d14a108bce3d4f" }, "downloads": -1, "filename": "mooquant_okex-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8162536d51f4f8c94a21ae7f5db4054", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 10773, "upload_time": "2018-03-06T05:28:45", "url": "https://files.pythonhosted.org/packages/d4/08/28d713d04dd116b3938d895eeb710320b11642d4b1b1fb028668903cb959/mooquant_okex-0.1.1-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "07efb32ae0ea33bdedc0808a4857f8dd", "sha256": "d184081969c6f43715b466b538726c17a00b379e5438a151e5f90d28737f96a7" }, "downloads": -1, "filename": "mooquant_okex-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07efb32ae0ea33bdedc0808a4857f8dd", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8868, "upload_time": "2018-05-22T06:52:35", "url": "https://files.pythonhosted.org/packages/f6/8d/dcf2dd1838da80dee14de05ea0fb31f1180a1fc4f459e79bd70f13b779ca/mooquant_okex-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d990e77f0aa1d001d605f3da7c986222", "sha256": "ba34ac0db8e6f71f9b34c2316fc9eac1e67dd9ff449980d4f2cded4c2e02306a" }, "downloads": -1, "filename": "mooquant_okex-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d990e77f0aa1d001d605f3da7c986222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6270, "upload_time": "2018-05-22T06:52:31", "url": "https://files.pythonhosted.org/packages/81/46/486dc0bd9c13028678ad8083e740835863b1cc1cb4e4a74c0b33d09c8146/mooquant_okex-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07efb32ae0ea33bdedc0808a4857f8dd", "sha256": "d184081969c6f43715b466b538726c17a00b379e5438a151e5f90d28737f96a7" }, "downloads": -1, "filename": "mooquant_okex-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07efb32ae0ea33bdedc0808a4857f8dd", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8868, "upload_time": "2018-05-22T06:52:35", "url": "https://files.pythonhosted.org/packages/f6/8d/dcf2dd1838da80dee14de05ea0fb31f1180a1fc4f459e79bd70f13b779ca/mooquant_okex-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d990e77f0aa1d001d605f3da7c986222", "sha256": "ba34ac0db8e6f71f9b34c2316fc9eac1e67dd9ff449980d4f2cded4c2e02306a" }, "downloads": -1, "filename": "mooquant_okex-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d990e77f0aa1d001d605f3da7c986222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6270, "upload_time": "2018-05-22T06:52:31", "url": "https://files.pythonhosted.org/packages/81/46/486dc0bd9c13028678ad8083e740835863b1cc1cb4e4a74c0b33d09c8146/mooquant_okex-0.1.2.tar.gz" } ] }