Skip to content
Unify data from crypto exchanges
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
.idea
unicorn_fy
.gitignore
CHANGELOG.md
LICENSE Initial commit Apr 3, 2019
README.md
example_unicorn_fy.py update pypi wheel May 3, 2019
pypi_create_test_wheel.sh
pypi_create_wheel.sh update file header text Apr 30, 2019
pypi_install_packaging_tools.sh
pypi_remove_files.sh update file header text Apr 30, 2019
pypi_upload_wheel.sh
requirements.txt
setup.py
test_setup.py
unicorn_fy.py

README.md

GitHub release GitHub code size in bytes PyPI - Python Version PyPI - Status PyPI - yes PyPI - Wheel GitHub

UnicornFy

Unify data from crypto exchanges

from unicorn_fy.unicorn_fy import UnicornFy

received_stream_data_json = {"stream": "btcusdt@trade",
                             "data": {"e": "trade",
                                      "E": 1556876873656,
                                      "s": "BTCUSDT",
                                      "t": 117727701,
                                      "p": "5786.76000000",
                                      "q": "0.03200500",
                                      "b": 341831847,
                                      "a": 341831876,
                                      "T": 1556876873648,
                                      "m": True,
                                      "M": True}}

unicorn_fied_stream_data = UnicornFy.binance_websocket(received_stream_data_json)
print(unicorn_fied_stream_data)
>>>
{'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']}

Supported Exchanges

  • Binance (all webstream data!)

Installation

pip install unicorn-fy

https://pypi.org/project/unicorn-fy/

Documentation

https://www.unicorn-data.com/unicorn_fy.html

Project, code and downloads:

https://github.com/unicorn-data-analysis/unicorn_fy

Wiki

https://github.com/unicorn-data-analysis/unicorn_fy/wiki

How to report bugs or suggest improvements?

First try the latest release via download or with pip install unicorn-fy --upgrade. If the issue still exists, provide the error trace, OS and python version and explain how to reproduce the error. A demo script is appreciated.

Please open a new issue: https://github.com/unicorn-data-analysis/unicorn_fy/issues

Contributing

UnicornFy is an open source project which welcomes contributions which can be anything from simple documentation fixes to new features. To contribute, fork the project on GitHub and send a pull request.

You can’t perform that action at this time.