Documentation: https://oliver-zehentleitner.github.io/unicorn-binance-rest-api
Github: https://github.com/oliver-zehentleitner/unicorn-binance-rest-api
PyPI: https://pypi.org/project/unicorn-binance-rest-api/

Installation

You can install the library with `pip install unicorn-binance-rest-api` from PyPI or you download the latest release or the dev-stage. The easiest way to test the examples is to clone the repository from git with `git clone git@github.com:oliver-zehentleitner/unicorn-binance-rest-api.git` to your local system.

How to use the class?

from unicorn_binance_rest_api.unicorn_binance_rest_api_manager import BinanceRestApiManager

api_key = "aaa"
api_secret = "bbb"
ubra = BinanceRestApiManager(api_key, api_secret, exchange="binance.com")

depth = ubra.get_order_book(symbol='BNBBTC')
print(f"{depth}")

prices = ubra.get_all_tickers()
print(f"{prices}")

print(f"Used weight: {ubra.get_used_weight()}")

Configure logging, to get a very verbose mode use DEBUG instead of INFO:

logging.basicConfig(level=logging.INFO,       
                    filename=os.path.basename(__file__) + '.log',       
                    format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",       
                    style="{")

Here are some working example files (just clone the repository and run them):
https://github.com/oliver-zehentleitner/unicorn-binance-rest-api/blob/master/example_doing_something.py
https://github.com/oliver-zehentleitner/unicorn-binance-rest-api/blob/master/example_easy_migration_from_python-binance.py
https://github.com/oliver-zehentleitner/unicorn-binance-rest-api/blob/master/example_orders.py
https://github.com/oliver-zehentleitner/unicorn-binance-rest-api/blob/master/example_version_of_this_package.py