revx-account

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Account & Order Queries

账户与订单查询

View balances, query orders, browse trade history.
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.
All commands support
--json
or
--output json
for machine-readable output.
Symbols use
BASE-QUOTE
format with a dash:
BTC-USD
,
ETH-EUR
,
SOL-USD
.

查看余额、查询订单、浏览交易历史。
需要认证。运行这些命令前,请确保已安装并配置
revx
。如果任何命令因认证相关错误失败——
Auth not configured
No private key found
Authentication failed (401)
Invalid signature
insecure permissions
,或
~/.config/revolut-x/
路径下缺少密钥/配置文件——请立即调用
revx-auth
技能并自行修复。不要打断用户让他们进行设置。仅在需要用户执行专属步骤(粘贴API密钥、在Revolut X配置文件中注册公钥、选择密码短语)时才联系用户。修复完成后,重试原命令。
所有命令均支持
--json
--output json
参数以输出机器可读格式。
交易对采用
BASE-QUOTE
格式,用短横线分隔:
BTC-USD
ETH-EUR
SOL-USD

Balances

余额查询

bash
revx account balances                          # Non-zero balances
revx account balances --all                    # Include zero balances
revx account balances BTC                      # Single currency (case-insensitive)
revx account balances --currencies BTC,ETH,USD # Filter by multiple currencies

bash
revx account balances                          # 非零余额
revx account balances --all                    # 包含零余额
revx account balances BTC                      # 单一币种(大小写不敏感)
revx account balances --currencies BTC,ETH,USD # 按多种币种筛选

Open Orders

未结订单

bash
revx order open
revx order open --symbols BTC-USD,ETH-USD --side buy
revx order open --order-states pending_new,new --order-types limit --limit 50
Filters:
--symbols
,
--order-states
(pending_new, new, partially_filled),
--order-types
(limit, conditional, tpsl),
--side
,
--limit
bash
revx order open
revx order open --symbols BTC-USD,ETH-USD --side buy
revx order open --order-states pending_new,new --order-types limit --limit 50
筛选条件:
--symbols
--order-states
(pending_new、new、partially_filled)、
--order-types
(limit、conditional、tpsl)、
--side
--limit

Order History

订单历史

bash
revx order history
revx order history --symbols BTC-USD --start-date 7d --end-date today
revx order history --order-states filled,cancelled --limit 20
Filters:
--symbols
,
--order-states
(filled, cancelled, rejected, replaced, partially_filled),
--order-types
(market, limit),
--start-date
,
--end-date
,
--limit
Default: When no dates are specified, returns the last 30 days. Time formats: relative (
7d
,
1w
,
today
), ISO date (
2025-04-14
), Unix epoch ms.
bash
revx order history
revx order history --symbols BTC-USD --start-date 7d --end-date today
revx order history --order-states filled,cancelled --limit 20
筛选条件:
--symbols
--order-states
(filled、cancelled、rejected、replaced、partially_filled)、
--order-types
(market、limit)、
--start-date
--end-date
--limit
默认规则: 未指定日期时,返回最近30天的数据。时间格式:相对时间(
7d
1w
today
)、ISO日期(
2025-04-14
)、Unix时间戳(毫秒)。

Order Details & Fills

订单详情与成交记录

bash
revx order get <order-id>              # Full order details
revx order fills <order-id>            # All fills for an order

bash
revx order get <order-id>              # 完整订单详情
revx order fills <order-id>            # 某订单的所有成交记录

Trades

交易记录

bash
revx trade private BTC-USD                                # My trade history
revx trade private BTC-USD --start-date 7d --limit 100
revx trade private BTC-USD --start-date 2025-04-01 --end-date 2025-04-14
revx trade public BTC-USD                                 # Public trades
revx trade public BTC-USD --start-date 7d --end-date today
Filters:
--start-date
,
--end-date
,
--limit
Default: When no dates are specified, returns the last 30 days. Time formats: relative (
7d
,
1w
,
today
), ISO date (
2025-04-14
), Unix epoch ms.
Aliases:
revx trade history
=
private
,
revx trade all
=
public
.

bash
revx trade private BTC-USD                                # 我的交易历史
revx trade private BTC-USD --start-date 7d --limit 100
revx trade private BTC-USD --start-date 2025-04-01 --end-date 2025-04-14
revx trade public BTC-USD                                 # 公开交易记录
revx trade public BTC-USD --start-date 7d --end-date today
筛选条件:
--start-date
--end-date
--limit
默认规则: 未指定日期时,返回最近30天的数据。时间格式:相对时间(
7d
1w
today
)、ISO日期(
2025-04-14
)、Unix时间戳(毫秒)。
别名:
revx trade history
=
private
revx trade all
=
public

Permission Handling for Recurring Commands (/loop)

周期性命令(/loop)的权限处理

When using
/loop
to run
revx
commands on an interval, each iteration triggers a permission prompt. To avoid repeated approvals:
  1. Determine the exact
    revx
    commands needed for each iteration (e.g.,
    revx account balances
    ,
    revx order open
    )
  2. Run each command as a separate
    Bash
    tool call
    — do NOT chain with
    &&
    or pipes. This ensures each command matches a simple permission pattern
  3. Present the specific commands to the user and ask for permission to add them to the allowlist
  4. Use the
    update-config
    skill to add specific permission patterns to
    .claude/settings.local.json
    , e.g.:
    json
    "Bash(revx account balances*)",
    "Bash(revx order open*)"
    Do NOT add a blanket
    Bash(revx *)
    — only add the exact commands the loop needs
  5. Then start the
    /loop
Permission pattern syntax:
Bash(revx account balances*)
uses a glob wildcard — the trailing
*
allows optional flags. The pattern uses a space separator (not colon). Compound commands with
&&
or
|
are split into subcommands, each checked independently.
Example flow for "every 10 min check my balance and open orders":
  1. Determine needs:
    revx account balances
    and
    revx order open
  2. Tell the user: "I'll run these two commands each iteration — can I add them to your permission allowlist?"
  3. On approval, add
    Bash(revx account balances*)
    and
    Bash(revx order open*)
    via
    update-config
  4. Start
    /loop 10m check balance and open orders
  5. Each iteration runs two separate
    Bash
    calls — no further prompts

使用
/loop
周期性运行
revx
命令时,每次迭代都会触发权限提示。为避免重复授权:
  1. 确定每次迭代所需的具体
    revx
    命令(例如:
    revx account balances
    revx order open
  2. 将每个命令作为独立的
    Bash
    工具调用
    ——不要用
    &&
    或管道符拼接。这样能确保每个命令匹配简单的权限规则
  3. 向用户展示具体命令,并请求允许将其添加到白名单
  4. 使用
    update-config
    技能将具体的权限规则添加到
    .claude/settings.local.json
    中,例如:
    json
    "Bash(revx account balances*)",
    "Bash(revx order open*)"
    不要添加宽泛的
    Bash(revx *)
    ——仅添加循环所需的精确命令
  5. 然后启动
    /loop
权限规则语法:
Bash(revx account balances*)
使用通配符——末尾的
*
允许添加可选参数。规则使用空格分隔(而非冒号)。包含
&&
|
的复合命令会被拆分为子命令,每个子命令独立检查权限。
示例流程:「每10分钟检查我的余额和未结订单」
  1. 确定需求:
    revx account balances
    revx order open
  2. 告知用户:「每次迭代我会运行这两个命令——能否将它们添加到你的权限白名单?」
  3. 获得批准后,通过
    update-config
    添加
    Bash(revx account balances*)
    Bash(revx order open*)
  4. 启动
    /loop 10m check balance and open orders
  5. 每次迭代运行两个独立的
    Bash
    调用——无需再次提示

Common Workflows

常见工作流

"What's my BTC worth?"

「我的BTC价值多少?」

bash
revx account balances BTC
revx market tickers BTC-USD
bash
revx account balances BTC
revx market tickers BTC-USD

"Review recent trading activity"

「查看近期交易活动」

bash
revx order history --start-date 7d
revx trade private BTC-USD --start-date 7d

bash
revx order history --start-date 7d
revx trade private BTC-USD --start-date 7d

Related Skills

相关技能

SkillPurpose
revx-trading
Place and cancel orders
revx-market
Check prices and pair constraints
revx-monitor
Set alerts on prices and indicators
revx-auth
API key setup and configuration
技能用途
revx-trading
下单与撤单
revx-market
查看价格与交易对限制
revx-monitor
设置价格与指标提醒
revx-auth
API密钥设置与配置