sldev-market-watch
v0.1.0
Published
Watch a trading pair on Binance, Bybit and Kraken for volume spikes, breakouts and tightening ranges. MCP server and one-shot check for schedulers. Public market data only: no API keys, no trading.
Maintainers
Readme
market-watch
Watches trading pairs on Binance, Bybit and Kraken and tells you when one is coiling (its range is the tightest it's been in a while and volume is starting to rise, so a breakout may be close) or breaking out (a candle closes beyond its range on at least twice its usual volume).
- Any pair you choose: in a config file, with
--pair, or as an argument from your agent. - Public market data only: no API keys, no account, no trading.
- Two ways to run: an MCP server your coding agent can ask, and a one-shot
checkyour scheduler runs. - Quiet by design: closed candles only (a candle still forming can spike and fall back), optional agreement across exchanges, and one alert per move with a cooldown.
Not financial advice. It tells you what the numbers did, not what to do.
Quick start
npx -y sldev-market-watch scan --pair BTC/USDT --exchange binance,bybit,kraken --timeframe 1hBTC/USDT 1h
binance: nothing. Price 59,405.2, range 58,934.6 to 60,266, volume 0.7× (last 3: 0.9×), bandwidth 2.06% (tighter than 81% of the last 120), candle closed 2026-11-28 18:00 UTC
...Watch list
npx -y sldev-market-watch init # writes ~/.config/market-watch/config.ymlwatch:
- pair: BTC/USDT
exchanges: [binance, bybit, kraken]
timeframe: 1h # 1m 5m 15m 30m 1h 4h 1d
alerts: [coiling, breakout]
volume_x: 2.0 # breakout candle's volume vs its 20-candle average
confirm: 2 # exchanges that must agree
notify:
- desktop
- ntfy:pick-a-long-random-topic # push to your phone with the ntfy app
- webhook:MARKET_WATCH_WEBHOOK # POSTs to the URL in this env var (Discord, Slack)
cooldown: 4hmarket-watch check --dry-run shows what would alert without sending anything.
Run it on a schedule
check runs once and exits, so any scheduler works. Run it a minute after each candle closes:
cron (Linux, macOS): crontab -e, then for a 1h timeframe:
1 * * * * npx -y sldev-market-watch check >> ~/.local/state/market-watch/log.txt 2>&1(For 15m candles: 1,16,31,46 * * * *.) Desktop notifications from cron need your session's
DISPLAY/DBUS_SESSION_BUS_ADDRESS; ntfy or a webhook avoid that.
systemd user timer (Linux): ~/.config/systemd/user/market-watch.service with
ExecStart=/usr/bin/env npx -y sldev-market-watch check and a market-watch.timer with
OnCalendar=*:01, then systemctl --user enable --now market-watch.timer.
Windows: Task Scheduler → Create Basic Task → Daily, repeat every 1 hour →
npx.cmd -y sldev-market-watch check.
GitHub Actions won't work for Binance or Bybit: both block US addresses, where the runners are. Kraken works from anywhere it serves.
As an MCP server
claude mcp add market-watch -- npx -y sldev-market-watch mcpOther agents: command npx, args ["-y", "sldev-market-watch", "mcp"].
| Tool | Does |
| --- | --- |
| scan_pair | Reads one pair (pair, optional exchanges, timeframe, volume_x) and returns the signals and the numbers behind them |
| check_watchlist | Runs your config once and says what would alert. Sends nothing |
The MCP server never sends notifications and never changes the cooldown state; only check does.
How the signals work
All on closed candles, over the last 20 unless said otherwise:
- Breakout up / down: the last candle closes above the highest high (below the lowest low) of the 20
before it, on at least
volume_xtimes their average volume. - Coiling: the Bollinger bandwidth (4 standard deviations over the 20-candle mean) is in the lowest 10% of the last 120 candles, price is still inside the range, and the last 3 candles' volume is at least 1.3× the average before them.
- confirm: with several exchanges, a signal alerts only when that many show it. A spike on one exchange alone is often one big order.
- Cooldown: the same pair, timeframe and signal alerts at most once per cooldown, and never twice for
the same candle. State lives in
~/.local/state/market-watch/state.json.
Network and privacy
It calls the exchanges' public candle endpoints (api.binance.com, api.bybit.com, api.kraken.com) and,
only if you configure them, ntfy.sh or your webhook. Nothing else, and no telemetry.
Develop
npm ci && npm run typecheck && npm test && npm run buildTests use recorded response shapes and synthetic candles; none of them call an exchange.
