{ "info": { "author": "UNICORN Data Analysis", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Office/Business :: Financial :: Investment", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "![GitHub release](https://img.shields.io/github/release/unicorn-data-analysis/unicorn_fy.svg) \n![GitHub](https://img.shields.io/github/license/unicorn-data-analysis/unicorn_fy.svg?color=blue) \n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/unicorn_fy.svg) \n![PyPI - Status](https://img.shields.io/pypi/status/unicorn_fy.svg) \n![PyPI - yes](https://img.shields.io/badge/PyPI-yes-brightgreen.svg?color=orange) \n![PyPI - Wheel](https://img.shields.io/pypi/wheel/unicorn_fy.svg?label=PyPI%20wheel&color=orange) \n![PyPI - Downloads](https://img.shields.io/pypi/dm/unicorn-fy.svg?label=PyPI%20downloads&color=orange)\n\n\n# UnicornFy\nConvert received raw data from crypto exchange API endpoints into well-formed python dictionaries.\n\n[UnicornFy](https://github.com/unicorn-data-analysis/unicorn_fy) is a side project of \n[UNICORN Binance WebSocket API](https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api) but can be used\nwith every API that delivers the receives in raw format (as received without changes).\n\n```\nfrom unicorn_fy.unicorn_fy import UnicornFy\n\nreceived_stream_data_json = {\"stream\": \"btcusdt@trade\",\n \"data\": {\"e\": \"trade\",\n \"E\": 1556876873656,\n \"s\": \"BTCUSDT\",\n \"t\": 117727701,\n \"p\": \"5786.76000000\",\n \"q\": \"0.03200500\",\n \"b\": 341831847,\n \"a\": 341831876,\n \"T\": 1556876873648,\n \"m\": True,\n \"M\": True}}\n\nunicorn_fied_stream_data = UnicornFy.binance_websocket(received_stream_data_json)\nprint(unicorn_fied_stream_data)\n>>>\n{'stream_type': 'btcusdt@trade', 'event_type': 'trade', 'event_time': 1556876873656, 'symbol': 'BTCUSDT', 'trade_id': 117727701, 'price': '5786.76000000', 'quantity': '0.03200500', 'buyer_order_id': 341831847, 'seller_order_id': 341831876, 'trade_time': 1556876873648, 'is_market_maker': True, 'ignore': True, 'unicorn_fied': ['binance', '0.1.0']}\n```\nCurrently this module has no dependencies.\n\nIf you like the project, please ![star](https://s3.gifyu.com/images/stard237b3003af9f9a9.png) it on \n[GitHub](https://github.com/unicorn-data-analysis/unicorn_fy)! If you use the\n[UnicornFy](https://github.com/unicorn-data-analysis/unicorn_fy) lib in your project, let us know on Twitter \n[@unicorn_data](https://twitter.com/unicorn_data)!\n\n## Supported Exchanges\n### Websockets\n- binance.com ([API specification](https://github.com/binance-exchange/binance-official-api-docs))\n- binance.je ([API specification](https://github.com/binance-jersey/binance-official-api-docs/))\n- binance.org ([API specification](https://docs.binance.org/api-reference/dex-api/ws-connection.html)) **(in planning)**\n- testnet.binance.org ([API specification](https://docs.binance.org/api-reference/dex-api/ws-connection.html)) \n**(in planning)**\n\n## Installation and Upgrade\n### A wheel of the latest release with PIP from [PyPI](https://pypi.org/project/unicorn-fy/)\n`pip install unicorn-fy --upgrade`\n### From source of the latest release with PIP from [Github](https://github.com/unicorn-data-analysis/unicorn_fy)\n#### Linux, macOS, ...\nRun in bash:\n\n`pip install https://github.com/unicorn-data-analysis/unicorn-fy/archive/$(curl -s https://api.github.com/repos/unicorn-data-analysis/unicorn-fy/releases/latest | grep -oP '\"tag_name\": \"\\K(.*)(?=\")').tar.gz --upgrade`\n#### Windows\nUse the below command with the version (such as 0.2.0) you determined [here](https://github.com/unicorn-data-analysis/unicorn_fy/releases/latest):\n\n`pip install https://github.com/unicorn-data-analysis/unicorn_fy/archive/0.2.0.tar.gz --upgrade`\n### From the latest source (dev-stage) with PIP from [Github](https://github.com/unicorn-data-analysis/unicorn_fy)\nThis is not a release version and can not be considered to be stable!\n\n`pip install https://github.com/unicorn-data-analysis/unicorn_fy/tarball/master --upgrade`\n\n## Documentation\nhttps://www.unicorn-data.com/unicorn_fy.html\n\n## Source, Downloads, Examples, ...\nhttps://github.com/unicorn-data-analysis/unicorn_fy\n\n## Change Log\nhttps://github.com/unicorn-data-analysis/unicorn_fy/blob/master/CHANGELOG.md\n\n## Wiki\nhttps://github.com/unicorn-data-analysis/unicorn_fy/wiki\n\n## Receive Notifications\nTo receive notifications on available updates you can ![watch](https://s3.gifyu.com/images/github_watch.png) the \nrepository on [GitHub](https://github.com/unicorn-data-analysis/unicorn_fy), write your \n[own script](https://github.com/unicorn-data-analysis/unicorn_fy/blob/master/example_version_of_this_package.py) \nwith using `unicorn_fy.is_update_availabe()` or you use the \n[monitoring API service](https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api/blob/master/tools/icinga/).\n\n## How to report Bugs or suggest Improvements?\n[List of planned features](https://github.com/unicorn-data-analysis/unicorn_fy/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) - \nclick ![thumbs-up](https://s3.gifyu.com/images/tu.png) if you need one of them or suggest a new feature!\n\nBefore you report a bug, [try the latest release](https://github.com/unicorn-data-analysis/unicorn_fy#installation-and-upgrade). \nIf the issue still exists, provide the error trace, OS and python version and explain how to reproduce the error. \nA demo script is appreciated.\n\nIf you dont find an issue related to your topic, please open a new issue:\nhttps://github.com/unicorn-data-analysis/unicorn_fy/issues\n\n[Report a security bug!](https://github.com/unicorn-data-analysis/unicorn_fy/security/policy)\n\n## Contributing\n[unicorn_fy](https://github.com/unicorn-data-analysis/unicorn_fy) is an open \nsource project which welcomes contributions which can be anything from simple documentation fixes to new features. To \ncontribute follow \n[this guide](https://github.com/unicorn-data-analysis/unicorn_fy/blob/master/CONTRIBUTING.md).\n\nWe ![love](https://s3.gifyu.com/images/heartae002231c41d8a80.png) open source!\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://www.unicorn-data.com", "keywords": "unicorn-data-analysis,binance,api,exchange,unify,binance-dex,binance-chain,rest-api,websockets", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "unicorn-fy", "package_url": "https://pypi.org/project/unicorn-fy/", "platform": "", "project_url": "https://pypi.org/project/unicorn-fy/", "project_urls": { "Documentation": "https://www.unicorn-data.com/unicorn_fy", "Homepage": "https://www.unicorn-data.com", "Source": "https://github.com/unicorn-data-analysis/unicorn_fy", "Wiki": "https://github.com/unicorn-data-analysis/unicorn_fy/wiki" }, "release_url": "https://pypi.org/project/unicorn-fy/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Convert received raw data from crypto exchange API endpoints into well-formed python dictionaries.", "version": "0.2.0" }, "last_serial": 5500083, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "b0ba5c01f375cef9b07aab2f5eaf10f2", "sha256": "5bf2bd5056d187d11d075347e57bcca8e4e45c0b3426f2afc1a1609f19f4e33c" }, "downloads": -1, "filename": "unicorn_fy-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b0ba5c01f375cef9b07aab2f5eaf10f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9392, "upload_time": "2019-07-05T19:36:52", "url": "https://files.pythonhosted.org/packages/cd/1d/70ce0dc5f12c13384541a1571359dbbaaccade052de316ed01f11eb099ba/unicorn_fy-0.2.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b0ba5c01f375cef9b07aab2f5eaf10f2", "sha256": "5bf2bd5056d187d11d075347e57bcca8e4e45c0b3426f2afc1a1609f19f4e33c" }, "downloads": -1, "filename": "unicorn_fy-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b0ba5c01f375cef9b07aab2f5eaf10f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9392, "upload_time": "2019-07-05T19:36:52", "url": "https://files.pythonhosted.org/packages/cd/1d/70ce0dc5f12c13384541a1571359dbbaaccade052de316ed01f11eb099ba/unicorn_fy-0.2.0-py3-none-any.whl" } ] }