Skip to content

feat: add hlz watch command for price alerts with shell triggers#4

Open
dzmbs wants to merge 2 commits intomainfrom
sym-9/add-watch-command
Open

feat: add hlz watch command for price alerts with shell triggers#4
dzmbs wants to merge 2 commits intomainfrom
sym-9/add-watch-command

Conversation

@dzmbs
Copy link
Copy Markdown
Owner

@dzmbs dzmbs commented Mar 14, 2026

Add hlz watch command, a WebSocket-based price watcher that monitors mid price and optionally executes a shell command when a threshold is crossed.

Features:

  • above/below conditions
  • cmd for shell execution
  • repeat for edge-triggered continuous monitoring
  • pipe-aware JSON output
  • WebSocket reconnection
  • SIGINT graceful shutdown

@dzmbs dzmbs added the symphony label Mar 14, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hlz Ready Ready Preview, Comment Mar 14, 2026 11:03pm

- Validate coin exists on first allMids message; fail fast with error
  for unknown/mistyped coins instead of hanging silently.
- In JSON/pipe mode, suppress child process stdout (.Ignore) so shell
  command output does not corrupt the machine-readable JSON stream.
  Child stderr still goes to stderr for diagnostics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant