revx-trading

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Trading (
revx order place
/
revx order cancel
)

交易操作(
revx order place
/
revx order cancel

Place market and limit orders, cancel open orders.
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
. Check pair constraints with
revx market pairs
(see
revx-market
skill).
order place
supports
--json
or
--output json
for machine-readable output.

下达市价单和限价单,取消未成交订单。
需要身份验证。 执行这些命令前,请确保已安装并配置
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
。可通过
revx market pairs
命令查看交易对约束条件(详见
revx-market
技能)。
order place
命令支持
--json
--output json
参数,以生成机器可读的输出结果。

Behavioral Instructions for Claude

Claude 行为指令

Human Confirmation Required

需要用户确认

NEVER execute
revx order place
or
revx order cancel
without explicit user confirmation.
These commands move real money.
Before running any order command, present a confirmation summary to the user:
Order to place:
  • Pair: BTC-USD
  • Side: buy
  • Type: limit @ $95,000
  • Size: 0.001 BTC
Shall I proceed?
Only execute after the user explicitly approves (e.g., "yes", "go ahead", "do it").
For
revx order cancel --all
, warn the user that this cancels every open order and confirm.
未经用户明确确认,绝不能执行
revx order place
revx order cancel
命令。
这些命令涉及真实资金操作。
执行任何订单命令前,请向用户展示确认摘要:
待下达订单:
  • 交易对:BTC-USD
  • 方向:买入
  • 类型:限价单 @ 95,000美元
  • 数量:0.001 BTC
是否继续执行?
仅在用户明确批准(如「是」「继续」「执行」)后,再执行命令。
对于
revx order cancel --all
命令,需提醒用户该操作将取消所有未成交订单,并获得用户确认。

Missing Parameters — Always Ask, Never Guess

参数缺失时——务必询问,切勿猜测

All required parameters must come from the user. If any are missing, ask for them before building the command.
Required for every order:
  1. Symbol — which pair? (e.g.,
    BTC-USD
    )
  2. Side — buy or sell?
  3. Size — how much? (
    --qty
    for base currency or
    --quote
    for quote currency)
  4. Order type — market (
    --market
    ) or limit (
    --limit <price>
    )?
Never assume defaults for these parameters. If the user says "buy some BTC", ask:
  • How much? (quantity in BTC or dollar amount)
  • Market order or limit? (if limit, at what price?)
Optional flags (
--post-only
) can be omitted unless the user requests them.

所有必填参数必须由用户提供。若存在缺失,需先询问用户,再构建命令。
每笔订单必填参数:
  1. 交易对——哪一组交易对?(如
    BTC-USD
  2. 交易方向——买入还是卖出?
  3. 数量——交易金额?(用
    --qty
    指定基础货币数量,或
    --quote
    指定计价货币数量)
  4. 订单类型——市价单(
    --market
    )还是限价单(
    --limit <price>
    )?
切勿默认这些参数。 如果用户说「买一些BTC」,请询问:
  • 购买数量?(以BTC为单位的数量或美元金额)
  • 市价单还是限价单?(如果是限价单,价格是多少?)
可选参数(如
--post-only
)除非用户要求,否则可省略。

Place Orders

下达订单

bash
undefined
bash
undefined

Market order (buy 0.001 BTC at best price)

市价单(以最优价格买入0.001 BTC)

revx order place BTC-USD buy --qty 0.001 --market
revx order place BTC-USD buy --qty 0.001 --market

Limit order (buy 0.001 BTC at $95,000 or better)

限价单(以95,000美元或更低价格买入0.001 BTC)

revx order place BTC-USD buy --qty 0.001 --limit 95000
revx order place BTC-USD buy --qty 0.001 --limit 95000

Post-only limit (maker only, cancelled if would take)

仅挂单限价单(仅做市商模式,若会立即成交则取消订单)

revx order place BTC-USD buy --qty 0.001 --limit 95000 --post-only
revx order place BTC-USD buy --qty 0.001 --limit 95000 --post-only

Quote-sized order (buy $500 worth of BTC at market)

计价货币金额订单(以市价买入价值500美元的BTC)

revx order place BTC-USD buy --quote 500 --market

**Arguments:** `<symbol> <side>`
- `symbol`: `BASE-QUOTE` format (e.g., `BTC-USD`, `ETH-EUR`)
- `side`: `buy` or `sell` (case-insensitive)

**Flags:**

| Flag | Description |
|---|---|
| `--qty <amount>` | Size in base currency (e.g., 0.001 for BTC) |
| `--quote <amount>` | Size in quote currency (e.g., 500 for USD) |
| `--market` | Market order (required unless `--limit`) |
| `--limit <price>` | Limit price (required unless `--market`) |
| `--post-only` | Post-only execution (limit orders only) |

Must specify either `--qty` or `--quote` (not both).

---
revx order place BTC-USD buy --quote 500 --market

**参数:** `<symbol> <side>`
- `symbol`:「BASE-QUOTE」格式(如`BTC-USD`、`ETH-EUR`)
- `side`:`buy`或`sell`(不区分大小写)

**选项:**

| 选项 | 说明 |
|---|---|
| `--qty <amount>` | 基础货币数量(如BTC为0.001) |
| `--quote <amount>` | 计价货币金额(如USD为500) |
| `--market` | 市价单(若未指定`--limit`则必填) |
| `--limit <price>` | 限价价格(若未指定`--market`则必填) |
| `--post-only` | 仅挂单执行(仅适用于限价单) |

必须指定`--qty`或`--quote`中的一个(不可同时指定)。

---

Cancel Orders

取消订单

bash
revx order cancel <order-id>           # Cancel a single order
revx order cancel --all                # Cancel all open orders

bash
revx order cancel <order-id>           # 取消单个订单
revx order cancel --all                # 取消所有未成交订单

Error Reference

错误参考

ErrorCauseFix
Order rejected (400)Invalid params or insufficient fundsCheck pair constraints via
revx market pairs
Not found (404)Invalid order IDVerify with
revx order open
(see
revx-account
skill)
Rate limit (429)Too many requestsWait for
retryAfter
duration

错误信息原因修复方法
Order rejected (400)参数无效或资金不足通过
revx market pairs
查看交易对约束条件
Not found (404)订单ID无效使用
revx order open
验证(详见
revx-account
技能)
Rate limit (429)请求过于频繁等待
retryAfter
时长后重试

Related Skills

相关技能

SkillPurpose
revx-account
Check balances, view order status and fills after trading
revx-market
Check prices and pair constraints before trading
revx-auth
API key setup and passkey configuration
revx-strategy
Automated grid trading bot
技能用途
revx-account
查看账户余额、交易后的订单状态与成交记录
revx-market
交易前查看价格与交易对约束条件
revx-auth
API密钥设置与密钥配置
revx-strategy
自动化网格交易机器人