[![Get a UNICORN Binance Suite License](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/logo/LUCIT-UBS-License-Offer.png)](https://shop.lucit.services)
[![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-local-depth-cache?color=blue)](https://anaconda.org/lucit/unicorn-binance-local-depth-cache)
[![GitHub Release](https://img.shields.io/github/release/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache.svg?label=github)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases)
[![PyPi Release](https://img.shields.io/pypi/v/unicorn-binance-local-depth-cache?color=blue)](https://pypi.org/project/unicorn-binance-local-depth-cache/)
[![Supported Python Version](https://img.shields.io/pypi/pyversions/unicorn_binance_local_depth_cache.svg)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-LSOSL-blue)](https://unicorn-binance-local-depth-cache.docs.lucit.tech/license.html)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache)](https://pepy.tech/project/unicorn-binance-local-depth-cache)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache/month)](https://pepy.tech/project/unicorn-binance-local-depth-cache)
[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache/week)](https://pepy.tech/project/unicorn-binance-local-depth-cache)
[![PyPI - Status](https://img.shields.io/pypi/status/unicorn_binance_local_depth_cache.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues)
[![codecov](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/branch/master/graph/badge.svg?token=5I03AZ3F5S)](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)
[![CodeQL](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/codeql.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/codeql.yml)
[![Unit Tests](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/unit-tests.yml)
[![Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml)
[![Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml)
[![Read the Docs](https://img.shields.io/badge/read-%20docs-yellow)](https://unicorn-binance-local-depth-cache.docs.lucit.tech/)
[![Read How To`s](https://img.shields.io/badge/read-%20howto-yellow)](https://medium.lucit.tech)
[![Github](https://img.shields.io/badge/source-github-cbc2c8)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)
[![Telegram](https://img.shields.io/badge/community-telegram-41ab8c)](https://t.me/unicorndevs)
[![Gitter](https://img.shields.io/badge/community-gitter-41ab8c)](https://gitter.im/unicorn-binance-suite/unicorn-binance-local-depth-cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Get Free Professional Support](https://img.shields.io/badge/chat-lucit%20support-004166)](https://www.lucit.tech/get-support.html)
[![LUCIT-UBLDC-Banner](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/master/images/logo/LUCIT-UBLDC-Banner-Readme.png)](https://www.lucit.tech/unicorn-binance-local-depth-cache.html)
# UNICORN Binance Local Depth Cache
[Description](#description) | [Live Demo](#live-demo) | [Installation](#installation-and-upgrade) | [How To](#howto) | [Documentation](#documentation) |
[Examples](#examples) | [Change Log](#change-log) | [Wiki](#wiki) | [Social](#social) |
[Notifications](#receive-notifications) | [Bugs](#how-to-report-bugs-or-suggest-improvements) |
[Contributing](#contributing) |[Disclaimer](#disclaimer) |
[Commercial Support](#commercial-support)
A Python SDK by [LUCIT](https://www.lucit.tech) for accessing and managing multiple local Binance
[order books](https://academy.binance.com/en/glossary/order-book) with Python in a simple, fast, flexible, robust
and fully functional way.
The organization of the DepthCache takes place in the same asyncio loop as the reception of the websocket data. The
full stack of the UBS modules (REST, WebSocket and DepthCache) can be downloaded and installed by PyPi and Anaconda
as a Python C extension for maximum performance.
Part of '[UNICORN Binance Suite](https://www.lucit.tech/unicorn-binance-suite.html)'.
[Get help](https://www.lucit.tech/get-support.html) with the integration of the `UNICORN Binance Suite` modules!
## Get a UNICORN Binance Suite License
To run modules of the *UNICORN Binance Suite* you need a [valid license](https://medium.lucit.tech/how-to-obtain-and-use-a-unicorn-binance-suite-license-key-and-run-the-ubs-module-according-to-best-87b0088124a8#4ca4)!
## Using a DepthCache
### [Create a local DepthCache](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcache) for Binance with just 3 lines of code
```
from unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheOutOfSync
ubldc = BinanceLocalDepthCacheManager(exchange="binance.com", depth_cache_update_interval=100)
ubldc.create_depthcache("BTCUSDT")
```
### Get the [asks](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_asks#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_asks) and [bids](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_bids#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_bids)
#### To obtain the complete order book
```
asks = ubldc.get_asks("BTCUSDT")
bids = ubldc.get_bids("BTCUSDT")
```
#### Get the first X elements
```
asks = ubldc.get_asks("BTCUSDT", limit_count=10)
bids = ubldc.get_bids("BTCUSDT", limit_count=10)
```
#### Retain the elements until volume X has been exceeded
```
asks = ubldc.get_asks("BTCUSDT", threshold_volume=300000)
bids = ubldc.get_bids("BTCUSDT", threshold_volume=300000)
```
### Catch an exception, if the [DepthCache is out of sync](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) while accessing its data
```
try:
asks = ubldc.get_asks(market="BTCUSDT", limit_count=5, threshold_volume=300000)
bids = ubldc.get_bids(market="BTCUSDT", limit_count=5, threshold_volume=300000)
except DepthCacheOutOfSync:
asks = "Out of sync!"
bids = "Out of sync!"
```
### [Stop and delete a DepthCache](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=stop_depth_cache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.stop_depth_cache):
```
ubldc.stop_depthcache("BTCUSDT")
```
## Stop `ubldc` after usage to avoid memory leaks
When you instantiate UBLDC with `with`, `ubldc.stop_manager()` is automatically executed upon exiting the `with`-block.
```
with BinanceWebSocketApiManager() as ubldc:
ubldc.create_depthcache("BTCUSDT")
```
Without `with`, you must explicitly execute `ubldc.stop_manager()` yourself.
```
ubldc.stop_manager()
```
[Discover more possibilities.](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html)
## Connect to a UNICORN DepthCache Cluster for Binance
The [UNICORN DepthCache Cluster for Binance](https://www.lucit.tech/unicorn-depthcache-cluster-for-binance.html) is a
separate Kubernetes application for managing multiple DepthCaches including load balancing and fail over.
### Synchronous
```
from unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheClusterNotReachableError
async def main():
ubldc.cluster.create_depthcache(exchange="binance.com", markets=['BTCUSDT', 'ETHUSDT'], desired_quantity=3)
while ubldc.is_stop_request() is False:
print(ubldc.cluster.get_asks(exchange="binance.com", market='BTCUSDT', limit_count=2))
try:
with BinanceLocalDepthCacheManager(exchange=exchange, ubdcc_address="192.10.80.4") as ubldc:
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\r\nGracefully stopping ...")
except DepthCacheClusterNotReachableError as error_msg:
print(f"ERROR: {error_msg}")
```
### Asynchronous
```
from unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheClusterNotReachableError
async def main():
await ubldc.cluster.create_depthcache_async(exchange="binance.com",
markets=['BTCUSDT', 'ETHUSDT'],
desired_quantity=3)
while ubldc.is_stop_request() is False:
print(await ubldc.cluster.get_asks_async(exchange="binance.com", market='BTCUSDT', limit_count=2))
try:
with BinanceLocalDepthCacheManager(exchange=exchange, ubdcc_address="192.10.80.4") as ubldc:
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\r\nGracefully stopping ...")
except DepthCacheClusterNotReachableError as error_msg:
print(f"ERROR: {error_msg}")
```
[Try UNICORN DephtCache Cluster for Binance examples!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tree/master/examples/unicorn_depthcache_cluster_for_binance)
[Discover more cluster possibilities ...](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html#module-unicorn_binance_local_depth_cache.cluster)
## Description
The Python package [UNICORN Binance Local Depth Cache](https://www.lucit.tech/unicorn-binance-local-depth-cache.html)
provides local order books for the Binance Exchanges
[Binance](https://github.com/binance-exchange/binance-official-api-docs) ([+Testnet](https://testnet.binance.vision/)),
[Binance Futures](https://binance-docs.github.io/apidocs/futures/en/#websocket-market-streams)
([+Testnet](https://testnet.binancefuture.com)) and [Binance US](https://www.binance.us/).
***The algorithm of the DepthCache management was designed according to these instructions:***
Since, according to Binance's predefined algorithm,
[all levels > 1000 would be orphaned and remain forever between valid levels](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues/45)
, UBLDC removes them as soon as they exceed the thousandth position.
- [Binance Spot: "How to manage a local order book correctly"](https://binance-docs.github.io/apidocs/spot/en/#how-to-manage-a-local-order-book-correctly)
- [Binance Futures: "How to manage a local order book correctly"](https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams)
- [Binance US: "Managing a Local Order Book"](https://docs.binance.us/#order-book-depth-diff-stream)
With [create_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcaches)
the DepthCache is started and initialized, i.e. for each DepthCache that is to be created, a separate
asyncio coroutine is inserted into the event loop of the stream. As soon as at least one depth update is received via
websocket, a REST snapshot is downloaded and the depth updates are applied to it so that it is synchronized
in real time. As soon as once this is done, the status of the cache get set to "synchronous".
Data in the DepthCache can be accessed with ['get_asks()'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_asks#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_asks)
and ['get_bids()'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_bids#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_bids).
If the state of the DepthCache is not synchronous during access, the exception
['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync)
is thrown.
The DepthCache will immediately start an automatic re-initialization if a gap in the UpdateID`s is detected (missing
update event) or if the websocket connection is interrupted. As soon as this happens the state of the DepthCache is set
to "out of sync" and when accessing the cache the exception ['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) is thrown.
### Why a local DepthCache?
A local DepthCache is the fastest way to access the current order book depth at any time while transferring as little data as necessary. A REST snapshot takes a lot of time and the amount of data that is transferred is relatively large. Continuous full transmission of the order book via websocket is faster, but the amount of data is huge. A local depth_cache is initialized once with a REST snapshot and then handles Diff. Depth updates applied by the websocket connection. By transferring a small amount of data (only the changes), a local depth_cache is kept in sync in real time and also allows extremely fast (local) access to the data without exceeding the [Binance request weight limits](https://www.binance.com/en/support/faq/360004492232).
### What are the benefits of the UNICORN Binance Local Depth Cache?
- Always know if the cache is in sync! If the DepthCache is out of sync, the exception ['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync)
is thrown or ask with [`is_depth_cache_synchronized()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.is_depth_cache_synchronized).
- If a depth cache is out of sync it gets refreshed automatically within a few seconds.
- 100% Websocket auto-reconnect!
- Supported Exchanges
| Exchange | Exchange string |
|--------------------------------------------------------------------|-------------------------------|
| [Binance](https://www.binance.com) | `binance.com` |
| [Binance Testnet](https://testnet.binance.vision/) | `binance.com-testnet` |
| [Binance USD-M Futures](https://www.binance.com) | `binance.com-futures` |
| [Binance USD-M Futures Testnet](https://testnet.binancefuture.com) | `binance.com-futures-testnet` |
| [Binance US](https://www.binance.us/) | `binance.us` |
- Create multiple depth caches within a single object instance.
- Each DepthCache is managed in an asyncio coroutine.
- Start or stop multiple caches with just one command
[`create_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcaches)
or [`stop_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=stop_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.stop_depthcache).
- Control websocket out of sync detection with [`websocket_ping_interval`, `websocket_ping_timeout` and `websocket_close_timeout`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcache)
- Powered by [UNICORN Binance REST API](https://www.lucit.tech/unicorn-binance-rest-api.html) and
[UNICORN Binance WebSocket API](https://www.lucit.tech/unicorn-binance-websocket-api.html).
- Available as a package via `pip` and `conda` as precompiled C extension with stub files for improved Intellisense
functions and source code for easier debugging of the source code. [To the installation.](#installation-and-upgrade)
If you like the project, please
[![star](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/star.png)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/stargazers) it on
[GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)!
## Live Demo
This live demo script runs DepthCaches from [binance.com-futures](https://www.binance.com) and runs on a *CCX13* virtual
machine of [HETZNER CLOUD](https://hetzner.cloud/?ref=rKgYRMq0l8fd).
[Open live monitor!](https://www.lucit.tech/unicorn-binance-local-depth-cache-live-demo.html)
[![live-demo](https://ubldc-demo.lucit.tech/ps.png)](https://www.lucit.tech/unicorn-binance-local-depth-cache-live-demo.html)
(Refresh update once a minute!)
## Installation and Upgrade
The module requires Python 3.8 and runs smoothly up to and including Python 3.12.
For the PyPy interpreter we offer packages only from Python version 3.9 and higher.
Anaconda packages are available from Python version 3.8 and higher, but only in the latest version!
The current dependencies are listed [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/requirements.txt).
If you run into errors during the installation take a look [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/wiki/Installation).
### Packages are created automatically with GitHub Actions
When a new release is to be created, we start two GitHubActions:
- [Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml)
- [Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml)
Both start virtual Windows/Linux/Mac servers provided by GitHub in the cloud with preconfigured environments and
create the respective compilations and stub files, pack them into wheels and conda packages and then publish them on
GitHub, PYPI and Anaconda. This is a transparent method that makes it possible to trace the source code behind a
compilation.
### A Cython binary, PyPy or source code based CPython wheel of the latest version with `pip` from [PyPI](https://pypi.org/project/unicorn-binance-rest-api/)
Our [Cython](https://cython.org/) and [PyPy](https://www.pypy.org/) Wheels are available on [PyPI](https://pypi.org/),
these wheels offer significant advantages for Python developers:
- ***Performance Boost with Cython Wheels:*** Cython is a programming language that supplements Python with static typing and C-level performance. By compiling
Python code into C, Cython Wheels can significantly enhance the execution speed of Python code, especially in
computationally intensive tasks. This means faster runtimes and more efficient processing for users of our package.
- ***PyPy Wheels for Enhanced Efficiency:*** PyPy is an alternative Python interpreter known for its speed and efficiency. It uses Just-In-Time (JIT) compilation,
which can dramatically improve the performance of Python code. Our PyPy Wheels are tailored for compatibility with
PyPy, allowing users to leverage this speed advantage seamlessly.
Both Cython and PyPy Wheels on PyPI make the installation process simpler and more straightforward. They ensure that
you get the optimized version of our package with minimal setup, allowing you to focus on development rather than
configuration.
#### Installation
`pip install unicorn-binance-local-depth-cache`
#### Update
`pip install unicorn-binance-local-depth-cache --upgrade`
### A Conda Package of the latest version with `conda` from [Anaconda](https://anaconda.org/lucit)
The `unicorn-binance-local-depth-cache` package is also available as a Cython version for the `linux-64`, `osx-64`
and `win-64` architectures with [Conda](https://docs.conda.io/en/latest/) through the
[`lucit` channel](https://anaconda.org/lucit).
For optimal compatibility and performance, it is recommended to source the necessary dependencies from the
[`conda-forge` channel](https://anaconda.org/conda-forge).
#### Installation
```
conda config --add channels conda-forge
conda config --add channels lucit
conda install -c lucit unicorn-binance-local-depth-cache
```
#### Update
`conda update -c lucit unicorn-binance-local-depth-cache`
### From source of the latest release with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)
#### Linux, macOS, ...
Run in bash:
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/archive/$(curl -s https://api.github.com/repos/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")').tar.gz --upgrade`
#### Windows
Use the below command with the version (such as 2.8.0) you determined
[here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases/latest):
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/archive/2.8.0.tar.gz --upgrade`
### From the latest source (dev-stage) with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)
This is not a release version and can not be considered to be stable!
`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tarball/master --upgrade`
## Change Log
[https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/changelog.html](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/changelog.html)
## Documentation
- [General](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache)
- [Modules](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/modules.html)
## Examples
- [Look here!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tree/master/examples/)
## Howto
- [How to Obtain and Use a Unicorn Binance Suite License Key and Run the UBS Module According to Best Practice](https://medium.lucit.tech/how-to-obtain-and-use-a-unicorn-binance-suite-license-key-and-run-the-ubs-module-according-to-best-87b0088124a8)
## Project Homepage
[https://www.lucit.tech/unicorn-binance-local-depth-cache.html](https://www.lucit.tech/unicorn-binance-local-depth-cache.html)
## Wiki
[https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/wiki](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/wiki)
## Social
- [Discussions](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/discussions)
- [Gitter](https://gitter.im/unicorn-binance-suite/unicorn-binance-local-depth-cache)
- [https://t.me/unicorndevs](https://t.me/unicorndevs)
- [https://dev.binance.vision](https://dev.binance.vision)
- [https://community.binance.org](https://community.binance.org)
## Receive Notifications
To receive notifications on available updates you can
[![watch](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/watch.png)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/watchers)
the repository on [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache), write your
[own script](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/examples/ubldc_package_update_check)
with using
[`is_update_available()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_update_available#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.is_update_available).
Follow us on [LinkedIn](https://www.linkedin.com/company/lucit-systems-and-development),
[X](https://twitter.com/LUCIT_SysDev) or [Facebook](https://www.facebook.com/lucit.systems.and.development)!
To receive news (like inspection windows/maintenance) about the Binance API`s subscribe to their telegram groups:
- [https://t.me/binance_api_announcements](https://t.me/binance_api_announcements)
- [https://t.me/binance_api_english](https://t.me/binance_api_english)
- [https://t.me/Binance_JEX_EN](https://t.me/Binance_JEX_EN)
- [https://t.me/Binance_USA](https://t.me/Binance_USA)
- [https://t.me/TRBinanceTR](https://t.me/TRBinanceTR)
- [https://t.me/BinanceExchange](https://t.me/BinanceExchange)
## How to report Bugs or suggest Improvements?
[List of planned features](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) - click ![thumbs-up](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/thumbup.png) if you need one of them or suggest a new feature!
Before you report a bug, [try the latest release](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache#installation-and-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.
If you dont find an issue related to your topic, please open a new [issue](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues)!
[Report a security bug!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/security/policy)
## Contributing
[UNICORN Binance Local Depth Cache](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache) is an open
source project which welcomes contributions which can be anything from simple documentation fixes and reporting dead links to new features. To
contribute follow
[this guide](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/CONTRIBUTING.md).
### Contributors
[![Contributors](https://contributors-img.web.app/image?repo=LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/graphs/contributors)
We ![love](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/heart.png) open source!
## Disclaimer
This project is for informational purposes only. You should not construe this information or any other material as
legal, tax, investment, financial or other advice. Nothing contained herein constitutes a solicitation, recommendation,
endorsement or offer by us or any third party provider to buy or sell any securities or other financial instruments in
this or any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such
jurisdiction.
### If you intend to use real money, use it at your own risk!
Under no circumstances will we be responsible or liable for any claims, damages, losses, expenses, costs or liabilities
of any kind, including but not limited to direct or indirect damages for loss of profits.
## Commercial Support
[![Get professional and fast support](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/support/LUCIT-get-professional-and-fast-support.png)](https://www.lucit.tech/get-support.html)
***Do you need a developer, operator or consultant?*** [Contact us](https://www.lucit.tech/contact.html) for a non-binding initial consultation!
Raw data
{
"_id": null,
"home_page": "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache",
"name": "unicorn-binance-local-depth-cache",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8.0",
"maintainer_email": null,
"keywords": "binance, depth cache",
"author": "LUCIT Systems and Development",
"author_email": "info@lucit.tech",
"download_url": null,
"platform": null,
"description": "[![Get a UNICORN Binance Suite License](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/logo/LUCIT-UBS-License-Offer.png)](https://shop.lucit.services)\n\n[![Anaconda Release](https://img.shields.io/conda/v/lucit/unicorn-binance-local-depth-cache?color=blue)](https://anaconda.org/lucit/unicorn-binance-local-depth-cache)\n[![GitHub Release](https://img.shields.io/github/release/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache.svg?label=github)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases)\n[![PyPi Release](https://img.shields.io/pypi/v/unicorn-binance-local-depth-cache?color=blue)](https://pypi.org/project/unicorn-binance-local-depth-cache/)\n[![Supported Python Version](https://img.shields.io/pypi/pyversions/unicorn_binance_local_depth_cache.svg)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/license-LSOSL-blue)](https://unicorn-binance-local-depth-cache.docs.lucit.tech/license.html)\n[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache)](https://pepy.tech/project/unicorn-binance-local-depth-cache)\n[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache/month)](https://pepy.tech/project/unicorn-binance-local-depth-cache)\n[![PyPi Downloads](https://pepy.tech/badge/unicorn-binance-local-depth-cache/week)](https://pepy.tech/project/unicorn-binance-local-depth-cache)\n[![PyPI - Status](https://img.shields.io/pypi/status/unicorn_binance_local_depth_cache.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues)\n[![codecov](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/branch/master/graph/badge.svg?token=5I03AZ3F5S)](https://codecov.io/gh/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)\n[![CodeQL](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/codeql.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/codeql.yml)\n[![Unit Tests](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/unit-tests.yml)\n[![Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml)\n[![Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml/badge.svg)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml)\n[![Read the Docs](https://img.shields.io/badge/read-%20docs-yellow)](https://unicorn-binance-local-depth-cache.docs.lucit.tech/)\n[![Read How To`s](https://img.shields.io/badge/read-%20howto-yellow)](https://medium.lucit.tech)\n[![Github](https://img.shields.io/badge/source-github-cbc2c8)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)\n[![Telegram](https://img.shields.io/badge/community-telegram-41ab8c)](https://t.me/unicorndevs)\n[![Gitter](https://img.shields.io/badge/community-gitter-41ab8c)](https://gitter.im/unicorn-binance-suite/unicorn-binance-local-depth-cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n[![Get Free Professional Support](https://img.shields.io/badge/chat-lucit%20support-004166)](https://www.lucit.tech/get-support.html)\n\n[![LUCIT-UBLDC-Banner](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/master/images/logo/LUCIT-UBLDC-Banner-Readme.png)](https://www.lucit.tech/unicorn-binance-local-depth-cache.html)\n\n# UNICORN Binance Local Depth Cache \n\n[Description](#description) | [Live Demo](#live-demo) | [Installation](#installation-and-upgrade) | [How To](#howto) | [Documentation](#documentation) | \n[Examples](#examples) | [Change Log](#change-log) | [Wiki](#wiki) | [Social](#social) | \n[Notifications](#receive-notifications) | [Bugs](#how-to-report-bugs-or-suggest-improvements) | \n[Contributing](#contributing) |[Disclaimer](#disclaimer) | \n[Commercial Support](#commercial-support)\n\nA Python SDK by [LUCIT](https://www.lucit.tech) for accessing and managing multiple local Binance \n[order books](https://academy.binance.com/en/glossary/order-book) with Python in a simple, fast, flexible, robust \nand fully functional way. \n\nThe organization of the DepthCache takes place in the same asyncio loop as the reception of the websocket data. The \nfull stack of the UBS modules (REST, WebSocket and DepthCache) can be downloaded and installed by PyPi and Anaconda \nas a Python C extension for maximum performance.\n\nPart of '[UNICORN Binance Suite](https://www.lucit.tech/unicorn-binance-suite.html)'.\n\n[Get help](https://www.lucit.tech/get-support.html) with the integration of the `UNICORN Binance Suite` modules!\n\n## Get a UNICORN Binance Suite License\n\nTo run modules of the *UNICORN Binance Suite* you need a [valid license](https://medium.lucit.tech/how-to-obtain-and-use-a-unicorn-binance-suite-license-key-and-run-the-ubs-module-according-to-best-87b0088124a8#4ca4)!\n\n## Using a DepthCache\n\n### [Create a local DepthCache](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcache) for Binance with just 3 lines of code\n```\nfrom unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheOutOfSync\n\nubldc = BinanceLocalDepthCacheManager(exchange=\"binance.com\", depth_cache_update_interval=100)\nubldc.create_depthcache(\"BTCUSDT\")\n```\n\n### Get the [asks](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_asks#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_asks) and [bids](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_bids#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_bids)\n#### To obtain the complete order book\n```\nasks = ubldc.get_asks(\"BTCUSDT\")\nbids = ubldc.get_bids(\"BTCUSDT\")\n```\n\n#### Get the first X elements\n```\nasks = ubldc.get_asks(\"BTCUSDT\", limit_count=10)\nbids = ubldc.get_bids(\"BTCUSDT\", limit_count=10)\n```\n\n#### Retain the elements until volume X has been exceeded\n```\nasks = ubldc.get_asks(\"BTCUSDT\", threshold_volume=300000)\nbids = ubldc.get_bids(\"BTCUSDT\", threshold_volume=300000)\n```\n\n### Catch an exception, if the [DepthCache is out of sync](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) while accessing its data\n```\ntry:\n asks = ubldc.get_asks(market=\"BTCUSDT\", limit_count=5, threshold_volume=300000)\n bids = ubldc.get_bids(market=\"BTCUSDT\", limit_count=5, threshold_volume=300000)\nexcept DepthCacheOutOfSync:\n asks = \"Out of sync!\"\n bids = \"Out of sync!\"\n```\n\n### [Stop and delete a DepthCache](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=stop_depth_cache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.stop_depth_cache):\n```\nubldc.stop_depthcache(\"BTCUSDT\")\n```\n\n## Stop `ubldc` after usage to avoid memory leaks\n\nWhen you instantiate UBLDC with `with`, `ubldc.stop_manager()` is automatically executed upon exiting the `with`-block.\n\n```\nwith BinanceWebSocketApiManager() as ubldc:\n ubldc.create_depthcache(\"BTCUSDT\")\n```\n\nWithout `with`, you must explicitly execute `ubldc.stop_manager()` yourself.\n\n```\nubldc.stop_manager()\n```\n\n[Discover more possibilities.](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html)\n\n## Connect to a UNICORN DepthCache Cluster for Binance\nThe [UNICORN DepthCache Cluster for Binance](https://www.lucit.tech/unicorn-depthcache-cluster-for-binance.html) is a \nseparate Kubernetes application for managing multiple DepthCaches including load balancing and fail over.\n\n### Synchronous\n\n```\nfrom unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheClusterNotReachableError\n\nasync def main():\n ubldc.cluster.create_depthcache(exchange=\"binance.com\", markets=['BTCUSDT', 'ETHUSDT'], desired_quantity=3)\n while ubldc.is_stop_request() is False:\n print(ubldc.cluster.get_asks(exchange=\"binance.com\", market='BTCUSDT', limit_count=2))\n \ntry:\n with BinanceLocalDepthCacheManager(exchange=exchange, ubdcc_address=\"192.10.80.4\") as ubldc:\n try:\n asyncio.run(main())\n except KeyboardInterrupt:\n print(\"\\r\\nGracefully stopping ...\")\nexcept DepthCacheClusterNotReachableError as error_msg:\n print(f\"ERROR: {error_msg}\")\n```\n\n### Asynchronous\n\n```\nfrom unicorn_binance_local_depth_cache import BinanceLocalDepthCacheManager, DepthCacheClusterNotReachableError\n\nasync def main():\n await ubldc.cluster.create_depthcache_async(exchange=\"binance.com\", \n markets=['BTCUSDT', 'ETHUSDT'], \n desired_quantity=3)\n while ubldc.is_stop_request() is False:\n print(await ubldc.cluster.get_asks_async(exchange=\"binance.com\", market='BTCUSDT', limit_count=2))\n \ntry:\n with BinanceLocalDepthCacheManager(exchange=exchange, ubdcc_address=\"192.10.80.4\") as ubldc:\n try:\n asyncio.run(main())\n except KeyboardInterrupt:\n print(\"\\r\\nGracefully stopping ...\")\nexcept DepthCacheClusterNotReachableError as error_msg:\n print(f\"ERROR: {error_msg}\")\n```\n\n[Try UNICORN DephtCache Cluster for Binance examples!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tree/master/examples/unicorn_depthcache_cluster_for_binance)\n\n[Discover more cluster possibilities ...](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html#module-unicorn_binance_local_depth_cache.cluster)\n\n## Description\nThe Python package [UNICORN Binance Local Depth Cache](https://www.lucit.tech/unicorn-binance-local-depth-cache.html) \nprovides local order books for the Binance Exchanges \n[Binance](https://github.com/binance-exchange/binance-official-api-docs) ([+Testnet](https://testnet.binance.vision/)), \n[Binance Futures](https://binance-docs.github.io/apidocs/futures/en/#websocket-market-streams) \n([+Testnet](https://testnet.binancefuture.com)) and [Binance US](https://www.binance.us/).\n\n***The algorithm of the DepthCache management was designed according to these instructions:***\n\nSince, according to Binance's predefined algorithm, \n[all levels > 1000 would be orphaned and remain forever between valid levels](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues/45)\n, UBLDC removes them as soon as they exceed the thousandth position.\n\n- [Binance Spot: \"How to manage a local order book correctly\"](https://binance-docs.github.io/apidocs/spot/en/#how-to-manage-a-local-order-book-correctly)\n- [Binance Futures: \"How to manage a local order book correctly\"](https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams)\n- [Binance US: \"Managing a Local Order Book\"](https://docs.binance.us/#order-book-depth-diff-stream)\n\nWith [create_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcaches) \nthe DepthCache is started and initialized, i.e. for each DepthCache that is to be created, a separate \nasyncio coroutine is inserted into the event loop of the stream. As soon as at least one depth update is received via \nwebsocket, a REST snapshot is downloaded and the depth updates are applied to it so that it is synchronized \nin real time. As soon as once this is done, the status of the cache get set to \"synchronous\".\n\nData in the DepthCache can be accessed with ['get_asks()'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_asks#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_asks) \nand ['get_bids()'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=get_bids#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.get_bids). \nIf the state of the DepthCache is not synchronous during access, the exception \n['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) \nis thrown.\n\nThe DepthCache will immediately start an automatic re-initialization if a gap in the UpdateID`s is detected (missing \nupdate event) or if the websocket connection is interrupted. As soon as this happens the state of the DepthCache is set \nto \"out of sync\" and when accessing the cache the exception ['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) is thrown.\n\n### Why a local DepthCache?\nA local DepthCache is the fastest way to access the current order book depth at any time while transferring as little data as necessary. A REST snapshot takes a lot of time and the amount of data that is transferred is relatively large. Continuous full transmission of the order book via websocket is faster, but the amount of data is huge. A local depth_cache is initialized once with a REST snapshot and then handles Diff. Depth updates applied by the websocket connection. By transferring a small amount of data (only the changes), a local depth_cache is kept in sync in real time and also allows extremely fast (local) access to the data without exceeding the [Binance request weight limits](https://www.binance.com/en/support/faq/360004492232).\n\n### What are the benefits of the UNICORN Binance Local Depth Cache?\n- Always know if the cache is in sync! If the DepthCache is out of sync, the exception ['DepthCacheOutOfSync'](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.exceptions.DepthCacheOutOfSync) \nis thrown or ask with [`is_depth_cache_synchronized()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_depth_cache_synchronized#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.is_depth_cache_synchronized). \n\n- If a depth cache is out of sync it gets refreshed automatically within a few seconds.\n\n- 100% Websocket auto-reconnect!\n\n- Supported Exchanges\n\n| Exchange | Exchange string | \n|--------------------------------------------------------------------|-------------------------------| \n| [Binance](https://www.binance.com) | `binance.com` |\n| [Binance Testnet](https://testnet.binance.vision/) | `binance.com-testnet` |\n| [Binance USD-M Futures](https://www.binance.com) | `binance.com-futures` |\n| [Binance USD-M Futures Testnet](https://testnet.binancefuture.com) | `binance.com-futures-testnet` |\n| [Binance US](https://www.binance.us/) | `binance.us` |\n\n- Create multiple depth caches within a single object instance. \n\n- Each DepthCache is managed in an asyncio coroutine.\n\n- Start or stop multiple caches with just one command \n[`create_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=create_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcaches)\nor [`stop_depthcache()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=stop_depthcache#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.stop_depthcache).\n\n- Control websocket out of sync detection with [`websocket_ping_interval`, `websocket_ping_timeout` and `websocket_close_timeout`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.create_depthcache) \n\n- Powered by [UNICORN Binance REST API](https://www.lucit.tech/unicorn-binance-rest-api.html) and \n[UNICORN Binance WebSocket API](https://www.lucit.tech/unicorn-binance-websocket-api.html).\n\n- Available as a package via `pip` and `conda` as precompiled C extension with stub files for improved Intellisense \n functions and source code for easier debugging of the source code. [To the installation.](#installation-and-upgrade)\n\nIf you like the project, please \n[![star](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/star.png)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/stargazers) it on \n[GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)! \n\n## Live Demo\nThis live demo script runs DepthCaches from [binance.com-futures](https://www.binance.com) and runs on a *CCX13* virtual \nmachine of [HETZNER CLOUD](https://hetzner.cloud/?ref=rKgYRMq0l8fd).\n\n[Open live monitor!](https://www.lucit.tech/unicorn-binance-local-depth-cache-live-demo.html)\n\n[![live-demo](https://ubldc-demo.lucit.tech/ps.png)](https://www.lucit.tech/unicorn-binance-local-depth-cache-live-demo.html)\n\n(Refresh update once a minute!)\n\n## Installation and Upgrade\nThe module requires Python 3.8 and runs smoothly up to and including Python 3.12.\n\nFor the PyPy interpreter we offer packages only from Python version 3.9 and higher.\n\nAnaconda packages are available from Python version 3.8 and higher, but only in the latest version!\n\nThe current dependencies are listed [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/requirements.txt).\n\nIf you run into errors during the installation take a look [here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/wiki/Installation).\n\n### Packages are created automatically with GitHub Actions\nWhen a new release is to be created, we start two GitHubActions: \n\n- [Build and Publish Anaconda](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_conda.yml)\n- [Build and Publish GH+PyPi](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/actions/workflows/build_wheels.yml) \n\nBoth start virtual Windows/Linux/Mac servers provided by GitHub in the cloud with preconfigured environments and \ncreate the respective compilations and stub files, pack them into wheels and conda packages and then publish them on \nGitHub, PYPI and Anaconda. This is a transparent method that makes it possible to trace the source code behind a \ncompilation.\n\n### A Cython binary, PyPy or source code based CPython wheel of the latest version with `pip` from [PyPI](https://pypi.org/project/unicorn-binance-rest-api/)\nOur [Cython](https://cython.org/) and [PyPy](https://www.pypy.org/) Wheels are available on [PyPI](https://pypi.org/), \nthese wheels offer significant advantages for Python developers:\n\n- ***Performance Boost with Cython Wheels:*** Cython is a programming language that supplements Python with static typing and C-level performance. By compiling \n Python code into C, Cython Wheels can significantly enhance the execution speed of Python code, especially in \n computationally intensive tasks. This means faster runtimes and more efficient processing for users of our package. \n\n- ***PyPy Wheels for Enhanced Efficiency:*** PyPy is an alternative Python interpreter known for its speed and efficiency. It uses Just-In-Time (JIT) compilation, \n which can dramatically improve the performance of Python code. Our PyPy Wheels are tailored for compatibility with \n PyPy, allowing users to leverage this speed advantage seamlessly.\n\nBoth Cython and PyPy Wheels on PyPI make the installation process simpler and more straightforward. They ensure that \nyou get the optimized version of our package with minimal setup, allowing you to focus on development rather than \nconfiguration.\n\n#### Installation\n`pip install unicorn-binance-local-depth-cache`\n\n#### Update\n`pip install unicorn-binance-local-depth-cache --upgrade`\n\n### A Conda Package of the latest version with `conda` from [Anaconda](https://anaconda.org/lucit)\nThe `unicorn-binance-local-depth-cache` package is also available as a Cython version for the `linux-64`, `osx-64` \nand `win-64` architectures with [Conda](https://docs.conda.io/en/latest/) through the \n[`lucit` channel](https://anaconda.org/lucit). \n\nFor optimal compatibility and performance, it is recommended to source the necessary dependencies from the \n[`conda-forge` channel](https://anaconda.org/conda-forge). \n\n#### Installation\n```\nconda config --add channels conda-forge\nconda config --add channels lucit\nconda install -c lucit unicorn-binance-local-depth-cache\n```\n\n#### Update\n`conda update -c lucit unicorn-binance-local-depth-cache`\n\n### From source of the latest release with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)\n#### Linux, macOS, ...\nRun in bash:\n\n`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/archive/$(curl -s https://api.github.com/repos/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases/latest | grep -oP '\"tag_name\": \"\\K(.*)(?=\")').tar.gz --upgrade`\n\n#### Windows\nUse the below command with the version (such as 2.8.0) you determined \n[here](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/releases/latest):\n\n`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/archive/2.8.0.tar.gz --upgrade`\n\n### From the latest source (dev-stage) with PIP from [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)\nThis is not a release version and can not be considered to be stable!\n\n`pip install https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tarball/master --upgrade`\n\n## Change Log\n[https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/changelog.html](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/changelog.html)\n\n## Documentation\n- [General](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache)\n- [Modules](https://lucit-systems-and-development.github.io/unicorn-binance-local-depth-cache/modules.html)\n\n## Examples\n- [Look here!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/tree/master/examples/)\n\n## Howto\n- [How to Obtain and Use a Unicorn Binance Suite License Key and Run the UBS Module According to Best Practice](https://medium.lucit.tech/how-to-obtain-and-use-a-unicorn-binance-suite-license-key-and-run-the-ubs-module-according-to-best-87b0088124a8)\n\n## Project Homepage\n[https://www.lucit.tech/unicorn-binance-local-depth-cache.html](https://www.lucit.tech/unicorn-binance-local-depth-cache.html)\n\n## Wiki\n[https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/wiki](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/wiki)\n\n## Social\n- [Discussions](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/discussions)\n- [Gitter](https://gitter.im/unicorn-binance-suite/unicorn-binance-local-depth-cache)\n- [https://t.me/unicorndevs](https://t.me/unicorndevs)\n- [https://dev.binance.vision](https://dev.binance.vision)\n- [https://community.binance.org](https://community.binance.org)\n\n## Receive Notifications\nTo receive notifications on available updates you can \n[![watch](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/watch.png)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/watchers) \nthe repository on [GitHub](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache), write your \n[own script](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/examples/ubldc_package_update_check) \nwith using \n[`is_update_available()`](https://unicorn-binance-local-depth-cache.docs.lucit.tech/unicorn_binance_local_depth_cache.html?highlight=is_update_available#unicorn_binance_local_depth_cache.manager.BinanceLocalDepthCacheManager.is_update_available).\n\nFollow us on [LinkedIn](https://www.linkedin.com/company/lucit-systems-and-development), \n[X](https://twitter.com/LUCIT_SysDev) or [Facebook](https://www.facebook.com/lucit.systems.and.development)!\n\nTo receive news (like inspection windows/maintenance) about the Binance API`s subscribe to their telegram groups: \n\n- [https://t.me/binance_api_announcements](https://t.me/binance_api_announcements)\n- [https://t.me/binance_api_english](https://t.me/binance_api_english)\n- [https://t.me/Binance_JEX_EN](https://t.me/Binance_JEX_EN)\n- [https://t.me/Binance_USA](https://t.me/Binance_USA)\n- [https://t.me/TRBinanceTR](https://t.me/TRBinanceTR)\n- [https://t.me/BinanceExchange](https://t.me/BinanceExchange)\n\n## How to report Bugs or suggest Improvements?\n[List of planned features](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) - click ![thumbs-up](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/thumbup.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/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache#installation-and-upgrade). If the issue still exists, provide the error trace, OS \nand Python version and explain how to reproduce the error. A demo script is appreciated.\n\nIf you dont find an issue related to your topic, please open a new [issue](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues)!\n\n[Report a security bug!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/security/policy)\n\n## Contributing\n[UNICORN Binance Local Depth Cache](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache) is an open \nsource project which welcomes contributions which can be anything from simple documentation fixes and reporting dead links to new features. To \ncontribute follow \n[this guide](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/blob/master/CONTRIBUTING.md).\n \n### Contributors\n[![Contributors](https://contributors-img.web.app/image?repo=LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache)](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/graphs/contributors)\n\nWe ![love](https://raw.githubusercontent.com/lucit-systems-and-development/unicorn-binance-local-depth-cache/master/images/misc/heart.png) open source!\n\n## Disclaimer\nThis project is for informational purposes only. You should not construe this information or any other material as \nlegal, tax, investment, financial or other advice. Nothing contained herein constitutes a solicitation, recommendation, \nendorsement or offer by us or any third party provider to buy or sell any securities or other financial instruments in \nthis or any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such \njurisdiction.\n\n### If you intend to use real money, use it at your own risk!\n\nUnder no circumstances will we be responsible or liable for any claims, damages, losses, expenses, costs or liabilities \nof any kind, including but not limited to direct or indirect damages for loss of profits.\n\n## Commercial Support\n\n[![Get professional and fast support](https://raw.githubusercontent.com/LUCIT-Systems-and-Development/unicorn-binance-suite/master/images/support/LUCIT-get-professional-and-fast-support.png)](https://www.lucit.tech/get-support.html)\n\n***Do you need a developer, operator or consultant?*** [Contact us](https://www.lucit.tech/contact.html) for a non-binding initial consultation!\n",
"bugtrack_url": null,
"license": "LSOSL - LUCIT Synergetic Open Source License",
"summary": "A Python SDK by LUCIT for accessing and managing multiple local Binance order books with Python in a simple, fast, flexible, robust and fully featured way. .",
"version": "2.8.0",
"project_urls": {
"Author": "https://www.lucit.tech",
"Changes": "https://unicorn-binance-local-depth-cache.docs.lucit.tech/changelog.html",
"Chat": "https://gitter.im/unicorn-binance-suite/unicorn-binance-local-depth-cache",
"Documentation": "https://unicorn-binance-local-depth-cache.docs.lucit.tech",
"Get Support": "https://www.lucit.tech/get-support.html",
"Homepage": "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache",
"Issue Tracker": "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/issues",
"LUCIT Online Shop": "https://shop.lucit.services/software",
"License": "https://unicorn-binance-local-depth-cache.docs.lucit.tech/license.html",
"Telegram": "https://t.me/unicorndevs",
"Wiki": "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/wiki"
},
"split_keywords": [
"binance",
" depth cache"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3baec98a23617bd6c8ce6a2e414ce0da6d8195b286757976bdda83c4245f48a5",
"md5": "7f5bdedf4473f169a87999672f2ca131",
"sha256": "f61a527a324e2253065124338183437e357157bd06de34a69ee6e275c8bdf250"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "7f5bdedf4473f169a87999672f2ca131",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8.0",
"size": 3445419,
"upload_time": "2024-11-03T13:39:54",
"upload_time_iso_8601": "2024-11-03T13:39:54.689277Z",
"url": "https://files.pythonhosted.org/packages/3b/ae/c98a23617bd6c8ce6a2e414ce0da6d8195b286757976bdda83c4245f48a5/unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cdf033f03db57870f5bf2875ca27aa1954e516554bf4c2046a4b8691273d70e8",
"md5": "bb989479f269f860c8aee769db2bbef4",
"sha256": "39408bb570c7ba558819e5528a8d2eb8d9ce14a3a5c306e2fbd4a121e91e368b"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "bb989479f269f860c8aee769db2bbef4",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8.0",
"size": 3347992,
"upload_time": "2024-11-03T13:39:57",
"upload_time_iso_8601": "2024-11-03T13:39:57.161597Z",
"url": "https://files.pythonhosted.org/packages/cd/f0/33f03db57870f5bf2875ca27aa1954e516554bf4c2046a4b8691273d70e8/unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4b7c59025ca1d2887c9e608f24dd5355b86c2ae52b8000cc472f036293aaf7fb",
"md5": "24648812e7f3946b9d3b2bea88be7b81",
"sha256": "bb42fdb2e29951fee11ef1c05517484dd1b05893fd3fc630ff269c78cb641d60"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "24648812e7f3946b9d3b2bea88be7b81",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8.0",
"size": 3320678,
"upload_time": "2024-11-03T13:39:59",
"upload_time_iso_8601": "2024-11-03T13:39:59.161119Z",
"url": "https://files.pythonhosted.org/packages/4b/7c/59025ca1d2887c9e608f24dd5355b86c2ae52b8000cc472f036293aaf7fb/unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "58194677f86cc9e1a8f02b290623e759d2352ad9ab6fa0f92bb426ac8cf174b5",
"md5": "f1b73363274c9561a4a027fe3a28d690",
"sha256": "77340e7a9dd146a3f9223c8efcd067b7f7662cef44dde366d2d9edbe912d3496"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "f1b73363274c9561a4a027fe3a28d690",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8.0",
"size": 3434860,
"upload_time": "2024-11-03T13:40:00",
"upload_time_iso_8601": "2024-11-03T13:40:00.967466Z",
"url": "https://files.pythonhosted.org/packages/58/19/4677f86cc9e1a8f02b290623e759d2352ad9ab6fa0f92bb426ac8cf174b5/unicorn_binance_local_depth_cache-2.8.0-cp310-cp310-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1f88c4392cdbb03428005991c4887e39da1a0b56c863ed30e149ae07f123ddea",
"md5": "a451690d9ca11fe4704cc8b748a0aae9",
"sha256": "fdd52fc1411294e2cb3ba3ecbf6b711efc65f7260c20ed88325f09beca24a0bf"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "a451690d9ca11fe4704cc8b748a0aae9",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8.0",
"size": 3759397,
"upload_time": "2024-11-03T13:40:03",
"upload_time_iso_8601": "2024-11-03T13:40:03.217359Z",
"url": "https://files.pythonhosted.org/packages/1f/88/c4392cdbb03428005991c4887e39da1a0b56c863ed30e149ae07f123ddea/unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cfe6f04b814ea1bbaaf8925596d1ce4547cfbe770c885362ec6fe8a2bdbcf277",
"md5": "13af2177bba1095d8a78cd72e7e4bc66",
"sha256": "8ebab0a070d62867016fa5483b025a5158da696ff4b8b332a838db1fac4112e6"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "13af2177bba1095d8a78cd72e7e4bc66",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8.0",
"size": 3636271,
"upload_time": "2024-11-03T13:40:04",
"upload_time_iso_8601": "2024-11-03T13:40:04.782116Z",
"url": "https://files.pythonhosted.org/packages/cf/e6/f04b814ea1bbaaf8925596d1ce4547cfbe770c885362ec6fe8a2bdbcf277/unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cbed7a2ce918ab8a7d52f880b27f336eaae7041ad572646fde950f894ddbea7b",
"md5": "b32d8a772e463b07e587ef436903ff22",
"sha256": "3f9990785d5d8baa8bb2987ba7c832f1ac64a8c60248d7963234632efa0a1c18"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "b32d8a772e463b07e587ef436903ff22",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8.0",
"size": 3619060,
"upload_time": "2024-11-03T13:40:06",
"upload_time_iso_8601": "2024-11-03T13:40:06.564555Z",
"url": "https://files.pythonhosted.org/packages/cb/ed/7a2ce918ab8a7d52f880b27f336eaae7041ad572646fde950f894ddbea7b/unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a9b1359985ad5c98a55a7423ed525580eec1334a6db6fe2251c5503e04718552",
"md5": "2b297bdf1200c4b035eb316065dca7e8",
"sha256": "22a1fe30edbc2af11affbb5057ad5ff1a78ae8940659679ac2d2a3856ec9b0ab"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "2b297bdf1200c4b035eb316065dca7e8",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.8.0",
"size": 3762656,
"upload_time": "2024-11-03T13:40:08",
"upload_time_iso_8601": "2024-11-03T13:40:08.175738Z",
"url": "https://files.pythonhosted.org/packages/a9/b1/359985ad5c98a55a7423ed525580eec1334a6db6fe2251c5503e04718552/unicorn_binance_local_depth_cache-2.8.0-cp311-cp311-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b6b942824fa0ebd572aabd44fed50929b0be717425b510632da4368ea1eeb175",
"md5": "8ad5ab92bb83a197433bb5d11b5376ce",
"sha256": "a8d81577cda128abe7126ee75d9c10b3a0491ff9116c6c175e513bd94a1d4db9"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "8ad5ab92bb83a197433bb5d11b5376ce",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8.0",
"size": 3788228,
"upload_time": "2024-11-03T13:40:10",
"upload_time_iso_8601": "2024-11-03T13:40:10.218541Z",
"url": "https://files.pythonhosted.org/packages/b6/b9/42824fa0ebd572aabd44fed50929b0be717425b510632da4368ea1eeb175/unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "339ef28af57df178f7a3af4aad527e2883212850e2aaea26447f6fb9da2a990b",
"md5": "6e86ddec4b960fde371cdb7014339dad",
"sha256": "076f02a879af038343c18eabb28b2241538202682a851e949bfa469144227a48"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "6e86ddec4b960fde371cdb7014339dad",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8.0",
"size": 3639072,
"upload_time": "2024-11-03T13:40:12",
"upload_time_iso_8601": "2024-11-03T13:40:12.508200Z",
"url": "https://files.pythonhosted.org/packages/33/9e/f28af57df178f7a3af4aad527e2883212850e2aaea26447f6fb9da2a990b/unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c9d6c502eb5b395174b7151846f14fcefb77a76f438d49250cc56e40fd5fbf69",
"md5": "97422932bbf3b26b38456687bc2c54fc",
"sha256": "1864d602af92b601c9393bd5d33abe6ccf1b914c38871bcffd0fc2f917246cab"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "97422932bbf3b26b38456687bc2c54fc",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8.0",
"size": 3628845,
"upload_time": "2024-11-03T13:40:14",
"upload_time_iso_8601": "2024-11-03T13:40:14.501668Z",
"url": "https://files.pythonhosted.org/packages/c9/d6/c502eb5b395174b7151846f14fcefb77a76f438d49250cc56e40fd5fbf69/unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "32dbeb037c9b782fac81aafa8baa22faead4697e29b898d2fe2383093308e225",
"md5": "a78667fa8aa4538c8d963ef7cf9bc834",
"sha256": "14c6c9f9daec516d27ace5c5e0651f1ab69633d703f0ac6b159104c4cb974319"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "a78667fa8aa4538c8d963ef7cf9bc834",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.8.0",
"size": 3781023,
"upload_time": "2024-11-03T13:40:16",
"upload_time_iso_8601": "2024-11-03T13:40:16.389330Z",
"url": "https://files.pythonhosted.org/packages/32/db/eb037c9b782fac81aafa8baa22faead4697e29b898d2fe2383093308e225/unicorn_binance_local_depth_cache-2.8.0-cp312-cp312-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0c0e91339f9f31d47a359341f1c81d4a3e55f62e0e71f273963ad5ed845fad25",
"md5": "82b88c1554c42a1c36def485e6d483dc",
"sha256": "f9394bf93c583b0efd09ba8575241a6509772316774577bcaf743b410d69d96e"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "82b88c1554c42a1c36def485e6d483dc",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8.0",
"size": 3542164,
"upload_time": "2024-11-03T13:40:18",
"upload_time_iso_8601": "2024-11-03T13:40:18.405833Z",
"url": "https://files.pythonhosted.org/packages/0c/0e/91339f9f31d47a359341f1c81d4a3e55f62e0e71f273963ad5ed845fad25/unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d35b8ad352f2755c4d77a94097fb37d19c51a0e23672ada7cb582d50e9fd9455",
"md5": "19bd3237759bb860fda7cca7430633de",
"sha256": "d36b69927de7da6aa33dea9ecba724a7d216ab908331cba8d6b533b80a8253a4"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "19bd3237759bb860fda7cca7430633de",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8.0",
"size": 3428968,
"upload_time": "2024-11-03T13:40:20",
"upload_time_iso_8601": "2024-11-03T13:40:20.842844Z",
"url": "https://files.pythonhosted.org/packages/d3/5b/8ad352f2755c4d77a94097fb37d19c51a0e23672ada7cb582d50e9fd9455/unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "72c08f57f8e16de58124a0fc186cdedebfa5b89e39a8f80682a1d517bfe5f256",
"md5": "2dec90ac810d91a0710466d11925b4dd",
"sha256": "150f35e268fac62673e76b74acea973bfe7730feba8018f0302d858657d0ff28"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "2dec90ac810d91a0710466d11925b4dd",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8.0",
"size": 3708144,
"upload_time": "2024-11-03T13:40:23",
"upload_time_iso_8601": "2024-11-03T13:40:23.463027Z",
"url": "https://files.pythonhosted.org/packages/72/c0/8f57f8e16de58124a0fc186cdedebfa5b89e39a8f80682a1d517bfe5f256/unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e630c3b204ce2523aaa36e82facc3d37568c41972aae982977f34c19e3daa231",
"md5": "2e1e3a7134bd323181e5ee2d9159a78c",
"sha256": "a575ed6f697841497c52bb227a607a8ca70cc68426d4f4219b7e29948c422fe9"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "2e1e3a7134bd323181e5ee2d9159a78c",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8.0",
"size": 3946966,
"upload_time": "2024-11-03T13:40:25",
"upload_time_iso_8601": "2024-11-03T13:40:25.305072Z",
"url": "https://files.pythonhosted.org/packages/e6/30/c3b204ce2523aaa36e82facc3d37568c41972aae982977f34c19e3daa231/unicorn_binance_local_depth_cache-2.8.0-cp38-cp38-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "70cecc5f423624133cd169fac80a145e7f2bc21c41ddf70fcd7ea54d41670bd4",
"md5": "c9eab2a42f37afd6fe40dbd847e4c4ac",
"sha256": "be87134820aff3677550dae93470111a31b877cb8e910fae53c24525c8db70ae"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "c9eab2a42f37afd6fe40dbd847e4c4ac",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8.0",
"size": 3449102,
"upload_time": "2024-11-03T13:40:26",
"upload_time_iso_8601": "2024-11-03T13:40:26.960662Z",
"url": "https://files.pythonhosted.org/packages/70/ce/cc5f423624133cd169fac80a145e7f2bc21c41ddf70fcd7ea54d41670bd4/unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a4c41430811537505194a4c50cab889addb80e6d2d8a7064aa01bcd634475665",
"md5": "02e8b7d024052fdbd2f4f1e2b58360e8",
"sha256": "5b981741ba9cad008b2db8472eac393e61e76c96acda3a1b334a69d0b815d05d"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "02e8b7d024052fdbd2f4f1e2b58360e8",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8.0",
"size": 3350954,
"upload_time": "2024-11-03T13:40:29",
"upload_time_iso_8601": "2024-11-03T13:40:29.225709Z",
"url": "https://files.pythonhosted.org/packages/a4/c4/1430811537505194a4c50cab889addb80e6d2d8a7064aa01bcd634475665/unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cf9ef9c63d4c5a9429f57b8190477d8959f6ede4ec6877af241192365e1daa57",
"md5": "e616856a929ef37b91e6799dbc6a1656",
"sha256": "16f03d11ffce9ca996cb41da98e21e0e0875bb913702e9d0f4fd05ffb6a1e75f"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-musllinux_1_1_i686.whl",
"has_sig": false,
"md5_digest": "e616856a929ef37b91e6799dbc6a1656",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8.0",
"size": 3325636,
"upload_time": "2024-11-03T13:40:30",
"upload_time_iso_8601": "2024-11-03T13:40:30.787170Z",
"url": "https://files.pythonhosted.org/packages/cf/9e/f9c63d4c5a9429f57b8190477d8959f6ede4ec6877af241192365e1daa57/unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-musllinux_1_1_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ffc1b542293f6180c7efb8741c7f7ee252a46725dec441cf9e2d882d1d724318",
"md5": "6bb15434520282a160c9fd92413976b0",
"sha256": "3da299cef00186897730513c96b982b098c437eaf6d698ae1b49c69c934ad3cb"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-musllinux_1_1_x86_64.whl",
"has_sig": false,
"md5_digest": "6bb15434520282a160c9fd92413976b0",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.8.0",
"size": 3436902,
"upload_time": "2024-11-03T13:40:32",
"upload_time_iso_8601": "2024-11-03T13:40:32.325332Z",
"url": "https://files.pythonhosted.org/packages/ff/c1/b542293f6180c7efb8741c7f7ee252a46725dec441cf9e2d882d1d724318/unicorn_binance_local_depth_cache-2.8.0-cp39-cp39-musllinux_1_1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "78df1bffedb154982133378dce8d5684d60aef05c7d92d9f232d946f8843f23d",
"md5": "0468d6ae8b64ec43d51c321e04fd4dd2",
"sha256": "8a072622e00c1ac32682fba6eb2557b2f29fb9918e8128495f14ee0d2b88fdd4"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "0468d6ae8b64ec43d51c321e04fd4dd2",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8.0",
"size": 1124429,
"upload_time": "2024-11-03T13:40:33",
"upload_time_iso_8601": "2024-11-03T13:40:33.817945Z",
"url": "https://files.pythonhosted.org/packages/78/df/1bffedb154982133378dce8d5684d60aef05c7d92d9f232d946f8843f23d/unicorn_binance_local_depth_cache-2.8.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "02660af2a644badcebba4338c5ffa40586586a8d61b1c616bcbf2070e7a4875e",
"md5": "338676f2f31ca76eb1dd83a321759789",
"sha256": "ffb1227d741b5a761e75daa1f0dde42f70d5c7b5daa457c4d08e0ca0ee1c8df8"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "338676f2f31ca76eb1dd83a321759789",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8.0",
"size": 1110408,
"upload_time": "2024-11-03T13:40:35",
"upload_time_iso_8601": "2024-11-03T13:40:35.520025Z",
"url": "https://files.pythonhosted.org/packages/02/66/0af2a644badcebba4338c5ffa40586586a8d61b1c616bcbf2070e7a4875e/unicorn_binance_local_depth_cache-2.8.0-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "941a019233d47e5a90a608f0f4bbec067be485bd8ab8488af0e065b0ab0394c7",
"md5": "6922df873a5e256f7d76a12824bc9a3b",
"sha256": "91bc37a0b92c7d363fe091e1fd33ddf821676135bd92f90d1d46709129a6f9af"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "6922df873a5e256f7d76a12824bc9a3b",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8.0",
"size": 1136277,
"upload_time": "2024-11-03T13:40:37",
"upload_time_iso_8601": "2024-11-03T13:40:37.228300Z",
"url": "https://files.pythonhosted.org/packages/94/1a/019233d47e5a90a608f0f4bbec067be485bd8ab8488af0e065b0ab0394c7/unicorn_binance_local_depth_cache-2.8.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2fd8ba269fe75486de28ffb6601d76fddf3e4269555e8f67d8ae340c7892117",
"md5": "6f9f1203c222adc044238eccf5180b0c",
"sha256": "588066ab5773d14f17746d2daa1bccfee32f75dec2fb49c0efb8bff4dfdcfca9"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "6f9f1203c222adc044238eccf5180b0c",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8.0",
"size": 1117588,
"upload_time": "2024-11-03T13:40:38",
"upload_time_iso_8601": "2024-11-03T13:40:38.650409Z",
"url": "https://files.pythonhosted.org/packages/a2/fd/8ba269fe75486de28ffb6601d76fddf3e4269555e8f67d8ae340c7892117/unicorn_binance_local_depth_cache-2.8.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d98425862aad15fb7365af9335acaba1fa9960e4a9b27e9bb9bd30e0e2e1f11b",
"md5": "be25985cfa72f9f04896780329403916",
"sha256": "d36db06314e5efd4cc24401d395a34e2b24cc78ede68f9114559f85d7986e2c3"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "be25985cfa72f9f04896780329403916",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8.0",
"size": 1123622,
"upload_time": "2024-11-03T13:40:40",
"upload_time_iso_8601": "2024-11-03T13:40:40.266558Z",
"url": "https://files.pythonhosted.org/packages/d9/84/25862aad15fb7365af9335acaba1fa9960e4a9b27e9bb9bd30e0e2e1f11b/unicorn_binance_local_depth_cache-2.8.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dec15ee2f58cd305924f46697ee9f77d5c1ea4c4ebc3c89675a18331f26cfcde",
"md5": "abe525e72781ccaa081836bf11209736",
"sha256": "c33a9c088e3d58dad774f5aedf4f9dc4674238829f21cbdd53b2c7374550e025"
},
"downloads": -1,
"filename": "unicorn_binance_local_depth_cache-2.8.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "abe525e72781ccaa081836bf11209736",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8.0",
"size": 1109792,
"upload_time": "2024-11-03T13:40:42",
"upload_time_iso_8601": "2024-11-03T13:40:42.301644Z",
"url": "https://files.pythonhosted.org/packages/de/c1/5ee2f58cd305924f46697ee9f77d5c1ea4c4ebc3c89675a18331f26cfcde/unicorn_binance_local_depth_cache-2.8.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-03 13:39:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "LUCIT-Systems-and-Development",
"github_project": "unicorn-binance-local-depth-cache",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "unicorn-binance-local-depth-cache"
}