revx-account
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAccount & Order Queries
账户与订单查询
View balances, query orders, browse trade history.
Auth required. Make sureis installed and configured before running these commands. If any command fails with an auth-related error —revx,Auth not configured,No private key found,Authentication failed (401),Invalid signature, or a missing key/config file atinsecure permissions— invoke the~/.config/revolut-x/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.revx-auth
All commands support or for machine-readable output.
--json--output jsonSymbols use format with a dash: , , .
BASE-QUOTEBTC-USDETH-EURSOL-USD查看余额、查询订单、浏览交易历史。
需要认证。运行这些命令前,请确保已安装并配置。如果任何命令因认证相关错误失败——revx、Auth not configured、No private key found、Authentication failed (401)、Invalid signature,或insecure permissions路径下缺少密钥/配置文件——请立即调用~/.config/revolut-x/技能并自行修复。不要打断用户让他们进行设置。仅在需要用户执行专属步骤(粘贴API密钥、在Revolut X配置文件中注册公钥、选择密码短语)时才联系用户。修复完成后,重试原命令。revx-auth
所有命令均支持或参数以输出机器可读格式。
--json--output json交易对采用格式,用短横线分隔:、、。
BASE-QUOTEBTC-USDETH-EURSOL-USDBalances
余额查询
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 currenciesbash
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 50Filters: , (pending_new, new, partially_filled), (limit, conditional, tpsl), ,
--symbols--order-states--order-types--side--limitbash
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筛选条件: 、(pending_new、new、partially_filled)、(limit、conditional、tpsl)、、
--symbols--order-states--order-types--side--limitOrder 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 20Filters: , (filled, cancelled, rejected, replaced, partially_filled), (market, limit), , ,
--symbols--order-states--order-types--start-date--end-date--limitDefault: When no dates are specified, returns the last 30 days. Time formats: relative (, , ), ISO date (), Unix epoch ms.
7d1wtoday2025-04-14bash
revx order history
revx order history --symbols BTC-USD --start-date 7d --end-date today
revx order history --order-states filled,cancelled --limit 20筛选条件: 、(filled、cancelled、rejected、replaced、partially_filled)、(market、limit)、、、
--symbols--order-states--order-types--start-date--end-date--limit默认规则: 未指定日期时,返回最近30天的数据。时间格式:相对时间(、、)、ISO日期()、Unix时间戳(毫秒)。
7d1wtoday2025-04-14Order Details & Fills
订单详情与成交记录
bash
revx order get <order-id> # Full order details
revx order fills <order-id> # All fills for an orderbash
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 todayFilters: , ,
--start-date--end-date--limitDefault: When no dates are specified, returns the last 30 days. Time formats: relative (, , ), ISO date (), Unix epoch ms.
7d1wtoday2025-04-14Aliases: = , = .
revx trade historyprivaterevx trade allpublicbash
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天的数据。时间格式:相对时间(、、)、ISO日期()、Unix时间戳(毫秒)。
7d1wtoday2025-04-14别名: = , = 。
revx trade historyprivaterevx trade allpublicPermission Handling for Recurring Commands (/loop)
周期性命令(/loop)的权限处理
When using to run commands on an interval, each iteration triggers a permission prompt. To avoid repeated approvals:
/looprevx- Determine the exact commands needed for each iteration (e.g.,
revx,revx account balances)revx order open - Run each command as a separate tool call — do NOT chain with
Bashor pipes. This ensures each command matches a simple permission pattern&& - Present the specific commands to the user and ask for permission to add them to the allowlist
- Use the skill to add specific permission patterns to
update-config, e.g.:.claude/settings.local.jsonDo NOT add a blanketjson"Bash(revx account balances*)", "Bash(revx order open*)"— only add the exact commands the loop needsBash(revx *) - Then start the
/loop
Permission pattern syntax: 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.
Bash(revx account balances*)*&&|Example flow for "every 10 min check my balance and open orders":
- Determine needs: and
revx account balancesrevx order open - Tell the user: "I'll run these two commands each iteration — can I add them to your permission allowlist?"
- On approval, add and
Bash(revx account balances*)viaBash(revx order open*)update-config - Start
/loop 10m check balance and open orders - Each iteration runs two separate calls — no further prompts
Bash
使用周期性运行命令时,每次迭代都会触发权限提示。为避免重复授权:
/looprevx- 确定每次迭代所需的具体命令(例如:
revx、revx account balances)revx order open - 将每个命令作为独立的工具调用——不要用
Bash或管道符拼接。这样能确保每个命令匹配简单的权限规则&& - 向用户展示具体命令,并请求允许将其添加到白名单
- 使用技能将具体的权限规则添加到
update-config中,例如:.claude/settings.local.json不要添加宽泛的json"Bash(revx account balances*)", "Bash(revx order open*)"——仅添加循环所需的精确命令Bash(revx *) - 然后启动
/loop
权限规则语法: 使用通配符——末尾的允许添加可选参数。规则使用空格分隔(而非冒号)。包含或的复合命令会被拆分为子命令,每个子命令独立检查权限。
Bash(revx account balances*)*&&|示例流程:「每10分钟检查我的余额和未结订单」
- 确定需求:和
revx account balancesrevx order open - 告知用户:「每次迭代我会运行这两个命令——能否将它们添加到你的权限白名单?」
- 获得批准后,通过添加
update-config和Bash(revx account balances*)Bash(revx order open*) - 启动
/loop 10m check balance and open orders - 每次迭代运行两个独立的调用——无需再次提示
Bash
Common Workflows
常见工作流
"What's my BTC worth?"
「我的BTC价值多少?」
bash
revx account balances BTC
revx market tickers BTC-USDbash
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 7dbash
revx order history --start-date 7d
revx trade private BTC-USD --start-date 7dRelated Skills
相关技能
| Skill | Purpose |
|---|---|
| Place and cancel orders |
| Check prices and pair constraints |
| Set alerts on prices and indicators |
| API key setup and configuration |
| 技能 | 用途 |
|---|---|
| 下单与撤单 |
| 查看价格与交易对限制 |
| 设置价格与指标提醒 |
| API密钥设置与配置 |