revx-trading
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTrading (revx order place
/ revx order cancel
)
revx order placerevx order cancel交易操作(revx order place
/ revx order cancel
)
revx order placerevx order cancelPlace market and limit orders, cancel open orders.
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
Symbols use format with a dash: , , . Check pair constraints with (see skill).
BASE-QUOTEBTC-USDETH-EURSOL-USDrevx market pairsrevx-marketorder place--json--output json下达市价单和限价单,取消未成交订单。
需要身份验证。 执行这些命令前,请确保已安装并配置。如果命令因身份验证相关错误失败——如revx、Auth not configured、No private key found、Authentication failed (401)、Invalid signature,或insecure permissions路径下缺少密钥/配置文件——请立即调用~/.config/revolut-x/技能并自行修复问题。 不要打断用户让他们执行设置步骤。仅当步骤只能由用户完成时(如粘贴API密钥、在Revolut X账户中注册公钥、选择密码短语),才告知用户操作。修复完成后,重试原命令。revx-auth
交易对采用「BASE-QUOTE」格式,用短横线分隔:、、。可通过命令查看交易对约束条件(详见技能)。
BTC-USDETH-EURSOL-USDrevx market pairsrevx-marketorder place--json--output jsonBehavioral Instructions for Claude
Claude 行为指令
Human Confirmation Required
需要用户确认
NEVER execute or without explicit user confirmation. These commands move real money.
revx order placerevx order cancelBefore 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 , warn the user that this cancels every open order and confirm.
revx order cancel --all未经用户明确确认,绝不能执行或命令。 这些命令涉及真实资金操作。
revx order placerevx order cancel执行任何订单命令前,请向用户展示确认摘要:
待下达订单:
- 交易对:BTC-USD
- 方向:买入
- 类型:限价单 @ 95,000美元
- 数量:0.001 BTC
是否继续执行?
仅在用户明确批准(如「是」「继续」「执行」)后,再执行命令。
对于命令,需提醒用户该操作将取消所有未成交订单,并获得用户确认。
revx order cancel --allMissing 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:
- Symbol — which pair? (e.g., )
BTC-USD - Side — buy or sell?
- Size — how much? (for base currency or
--qtyfor quote currency)--quote - Order type — market () or limit (
--market)?--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 () can be omitted unless the user requests them.
--post-only所有必填参数必须由用户提供。若存在缺失,需先询问用户,再构建命令。
每笔订单必填参数:
- 交易对——哪一组交易对?(如)
BTC-USD - 交易方向——买入还是卖出?
- 数量——交易金额?(用指定基础货币数量,或
--qty指定计价货币数量)--quote - 订单类型——市价单()还是限价单(
--market)?--limit <price>
切勿默认这些参数。 如果用户说「买一些BTC」,请询问:
- 购买数量?(以BTC为单位的数量或美元金额)
- 市价单还是限价单?(如果是限价单,价格是多少?)
可选参数(如)除非用户要求,否则可省略。
--post-onlyPlace Orders
下达订单
bash
undefinedbash
undefinedMarket 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 ordersbash
revx order cancel <order-id> # 取消单个订单
revx order cancel --all # 取消所有未成交订单Error Reference
错误参考
| Error | Cause | Fix |
|---|---|---|
| Order rejected (400) | Invalid params or insufficient funds | Check pair constraints via |
| Not found (404) | Invalid order ID | Verify with |
| Rate limit (429) | Too many requests | Wait for |
| 错误信息 | 原因 | 修复方法 |
|---|---|---|
| Order rejected (400) | 参数无效或资金不足 | 通过 |
| Not found (404) | 订单ID无效 | 使用 |
| Rate limit (429) | 请求过于频繁 | 等待 |
Related Skills
相关技能
| Skill | Purpose |
|---|---|
| Check balances, view order status and fills after trading |
| Check prices and pair constraints before trading |
| API key setup and passkey configuration |
| Automated grid trading bot |
| 技能 | 用途 |
|---|---|
| 查看账户余额、交易后的订单状态与成交记录 |
| 交易前查看价格与交易对约束条件 |
| API密钥设置与密钥配置 |
| 自动化网格交易机器人 |