Skip to main content

A live terminal-based crypto signal scanner using Coinbase, Z-score anomaly detection, and strategy classification.

Project description

Cb-signalTUI

Build and Publish

screenshot

Cb-signalTUI is a real-time, terminal-native crypto signal scanner built for Coinbase assets.
It uses Z-score anomaly detection, adaptive EMA momentum modeling, trend slope analysis, and confidence scoring to classify trading opportunities as momentum, reversal, or neutral strategies—complete with voice alerts and persistent logging.


Features

  • Real-Time Signal Detection: Continuously monitors supported Coinbase pairs for actionable trade signals.
  • Smart Signal Fusion: Combines Z-score, EMA differentials, volatility, and slope for more reliable detection.
  • Strategy Classification: Flags opportunities as momentum, reversal, or neutral based on composite indicators.
  • Confidence-Weighted Alerts: Dynamic scoring adjusts based on trend slope and volatility.
  • Rich Terminal UI: Auto-refreshing, color-coded interface with real-time stats and categorized signals.
  • Voice Alerts: Uses pyttsx3 for BUY/SELL vocal alerts when confidence is high.
  • Asynchronous Execution: Built on asyncio, aiohttp, and aiosqlite for high throughput and reliability.
  • SQLite Logging: Every signal gets logged to signals.db for backtesting or historical review.
  • Custom Per-Asset Configs: Fine-tune EMA periods and sensitivity thresholds for each asset.
  • Modular CLI Modes: Supports future extensions like --backtest, --export, etc.
  • Resilient Networking: Intelligent retry/backoff logic prevents flake-outs on rate limits or network errors.

Project Structure

Cb-signalTUI/
├── cb_signal_tui/             # Core signal scanner package
│   ├── __init__.py            # Package definition
│   └── __main__.py            # Runtime, config, CLI
├── built/                     # Auto-built wheels/tarballs on push
│   └── cb_signal_tui-*.whl
├── dist/                      # Local pip builds (ignored by git)
├── .github/
│   └── workflows/
│       └── build.yml          # GitHub Actions for CI/CD
├── requirements.txt           # Runtime dependencies
├── pyproject.toml             # Build metadata (PEP 621)
├── README.md                  # You are here.
└── signals.db                 # SQLite runtime DB (auto-created)

Installation

  1. Clone the repo:

    git clone https://github.com/LoQiseaking69/Cb-signalTUI.git
    cd Cb-signalTUI
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. (Optional) Install from a local build:

    pip install built/cb_signal_tui-*.whl
    

Dependencies

aiohttp
aiosqlite
pandas
numpy
pyttsx3
rich
scipy

Usage

To launch the live scanner with the terminal UI:

cb-signal-tui

Live Output

output


Configuration

Configuration is handled in cb_signal_tui/__main__.py.

Key tunables:

  • PRODUCTS: Coinbase trading pairs to monitor (BTC-USD, ETH-USD, etc.)
  • SETTINGS: Per-asset strategy config (fast_ema, slow_ema, zscore_threshold)
  • Z_SCORE_WINDOW, VOLATILITY_THRESHOLD, FLAT_SLOPE_THRESHOLD: Core tuning params
  • STRATEGY_FILTER: Filter strategy types (momentum, reversal)
  • ALERT_CONFIDENCE_THRESHOLD: Minimum confidence required to trigger a voice alert
  • REFRESH_INTERVAL: UI update frequency (seconds)

Database

Signal logs are persisted to signals.db.

Schema:

CREATE TABLE IF NOT EXISTS signals (
    timestamp TEXT,
    asset TEXT,
    price REAL,
    z_score REAL,
    signal TEXT,
    confidence REAL,
    strategy TEXT
);

Contributing

  1. Fork the repo
  2. Create a feature branch (git checkout -b my-feature)
  3. Push your changes
  4. Open a pull request

Built for precision. Tuned for real-time alpha.
Get signals. Not noise.

LoQiseaking69

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

cb_signal_tui-0.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

cb_signal_tui-0.3.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file cb_signal_tui-0.3.2.tar.gz.

File metadata

  • Download URL: cb_signal_tui-0.3.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for cb_signal_tui-0.3.2.tar.gz
Algorithm Hash digest
SHA256 742630db6130c77959afde723b3e868019eb9f176d9b4234e77631494c9c5758
MD5 1a42c9d14bff78261af4f5dcf0c472b2
BLAKE2b-256 e64419948230000c878575e3c9cea8e61a9a0f0bea24b9afe986cf38b80e0a52

See more details on using hashes here.

File details

Details for the file cb_signal_tui-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: cb_signal_tui-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for cb_signal_tui-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a09343b3025527db14c59c895ea07e8e8bff6ef9aa954484d7c2421be8413f99
MD5 cad902a5eaa17cb1dac138573b559399
BLAKE2b-256 bc62218b5249f2add25dae8d92e1653370f41f9e6541d306082b54088ca7b786

See more details on using hashes here.

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