revx-monitor

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Monitoring (
revx monitor
)

监控(
revx monitor

Live price and technical indicator alerts. Runs as a continuous polling process.
Auth required. Make sure
revx
is installed and configured before running these commands. If any command fails with an auth-related error —
Auth not configured
,
No private key found
,
Authentication failed (401)
,
Invalid signature
,
insecure permissions
, or a missing key/config file at
~/.config/revolut-x/
invoke the
revx-auth
skill immediately and apply the fix yourself.
Do not interrupt the user to ask them to run setup. Only escalate to the user for steps only they can perform (pasting the API key, registering the public key in their Revolut X profile, choosing a passphrase). After the fix, retry the original command.
Symbols use
BASE-QUOTE
format with a dash:
BTC-USD
,
ETH-EUR
,
SOL-USD
.
If Telegram connectors are configured (see
revx-telegram
skill), alerts are sent as notifications.

实时价格与技术指标警报。以持续轮询进程运行。
需要身份验证。运行这些命令前,请确保已安装并配置
revx
。如果任何命令因身份验证相关错误失败——
Auth not configured
No private key found
Authentication failed (401)
Invalid signature
insecure permissions
,或
~/.config/revolut-x/
路径下缺少密钥/配置文件——立即调用
revx-auth
技能并自行修复问题
。不要打断用户让他们运行设置步骤。仅在需要用户执行专属操作(粘贴API密钥、在Revolut X配置文件中注册公钥、选择密码短语)时才联系用户。修复完成后,重试原命令。
交易对采用
BASE-QUOTE
格式,用短横线分隔:
BTC-USD
ETH-EUR
SOL-USD
如果已配置Telegram连接器(详见
revx-telegram
技能),警报将以通知形式发送。

Behavioral Instructions for Claude

Claude行为说明

Long-Running Commands

长期运行命令

All
revx monitor <type>
commands run indefinitely (polling loops with live dashboard output).
How to handle:
  1. Run the command using the
    Bash
    tool with
    run_in_background: true
    — this frees Claude immediately while the process runs asynchronously
  2. Periodically read the background task output file with the
    Read
    tool to monitor status and report key events to the user (alerts triggered, errors)
  3. If the user asks to stop, use the
    TaskStop
    tool with the task ID
  4. Also print the command to the user so they can optionally run it in a separate terminal for the full live dashboard experience (with colors, real-time tables, Ctrl+C to stop)
Example — starting a monitor:
Bash tool call:
json
{ "command": "revx monitor price BTC-USD --direction above --threshold 100000", "run_in_background": true }
Response to user:
Started monitoring BTC-USD price in the background. I'll check for alerts periodically.
If you'd like to see the live dashboard, run this in a separate terminal:
bash
revx monitor price BTC-USD --direction above --threshold 100000
Press Ctrl+C to stop. Alerts will also be sent to Telegram if configured.

所有
revx monitor <type>
命令会无限期运行(带实时仪表板输出的轮询循环)。
处理方式:
  1. 使用
    Bash
    工具并设置
    run_in_background: true
    来运行命令——这会立即释放Claude,同时进程在后台异步运行
  2. 定期使用
    Read
    工具读取后台任务输出文件,监控状态并向用户报告关键事件(警报触发、错误)
  3. 如果用户要求停止,使用
    TaskStop
    工具并传入任务ID
  4. 同时向用户打印该命令,以便他们可以选择在单独终端中运行,获得完整的实时仪表板体验(带颜色、实时表格,按Ctrl+C停止)
示例——启动监控:
Bash工具调用:
json
{ "command": "revx monitor price BTC-USD --direction above --threshold 100000", "run_in_background": true }
给用户的回复:
已在后台启动BTC-USD价格监控。我会定期检查警报情况。
若要查看实时仪表板,请在单独终端中运行以下命令:
bash
revx monitor price BTC-USD --direction above --threshold 100000
按Ctrl+C停止。如果已配置,警报也会发送至Telegram。

All Monitor Types

所有监控类型

bash
undefined
bash
undefined

Price threshold

价格阈值监控

revx monitor price BTC-USD --direction above --threshold 100000
revx monitor price BTC-USD --direction above --threshold 100000

RSI (Relative Strength Index)

RSI(相对强弱指数)监控

revx monitor rsi ETH-USD --direction above --threshold 70 --period 14
revx monitor rsi ETH-USD --direction above --threshold 70 --period 14

EMA crossover

EMA交叉监控

revx monitor ema-cross BTC-USD --direction bullish --fast-period 9 --slow-period 21
revx monitor ema-cross BTC-USD --direction bullish --fast-period 9 --slow-period 21

MACD crossover

MACD交叉监控

revx monitor macd BTC-USD --direction bullish --fast 12 --slow 26 --signal 9
revx monitor macd BTC-USD --direction bullish --fast 12 --slow 26 --signal 9

Bollinger Bands breach

布林带突破监控

revx monitor bollinger BTC-USD --band upper --period 20 --std-mult 2
revx monitor bollinger BTC-USD --band upper --period 20 --std-mult 2

Volume spike

成交量峰值监控

revx monitor volume-spike BTC-USD --period 20 --multiplier 2.0
revx monitor volume-spike BTC-USD --period 20 --multiplier 2.0

Bid-ask spread

买卖价差监控

revx monitor spread BTC-USD --direction above --threshold 0.5
revx monitor spread BTC-USD --direction above --threshold 0.5

Order book imbalance

订单簿失衡监控

revx monitor obi BTC-USD --direction above --threshold 0.3
revx monitor obi BTC-USD --direction above --threshold 0.3

Price change percentage

价格变动百分比监控

revx monitor price-change BTC-USD --direction rise --threshold 5.0 --lookback 24
revx monitor price-change BTC-USD --direction rise --threshold 5.0 --lookback 24

ATR breakout

ATR突破监控

revx monitor atr-breakout BTC-USD --period 14 --multiplier 1.5
revx monitor atr-breakout BTC-USD --period 14 --multiplier 1.5

List all types with descriptions

查看所有监控类型及描述

revx monitor types

**Common option:** `--interval <seconds>` (minimum 5, default 10)
revx monitor types

**通用选项:** `--interval <seconds>`(最小值5,默认10)

Monitor Defaults

监控默认值

TypeKey Defaults
price
direction: above, threshold: required
rsi
direction: above, threshold: 70, period: 14
ema-cross
direction: bullish, fast: 9, slow: 21
macd
direction: bullish, fast: 12, slow: 26, signal: 9
bollinger
band: upper, period: 20, std-mult: 2
volume-spike
period: 20, multiplier: 2.0
spread
direction: above, threshold: 0.5
obi
direction: above, threshold: 0.3
price-change
direction: rise, threshold: 5.0, lookback: 24
atr-breakout
period: 14, multiplier: 1.5

类型关键默认值
price
方向:above,阈值:必填
rsi
方向:above,阈值:70,周期:14
ema-cross
方向:bullish,快速周期:9,慢速周期:21
macd
方向:bullish,快速周期:12,慢速周期:26,信号线周期:9
bollinger
带:upper,周期:20,标准差倍数:2
volume-spike
周期:20,倍数:2.0
spread
方向:above,阈值:0.5
obi
方向:above,阈值:0.3
price-change
方向:rise,阈值:5.0,回溯周期:24
atr-breakout
周期:14,倍数:1.5

Events (Alert History)

事件(警报历史)

View past alert triggers and notification events:
bash
revx events                            # Last 50 events
revx events --limit 10
revx events --category alert_triggered
revx events --json

查看过往警报触发及通知事件:
bash
revx events                            # 最近50条事件
revx events --limit 10
revx events --category alert_triggered
revx events --json

Common Workflow: Set Up Price Alert with Telegram

常见流程:设置带Telegram通知的价格警报

bash
revx connector telegram add --token <token> --chat-id <id> --test
revx monitor price BTC-USD --direction above --threshold 100000
See also:
revx-telegram
skill for full Telegram connector management.

bash
revx connector telegram add --token <token> --chat-id <id> --test
revx monitor price BTC-USD --direction above --threshold 100000
另请参阅:
revx-telegram
技能,了解完整的Telegram连接器管理方法。

Related Skills

相关技能

SkillPurpose
revx-telegram
Configure Telegram notifications for alerts
revx-market
Understand market data and indicators
revx-strategy
Automated grid trading with monitoring
revx-account
Check balances and order status
revx-auth
API key setup and configuration
技能用途
revx-telegram
配置警报的Telegram通知
revx-market
了解市场数据与指标
revx-strategy
带监控的自动化网格交易
revx-account
查看余额与订单状态
revx-auth
API密钥设置与配置