Loading...
Loading...
Compare original and translation side by side
revx strategy gridrevx strategy gridBacktest, optimize, and run automated grid trading strategies.
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
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
BASE-QUOTEBTC-USDETH-EURSOL-USDrevx strategy grid backtest BTC-USD
revx strategy grid backtest BTC-USD --levels 10 --range 10 --investment 1000
revx strategy grid backtest ETH-USD --days 60 --interval 4h
revx strategy grid backtest BTC-USD --split
revx strategy grid backtest BTC-USD --json| Flag | Default | Description |
|---|---|---|
| 5 | Grid levels per side (2-25) |
| 10 | Grid range +/- % from mid price |
| 1000 | Capital in quote currency |
| 3 | Historical data period |
| 1m | Candle resolution |
| off | Split investment across buy and sell levels (market-buy base for levels above start price) |
Bashrevx strategy grid backtest BTC-USD
revx strategy grid backtest BTC-USD --levels 10 --range 10 --investment 1000
revx strategy grid backtest ETH-USD --days 60 --interval 4h
revx strategy grid backtest BTC-USD --split
revx strategy grid backtest BTC-USD --json| 标识(Flag) | 默认值 | 说明 |
|---|---|---|
| 5 | 每侧的网格层数(2-25) |
| 10 | 网格范围:相对于中间价的±百分比 |
| 1000 | 投入资金(计价货币) |
| 3 | 历史数据周期 |
| 1m | K线分辨率 |
| 关闭 | 在买入和卖出层之间拆分资金(对高于起始价格的层级进行市价买入基础货币) |
Bashrevx strategy grid optimize BTC-USD
revx strategy grid optimize BTC-USD --investment 5000 --days 60
revx strategy grid optimize BTC-USD --levels 5,10,15,20 --ranges 3,5,10 --top 5
revx strategy grid optimize BTC-USD --split| Flag | Default | Description |
|---|---|---|
| 3,5,8,10,15 | Level counts to test |
| 3,5,7,10,12,15,20 | Range percentages to test |
| 10 | Top results to display |
| 1000 | Capital in quote currency |
| 3 | Historical data period |
| 1m | Candle resolution |
| off | Split investment across buy and sell levels (market-buy base for levels above start price) |
revx strategy grid optimize BTC-USD
revx strategy grid optimize BTC-USD --investment 5000 --days 60
revx strategy grid optimize BTC-USD --levels 5,10,15,20 --ranges 3,5,10 --top 5
revx strategy grid optimize BTC-USD --split| 标识(Flag) | 默认值 | 说明 |
|---|---|---|
| 3,5,8,10,15 | 待测试的网格层数列表 |
| 3,5,7,10,12,15,20 | 待测试的网格范围百分比列表 |
| 10 | 显示的最优结果数量 |
| 1000 | 投入资金(计价货币) |
| 3 | 历史数据周期 |
| 1m | K线分辨率 |
| 关闭 | 在买入和卖出层之间拆分资金(对高于起始价格的层级进行市价买入基础货币) |
revx strategy grid run--dry-runGrid bot to launch:
- Pair: BTC-USD
- Investment: $500
- Levels: 10 per side
- Range: +/-5%
- Mode: LIVE (real orders)
This will place real buy and sell orders. Shall I proceed?
--dry-run--dry-runrevx strategy grid run即将启动的网格机器人:
- 交易对:BTC-USD
- 投入资金:500美元
- 网格层数:每侧10层
- 网格范围:±5%
- 模式:实盘(LIVE)(真实订单)
这将下达真实的买入和卖出订单。是否继续?
--dry-run--dry-runBefore going live, I'd recommend a dry run first to verify the grid setup:bashrevx strategy grid run BTC-USD --investment 500 --levels 10 --range 5 --dry-runThis simulates the bot without placing real orders. Want to start with a dry run?
--dry-run在启动实盘前,我建议先进行模拟运行以验证网格设置:bashrevx strategy grid run BTC-USD --investment 500 --levels 10 --range 5 --dry-run这会模拟机器人运行,但不会下达真实订单。要不要先进行模拟运行?
--investmentrevx strategy grid run BTC-USD --investment 500
revx strategy grid run BTC-USD --levels 10 --range 5 --investment 1000 --interval 15
revx strategy grid run BTC-USD --investment 500 --split
revx strategy grid run BTC-USD --investment 100 --dry-run
revx strategy grid run BTC-USD --investment 500 --reset| Flag | Default | Description |
|---|---|---|
| required | Capital in quote currency |
| 5 | Grid levels per side (2-25) |
| 5 | Grid range +/- % from mid |
| off | Split investment across buy and sell levels (market-buy base for levels above current price) |
| 10 | Polling interval in seconds |
| off | Simulate without real orders |
| off | Discard saved state, start fresh |
revx-telegram--investmentrevx strategy grid run BTC-USD --investment 500
revx strategy grid run BTC-USD --levels 10 --range 5 --investment 1000 --interval 15
revx strategy grid run BTC-USD --investment 500 --split
revx strategy grid run BTC-USD --investment 100 --dry-run
revx strategy grid run BTC-USD --investment 500 --reset| 标识(Flag) | 默认值 | 说明 |
|---|---|---|
| 必填 | 投入资金(计价货币) |
| 5 | 每侧的网格层数(2-25) |
| 5 | 网格范围:相对于中间价的±百分比 |
| 关闭 | 在买入和卖出层之间拆分资金(对高于当前价格的层级进行市价买入基础货币) |
| 10 | 轮询间隔(秒) |
| 关闭 | 模拟运行,不下达真实订单 |
| 关闭 | 丢弃已保存的状态,重新开始 |
revx-telegramrevx strategy grid run--dry-runBashrun_in_background: trueReadTaskStop{ "command": "revx strategy grid run BTC-USD --investment 500 --levels 10 --range 5", "run_in_background": true }Started grid bot for BTC-USD in the background. I'll check for updates periodically.If you'd like to see the live dashboard, run this in a separate terminal:bashrevx strategy grid run BTC-USD --investment 500 --levels 10 --range 5Press Ctrl+C to stop (gracefully cancels open orders).
revx strategy grid run--dry-runBashrun_in_background: trueReadTaskStop{ "command": "revx strategy grid run BTC-USD --investment 500 --levels 10 --range 5", "run_in_background": true }已在后台启动BTC-USD的网格机器人。我会定期检查更新。如果你想查看实时仪表盘,请在单独终端中运行以下命令:bashrevx strategy grid run BTC-USD --investment 500 --levels 10 --range 5按下Ctrl+C可停止(会优雅取消未成交订单)。
--splitWould you like to use split mode ()?--split
- Without split — all capital goes to buy orders below the current price. Best for uptrending markets where you expect price to dip into buy levels and bounce back.
- With split — capital is divided across both buy and sell levels. A market buy at the start price funds sell positions above. Best for ranging/sideways markets where price oscillates around the current level.
--split--split你是否要使用拆分模式()?--split
- 不使用拆分——所有资金投入当前价格下方的买入订单。最适合上涨趋势市场,此时你预期价格会回落到买入区间后反弹。
- 使用拆分——资金分配到买入和卖出层。在起始价格进行市价买入,为上方的卖出仓位提供资金。最适合震荡/横盘市场,此时价格在当前水平附近波动。
--split--split--split--split--split--split--splitundefinedundefined
Use `--split` consistently across all steps if you want to test and run with split investment.
---
如果你想测试并运行拆分资金模式,请在所有步骤中一致使用`--split`。
---| Skill | Purpose |
|---|---|
| Get Telegram notifications for grid bot events |
| Check prices and pair data before configuring a grid |
| Check balances and order status |
| Manual order placement (grid bot places orders automatically) |
| API key setup and configuration |
| 技能 | 用途 |
|---|---|
| 获取网格机器人事件的Telegram通知 |
| 配置网格前查看价格和交易对数据 |
| 查看余额和订单状态 |
| 手动下单(网格机器人自动下单) |
| API密钥设置和配置 |