Galle, LK--:--5/6 sites live
ML & Vision

CryptoEdge & TradeV1 ML

Binance Algorithmic Trading

Automated Binance crypto trading engine and machine learning price forecasting pipeline with cloud CI/CD.

Read the deep dive Private repository
CryptoEdge & TradeV1 ML

Overview

CryptoEdge is an institutional-grade quantitative trading bot and machine learning forecasting platform connected to the Binance Spot and Futures exchange. It combines technical indicator momentum models (MACD, RSI, Bollinger Bands, Order Flow) with supervised ML models to generate high-probability trade signals, execute risk-managed orders, and log execution metrics.

Design decisions

The choices that shaped the system, and why.

  1. 1

    Automated Cloud Build CI/CD (`cloudbuild.yaml`)

    Implemented Google Cloud Build automation that triggers unit tests (`pytest`), container builds, and security scans on every Git push before staging deployment.

  2. 2

    Strict Risk Management Circuit Breakers

    Built automated kill-switches enforcing maximum drawdown limits per 24 hours to protect capital from flash crashes or exchange API latency.

Architecture

Real-Time Market Data Ingestion

WebSocket streaming of Binance order books, trade ticks, and OHLCV kline intervals.

Feature Engineering Pipeline

Computes 40+ quantitative indicators, volatility metrics, and moving average spreads in vectorized Pandas arrays.

Algorithmic Execution Engine

Implements stop-loss, take-profit trailing stops, and position sizing based on portfolio Kelly criterion.

Cloud-Native Architecture

Dockerized with Google Cloud Build CI/CD pipelines for automated testing and container deployment.

DevOps & deployment

Configured for Google Cloud Build with container registry storage and deployment to GCP Compute Engine or AWS EC2 with low-latency exchange peering.

How it ships · Google Cloud Run · Secret Manager · keyless Workload Identity Federation

  1. 1Push to main
  2. 2pytest + import/route smoke check
  3. 3Auth to GCP with OIDC (no JSON key)
  4. 4Build & push to Artifact Registry
  5. 5Cloud Run deploy with --min-instances=1 and secrets from Secret Manager
How I ship my projects

Features

  • Live paper trading and real-money Binance API key execution.
  • Automated risk management preventing drawdown exceeding preset thresholds.
  • Predictive ML model predicting candle direction with historical backtesting engine.
  • Comprehensive trade journal and PnL reporting dashboard.

Related writing