revx-market

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Market Data (
revx market
)

市场数据(
revx market

Query currencies, trading pairs, live prices, historical candles, and order book depth.
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
. Use
revx market pairs
to see all valid pairs.

查询币种、交易对、实时价格、历史K线图以及订单簿深度。
需要认证。运行这些命令前,请确保已安装并配置
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
。使用
revx market pairs
命令查看所有有效交易对。

Currencies & Pairs

币种与交易对

bash
revx market currencies                 # All currencies (symbol, name, type, scale, status)
revx market currencies fiat            # Fiat currencies only
revx market currencies crypto          # Crypto currencies only
revx market currencies --filter BTC,ETH  # Filter by specific symbols
revx market pairs                      # All pairs (base, quote, min/max size, status)
revx market pairs --filter BTC-USD,ETH-USD  # Filter by specific pairs

bash
revx market currencies                 # 所有币种(符号、名称、类型、精度、状态)
revx market currencies fiat            # 仅法币币种
revx market currencies crypto          # 仅加密货币币种
revx market currencies --filter BTC,ETH  # 按指定符号筛选
revx market pairs                      # 所有交易对(基准币、计价币、最小/最大交易规模、状态)
revx market pairs --filter BTC-USD,ETH-USD  # 按指定交易对筛选

Tickers

行情报价

bash
revx market tickers                    # All tickers (bid, ask, mid, last)
revx market tickers --symbols BTC-USD,ETH-USD
revx market tickers BTC-USD            # Single ticker (key-value display)

bash
revx market tickers                    # 所有行情报价(买价、卖价、中间价、最新成交价)
revx market tickers --symbols BTC-USD,ETH-USD
revx market tickers BTC-USD            # 单个行情报价(键值对显示)

Candles

K线图

bash
revx market candles BTC-USD                              # Default: 1h interval
revx market candles BTC-USD --interval 5m                # 5-minute candles
revx market candles BTC-USD --since 7d --until today     # Last 7 days
revx market candles BTC-USD --since 2025-04-14           # Since specific ISO date
revx market candles BTC-USD --since 5m --interval 1m     # Last 5 minutes, 1m candles
revx market candles ETH-USD --interval 4h --since 30d
Intervals:
1m
,
5m
,
15m
,
30m
,
1h
,
4h
,
1d
,
2d
,
4d
,
1w
,
2w
,
4w
(or raw minutes)
Time formats: Relative (
7d
,
1w
,
4h
,
30m
,
5m
,
today
,
yesterday
), ISO date (
2025-04-14
), Unix epoch ms
Default behavior: When
--since
and
--until
are omitted, fetches the maximum available history for the given interval (up to 50,000 candles).

bash
revx market candles BTC-USD                              # 默认:1小时时间间隔
revx market candles BTC-USD --interval 5m                # 5分钟K线图
revx market candles BTC-USD --since 7d --until today     # 过去7天
revx market candles BTC-USD --since 2025-04-14           # 从指定ISO日期开始
revx market candles BTC-USD --since 5m --interval 1m     # 过去5分钟,1分钟K线图
revx market candles ETH-USD --interval 4h --since 30d
时间间隔选项
1m
5m
15m
30m
1h
4h
1d
2d
4d
1w
2w
4w
(或原始分钟数)
时间格式:相对时间(
7d
1w
4h
30m
5m
today
yesterday
)、ISO日期(
2025-04-14
)、Unix时间戳(毫秒)
默认行为:当未指定
--since
--until
参数时,将获取该时间间隔下的最大可用历史数据(最多50,000条K线)。

Order Book

订单簿

bash
revx market orderbook BTC-USD          # Top 10 levels (default)
revx market orderbook BTC-USD --limit 20
Depth: 1–20 levels.

bash
revx market orderbook BTC-USD          # 前10档(默认)
revx market orderbook BTC-USD --limit 20
深度范围:1-20档。

Related Skills

相关技能

SkillPurpose
revx-trading
Act on market data — place orders
revx-monitor
Set alerts based on prices and indicators
revx-account
Check balances before trading
revx-auth
API key setup and configuration
技能用途
revx-trading
根据市场数据执行操作——下单
revx-monitor
根据价格和指标设置警报
revx-account
交易前查看账户余额
revx-auth
API密钥设置与配置