Skip to main content

Browser-based live dashboard for the UNICORN Binance DepthCache Cluster (UBDCC).

Project description

⚠️ Security Warning: There are currently fraudulent repositories (e.g., under the user gesine1541ro7) impersonating this project to distribute malware. Please ensure you are only using the official source: oliver-zehentleitner/unicorn-binance-websocket-api. Read the full technical analysis and campaign details here!

GitHub Release GitHub Downloads PyPi Release PyPi Downloads License Supported Python Version PyPI - Status CodeQL Unit Tests Build and Publish GH+PyPi Read the Docs Read How To`s Github Telegram UBS-Banner

UBDCC Dashboard

Browser-based live dashboard for the UNICORN Binance DepthCache Cluster (UBDCC) — monitor every depth cache in your cluster at a glance, spot out-of-sync caches instantly, and add or remove caches on the fly.

Part of the UNICORN Binance Suite.


Features

  • Compact mini-orderbook tiles per depth cache — top-3 asks/bids with quantity bars and spread in bps.
  • Continuous, low-overhead polling: IntersectionObserver + filter gate means only on-screen, matching tiles hit the cluster.
  • Status colouring per tile: out-of-sync (error_id #6000) turns red, other errors yellow with a compact error message.
  • Cluster Status header button with a live health dot (green / yellow / red) driven by a 30 s /get_cluster_info poll. Click for a full breakdown — pods grouped by role, node topology, per-DepthCache replica donut with distribution state and (when available) sync state, credentials summary.
  • Credentials Manager — add / remove / list Binance API key pairs on a running cluster right from the dashboard. api_secret input is masked, stored keys show only a preview, remove requires two-click confirm.
  • API Builder — onboarding helper for developers. Pick a task (create DepthCache, get asks/bids, add credentials, ...), fill in the form, copy a ready-to-paste snippet in curl, HTTPie, Python (using the official UBLDC Cluster client), JavaScript, Go, C#, Java, Rust, PHP or C/C++. "Try it" runs GET-safe tasks through the dashboard's CORS proxy and shows the pretty-printed JSON response. Modal footer links to the cluster's OpenAPI reference at /docs and to the dashboard's issue tracker for snippet bug reports.
  • Version badge next to the title. On load, the dashboard asks PyPI for the latest release of ubdcc-dashboard. Up to date → badge stays in the accent colour. Outdated → animated rainbow gradient with a pip install -U hint in the hover tooltip. Backed by a local /version endpoint on the launcher HTTP server.
  • Add DepthCaches modal with live exchangeInfo symbol lookup for spot, cross / isolated margin, futures, options (incl. testnets). Shows only actively tradable symbols. Free-text fallback for exchanges without a public exchangeInfo.
  • Bulk × Remove filtered with two-click confirmation — only active when a filter is set, so you can never accidentally remove every DC.
  • Per-tile × remove with two-click confirmation and 3 s auto-disarm.
  • Disconnect button to stop polling and cut load on the cluster.
  • Refresh-rate throttle from max down to 10 s. Default 2 s is polite to the cluster; crank it up to max for live feel, or drop down to 5 s / 10 s for gentler polling on lightly-used clusters.
  • Dark theme, tabular-numeric fonts, no framework, no tracking — a single HTML file served by a minimal stdlib HTTP server.

Screenshot

The dashboard provides a compact live view of your UBDCC cluster in the browser: mini-orderbook tiles, sync/error state visibility, and quick DepthCache management in one place. UBDCC Dashboard Screenshot


Authorship & License

Author / Maintainer: Oliver Zehentleitner (https://github.com/oliver-zehentleitner) License: MIT — free for commercial and private use. No paid license, no subscription, no commercial tier.


Installation and Upgrade

pip install -U ubdcc-dashboard

Requires Python 3.9+. No external dependencies — uses only the standard library.

Already running the cluster? pip install ubdcc bundles ubdcc-dashboard automatically — no separate install step needed. Standalone install is still useful when you want the dashboard on a different machine than the cluster, or pinned to a specific version.


Quick Start

ubdcc-dashboard start

The server binds to 127.0.0.1:8080 (localhost only) by default and opens the dashboard in your browser. Enter the URL of your UBDCC MGMT node (typical: http://<cluster-host>:42081) and hit Connect.

CLI options

ubdcc-dashboard start [--host HOST] [--port PORT] [--no-browser]
                      [--proxy-timeout SECONDS] [--batch-workers N]
Flag Default Description
--host 127.0.0.1 Interface to bind. Localhost only by default — secure. Use --host 0.0.0.0 to expose the dashboard on your network.
--port 8080 TCP port to listen on.
--no-browser off Do not auto-open the browser on start.
--proxy-timeout 10.0 Timeout (seconds) for the CORS proxy's outbound fetches.
--batch-workers 32 Worker threads used for /proxy_batch fan-out.

Exposing on the network

ubdcc-dashboard start --host 0.0.0.0 --port 8080

Note: The proxy is unauthenticated. Only expose the dashboard on a trusted network.


How it works

The dashboard is a single index.html (vanilla JS, no framework) served by a small stdlib HTTP server. The server also acts as a tiny CORS proxy so the browser can query a remote UBDCC cluster that does not send Access-Control-Allow-Origin headers.

Under the hood:

  • GET /proxy?url=… — passes a single GET through.
  • POST /proxy {url, body} — passes a single JSON POST through.
  • POST /proxy_batch {base, requests} — fans out a list of GETs over a thread pool (default 32 workers) for snappy orderbook refreshes.
  • GET /version — returns {"version": "..."} read from ubdcc_dashboard.__version__. Used by the header version badge and usable as a health-check target.

The unicorn-binance-depth-cache-cluster project is the server side of this story — the dashboard just paints what the cluster already exposes via its REST API.


Change Log

https://oliver-zehentleitner.github.io/ubdcc-dashboard/changelog.html

Documentation

Related Articles

Project Homepage

https://github.com/oliver-zehentleitner/ubdcc-dashboard

Wiki

https://github.com/oliver-zehentleitner/ubdcc-dashboard/wiki

Social

Receive Notifications

To receive notifications on available updates you can watch the repository on GitHub, or subscribe to the releases discussion category.

To receive news (like inspection windows/maintenance) about the Binance API's subscribe to their telegram groups:

How to report Bugs or suggest Improvements?

List of planned features — give a 👍 if you need one of them, or suggest a new feature!

Before you report a bug, try the latest release. If the issue still exists, provide the error trace, OS, Python version, browser, and explain how to reproduce the error. A minimal reproduction (commands + cluster setup) is appreciated.

If you don't find an issue related to your topic, please open a new issue!

Report a security bug!

Contributing

UBDCC Dashboard 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.

Contributors

Contributors

We ❤ open source!


AI Integration

This project provides a llms.txt file for AI tools (ChatGPT, Claude, Copilot, etc.) with structured usage instructions, CLI reference and architecture notes.


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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ubdcc_dashboard-0.3.0.tar.gz (48.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ubdcc_dashboard-0.3.0-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file ubdcc_dashboard-0.3.0.tar.gz.

File metadata

  • Download URL: ubdcc_dashboard-0.3.0.tar.gz
  • Upload date:
  • Size: 48.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ubdcc_dashboard-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1e58ca54f38ac95a224b3d5ec3f0514558b1ba9f942388c6646bdcc37728eac1
MD5 35259b6c6dc1816b226c5353796c8232
BLAKE2b-256 f275d07a4e38ba77bf7735376add84b2bf8d52bf9c57b74a294f50196e1ad85c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ubdcc_dashboard-0.3.0.tar.gz:

Publisher: build_wheels.yml on oliver-zehentleitner/ubdcc-dashboard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ubdcc_dashboard-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ubdcc_dashboard-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ubdcc_dashboard-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04539bf2963d879c0600e17014ff9cee98b804392d84d1c5c4b45b91146f31b0
MD5 a1a53728f070950a4492ae40101a2525
BLAKE2b-256 36b67100e3760a02a93dd4f42e68de018e0cf50e2748a3ccc6c064307b71ffc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ubdcc_dashboard-0.3.0-py3-none-any.whl:

Publisher: build_wheels.yml on oliver-zehentleitner/ubdcc-dashboard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page