Xpersona
S

Shadow Binance Bot

CLAWHUB · Unverified

An AI trading coach for Binance that analyzes your trades — nominated in Binance's OpenClaw AI Contest 2026. Skill: Shadow Binance Bot Owner: acevod Summary: An AI trading coach for Binance that analyzes your trades — nominated in Binance's OpenClaw AI Contest 2026. Tags: latest:1.5.0 Version history: v1.5.0 | 2026-09-18T12:15:04.851Z | user Version 1.5.0 introduces new tests, assets, and updates default analysis pairs. - Added new test files for Binance and coach modules. - Included sample config.env.example for easier set

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17eyes9cytgz7rgt1f5j0epvn844401:shadow-binance-bot
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-acevod-shadow-binance-bot/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,709 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

```yaml
---
name: shadow-binance-bot
description: AI-powered read-only trading analysis coach that simulates alternative strategies against your Binance trade history.
version: 1.5.0
author: acevod
homepage: https://github.com/acevod/Shadow-Binance-Bot
license: MIT
metadata:
  openclaw:
    emoji: 🔍
    always: false
    requires:
      env:
        - BINANCE_API_KEY
        - BINANCE_API_SECRET
      bins:
        - node >=18.0.0
    security:
      credentials:
        - BINANCE_API_KEY
        - BINANCE_API_SECRET
      posture: read-only
      trading: false
      withdrawal: false
registry:
  platform: openclaw
  runtime: node >=18.0.0
  env:
    - BINANCE_API_KEY (required) — Binance read-only API key
    - BINANCE_API_SECRET (required) — Binance read-only API secret
    - SPOT_SYMBOLS (optional) — comma-separated list of spot symbols to analyze (default: BTCUSDT,ETHUSDT,BNBUSDT,SOLUSDT,SHIBUSDT)
  capabilities:
    - read-only
    - no-trading
    - no-withdrawal
requires:
  env:
    - BINANCE_API_KEY
    - BINANCE_API_SECRET
  binaries:
    - node >=18.0.0
files:
  - src/index.cjs
  - src/binance.cjs
  - src/analyzer.cjs
  - src/shadowSim.cjs
  - src/coach.cjs
  - tests/analyzer.test.cjs
  - tests/shadowSim.test.cjs
  - tests/binance.test.cjs
  - tests/coach.test.cjs
  - config.env.example
  - package.json
  - CHANGELOG.md
  - CONTRIBUTING.md
  - LICENSE
  - README.md
  - .editorconfig
---

# Shadow Mode Trading Trainer

README.md

# Shadow Binance Bot

[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE) [![OpenClaw](https://img.shields.io/badge/OpenClaw-AI%20Agent-purple)](https://openclaw.ai) [![Binance](https://img.shields.io/badge/Binance-API-yellow)](https://binance.com) [![AI](https://img.shields.io/badge/AI-Trading%20Coach-blue)](https://github.com/acevod/Shadow-Binance-Bot) [![Binance OpenClaw Nominee](https://img.shields.io/badge/Binance%20OpenClaw-Nominee%20🏆-orange)](https://x.com/binance/status/2041259653305114833)

AI-powered trading coach that analyzes your Binance trades and shows how alternative strategies could have improved your results.

Instead of guessing what went wrong, traders can see a simulated "shadow strategy" running alongside their real trades.

This transforms trading mistakes into structured learning.

---

## 🏆 Recognition

Nominated in the **Binance OpenClaw AI Builder Contest** (March 2026) — selected among the top community submissions out of a 48.6 BNB prize pool, recognized in [Binance's official winners & nominees announcement](https://x.com/binance/status/2041259653305114833).

---

## Problem

Most crypto traders lose money not because of lack of information, but because of:

- FOMO entries
- Panic selling
- Over-leveraging
- Poor risk management
- Emotional trading decisions

Even experienced traders struggle to objectively analyze their past trades.

---

## Solution

Shadow Mode Trading Trainer analyzes a trader’s Binance history and runs parallel strategy simulations.

It compares:

**Real Trades**  
vs  
**Shadow Strategy Performance**

This allows traders to learn:

- how different entries would change results
- how position sizing affects risk
- how emotional trading impacts performance

The system acts as a **trading coach instead of a signal generator**.

---

## Shadow Strategy Simulation

![Shadow Strategy Simulation](assets/shadow-simulation.png)

This system analyzes a trader's real trade history and simulates alternative strategies in a "shadow mode".

By comparing real trades with AI-simulated strategies, the system can identify:

- missed opportunities
- emotional trading patterns
- better entry and exit strategies
- potential performance improvements

---

## Key Features

### Portfolio Analysis

Analyze Binance Spot and Futures trading history including:

- win rate, risk:reward, and PnL by period
- best/worst trading hours (UTC)
- fee and funding cost breakdown
- Futures account balance (wallet, unrealized PnL, margin balance) and non-zero Spot balances, when the API key has read access

### Shadow Strategy Simulation

Run alternative strategies on historical trades:

- Dollar Cost Averaging (DCA)
- support level entries
- reduced leverage
- improved stop-loss placement

### Trading Pattern Detection

Flag statistical patterns in your trading history:

- low win rate or poor risk:reward ratio
- consecutive loss streaks (possible tilt/revenge trading)
- overtrading (too many trades per day)
- hou

_meta.json

{
  "ownerId": "kn7bt4q8j1zacdvpa9xtdrs1v9845sn0",
  "slug": "shadow-binance-bot",
  "version": "1.5.0",
  "publishedAt": 1789733704851
}

CHANGELOG.md

# Changelog

All notable changes to this project will be documented in this file.

---

## [v1.5.0] - 2026-09-18

### Added
- Account Balance section: reports Futures wallet balance, unrealized PnL, and margin balance, plus non-zero Spot balances, fetched best-effort so a key scoped to only one product still shows what it can access.
- Proactive rate-limit backoff: tracks Binance's `x-mbx-used-weight-1m` response header and automatically pauses before request weight nears the account's per-minute budget, instead of only reacting after a 429/418.
- Mocked-network regression test for `getFuturesIncome()`'s window + sub-page pagination (previously only Spot pagination had test coverage).

### Fixed
- `testConnection()` no longer fails outright for API keys scoped to only Futures (or only Spot) — it now tries both and succeeds if either is reachable.
- Spot report no longer prints a literal `null` for "Fees Paid" when commissions were paid in more than one asset; it now shows a per-asset breakdown.
- Spot trade volume/notional is no longer summed across symbols with different quote assets (e.g. a USDT-quoted pair and a BTC-quoted pair) into one misleading number. Volume is now grouped by quote asset, with an explicit breakdown when a single total wouldn't make sense.

### Removed
- `analyzer.analyzeBehavior()` — fully superseded by `coach.identifyProblems()` / `coach.generateRecommendations()`, which now also cover its one previously-unique check (overtrading, trades/day over threshold).

---

## [v1.4.1] - 2026-09-18

### Fixed — Data Integrity & Reliability
- Fixed Spot `/api/v3/myTrades` pagination to walk backwards using `endTime` instead of incorrectly advancing from the newest trade ID.
- Regenerate signed Binance requests on retry so timestamps/signatures are fresh.
- Honor Binance `Retry-After` on HTTP 429/418 responses when present.
- Detect malformed income/trade records instead of allowing `NaN` to poison aggregates.
- Added explicit completeness metadata for multi-symbol Spot fetches and Futures/Spot data quality.
- Prevent Spot commissions in different assets from being summed as if they were one currency.
- Corrected Reduced Trading commission-savings sign.
- Shadow coach no longer ranks heuristic/hindsight scenarios by illustrative PnL.
- Corrected SKILL.md frontmatter, version, and optional `SPOT_SYMBOLS` metadata.

### Analytics Integrity
- Futures analysis now labels its unit as `realized_pnl_event`; the repository does not pretend that income events are reconstructed round-trip trades.
- Risk/reward coaching language now describes 1:3 as a heuristic rather than a universal profitability rule.

---

## [v1.3.3] - 2026-04-06

### Fixed — Registry Metadata Integrity (Final)
- Added `metadata.openclaw` block to SKILL.md YAML frontmatter with explicit:
  - `requires.env` listing all three environment variables
  - `requires.bins` listing Node.js >=18 runtime requirement
  - `security.credentials` declaring BINANCE_API_KEY and BINANCE_AP

CONTRIBUTING.md

# Contributing to Shadow Binance Bot

Thank you for your interest in contributing!

## How to Contribute

### Reporting Issues

Found a bug or have a feature request? Open an issue on GitHub with a clear description and any relevant logs or screenshots.

### Pull Requests

1. **Fork the repository** and create a new branch for your feature or fix.
2. Keep changes **focused and small** — one feature or fix per PR.
3. Write a clear PR description explaining **what** changed and **why**.
4. Test your changes locally before submitting.
5. Ensure `npm test` passes.

### Code Style

- Use **2-space indentation** for consistency.
- Add JSDoc comments for all public functions.
- Keep lines under **120 characters**.
- No trailing whitespace.
- This project uses **EditorConfig**. Please install the plugin for your editor.

### Security

- **Never commit API keys, secrets, or credentials.**
- Use environment variables or a local `config.env` (already in `.gitignore`).
- If you discover a security vulnerability, please report it privately rather than as a public issue.

### Scope

This tool is a **read-only analysis and coaching** skill. It does not:
- Execute trades automatically
- Access withdrawal or deposit functions
- Store user trading data externally

Large changes should be discussed via a GitHub issue before submitting a PR.

---

_By contributing, you agree that your contributions will be licensed under the MIT License._

Sponsored

Ads related to Shadow Binance Bot and adjacent AI workflows.