htx-spot-market
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHTX Spot Market
HTX现货市场
Public spot market data from HTX. No authentication required. Agent may call these endpoints freely without user confirmation.
来自HTX的公开现货市场数据。无需身份验证。 Agent可无需用户确认自由调用这些接口。
When to use this skill
何时使用该Skill
Load this skill when the user asks about:
- Current price of a spot symbol (e.g. ,
btcusdt)ethusdt - K-line / OHLC data, chart data, candles
- Order book depth, bid/ask, best bid/offer
- Recent trades, trade history
- Listed symbols, supported currencies, chain info
- Server time, market status (open / halted / cancel-only)
- 24h market overview, top gainers/losers
当用户询问以下内容时加载此Skill:
- 现货交易对的当前价格(例如 、
btcusdt)ethusdt - K线/OHLC数据、图表数据、蜡烛图
- 订单簿深度、买卖盘、最优买卖报价
- 最新交易记录、交易历史
- 已上线交易对、支持的币种、链信息
- 服务器时间、市场状态(开放/暂停/仅允许撤单)
- 24小时市场概览、涨幅/跌幅榜
Underlying tool
底层工具
This skill drives the binary. The binary must be on (or at ). Binary location in the source repo:
htx-cli$PATH$HTX_CLI_BINhtx-cli/agent-harness-go/bin/htx-cliAlways pass so output is machine-parseable.
--json该Skill驱动 二进制文件。该二进制文件必须位于 (或 )路径下。源码仓库中的二进制文件位置:
htx-cli$PATH$HTX_CLI_BINhtx-cli/agent-harness-go/bin/htx-cli请始终传递 参数,以便输出可被机器解析。
--jsonEndpoint catalog (15)
接口目录(15个)
Reference Data (7)
参考数据(7个)
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | Market status (normal / halted / cancel-only) |
| 2 | GET | | | All trading pair configuration |
| 3 | GET | | | All currency configuration |
| 4 | GET | | | Symbol precision info |
| 5 | GET | | | Spot market symbol config |
| 6 | GET | | | Currency + chain info |
| 7 | GET | | | Server timestamp (ms) |
| 序号 | 请求方法 | 接口地址 | CLI调用命令 | 描述 |
|---|---|---|---|---|
| 1 | GET | | | 市场状态(正常/暂停/仅允许撤单) |
| 2 | GET | | | 所有交易对配置信息 |
| 3 | GET | | | 所有币种配置信息 |
| 4 | GET | | | 交易对精度信息 |
| 5 | GET | | | 现货市场交易对配置 |
| 6 | GET | | | 币种+链信息 |
| 7 | GET | | | 服务器时间戳(毫秒) |
Market Data (8)
市场数据(8个)
| # | Method | Endpoint | CLI invocation | Description |
|---|---|---|---|---|
| 1 | GET | | | K-line (OHLC). Periods: |
| 2 | GET | | | Latest ticker (price / volume / 24h stats) |
| 3 | GET | | | All-market ticker snapshot |
| 4 | GET | | | Order book depth |
| 5 | GET | | | Latest trades |
| 6 | GET | | | Historical trades |
| 7 | GET | | | 24h market overview |
| 8 | GET | | | Full order book |
| 序号 | 请求方法 | 接口地址 | CLI调用命令 | 描述 |
|---|---|---|---|---|
| 1 | GET | | | K线(OHLC)。周期选项: |
| 2 | GET | | | 最新行情报价(价格/成交量/24小时统计数据) |
| 3 | GET | | | 全市场行情报价快照 |
| 4 | GET | | | 订单簿深度 |
| 5 | GET | | | 最新交易记录 |
| 6 | GET | | | 历史交易记录 |
| 7 | GET | | | 24小时市场概览 |
| 8 | GET | | | 完整订单簿 |
Typical queries
典型查询示例
- "What's the current BTC price?" →
htx-cli spot market ticker btcusdt --json - "ETH/USDT 4-hour klines" →
htx-cli spot market klines ethusdt --period 4hour --size 200 --json - "SOL order book, best bid/ask" →
htx-cli spot market depth solusdt --type step0 --json - "Top gainers in the last 24h?" → then sort client-side by change %
htx-cli spot market tickers --json - "Is the market open?" →
htx-cli spot market status --json
- "BTC当前价格是多少?" →
htx-cli spot market ticker btcusdt --json - "ETH/USDT的4小时K线" →
htx-cli spot market klines ethusdt --period 4hour --size 200 --json - "SOL的订单簿,最优买卖报价" →
htx-cli spot market depth solusdt --type step0 --json - "过去24小时涨幅榜?" → 然后在客户端按涨跌幅百分比排序
htx-cli spot market tickers --json - "市场是否开放?" →
htx-cli spot market status --json
Notes for the agent
Agent注意事项
- All endpoints here are public — never attach or signatures.
AccessKeyId - Emit on every call so you can parse the result.
--json - When the user says a symbol like "BTC", map it to unless they name another quote currency.
btcusdt - Klines: default to size
1dayif the user doesn't specify.100 - For "full orderbook vs depth": use for top-of-book / small N levels; use
depthfor full snapshot.orderbook
- 此处所有接口均为公开接口——切勿附加 或签名。
AccessKeyId - 每次调用都要加上 参数,以便解析结果。
--json - 当用户提及类似"BTC"的币种时,默认映射为 ,除非用户指定了其他计价币种。
btcusdt - K线:如果用户未指定,默认使用周期,数量为
1day。100 - 关于"完整订单簿 vs 深度":若仅需顶部订单/少量层级,使用;若需完整快照,使用
depth。orderbook
References
参考资料
- — symbol / currency quick reference
references/symbols.md
- — 交易对/币种快速参考文档
references/symbols.md