一键导入
htx-spot-market
HTX spot market data — ticker / klines / order book / latest trades / currency and symbol metadata.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
HTX spot market data — ticker / klines / order book / latest trades / currency and symbol metadata.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-signal pressure analysis on HTX USDT-M perpetuals — combines funding rate, OI, elite long/short ratio, recent liquidations, and basis into a unified pressure score with squeeze-risk verdict. Public, no API key required.
Top-trader long/short ratio on HTX USDT-M perpetuals — both account-based and position-based ratios, the core sentiment signal that distinguishes "smart money" from retail. Public, no API key.
HTX USDT-M perpetual funding rate — current / market-wide batch / history / estimated next-period klines.
HTX USDT-M perpetual futures account — balance / positions / leverage tiers / adjustment factors / unified account type switching.
HTX USDT-M perpetual futures core market data — contract info / klines / ticker / order book / index price / system status.
HTX USDT-M perpetual futures order management — open / close / TP/SL / trigger orders / modify / cancel.
| name | htx/spot-market |
| version | 2.0.0 |
| description | HTX spot market data — ticker / klines / order book / latest trades / currency and symbol metadata. |
| auth | false |
| risk | low |
Read public spot market data from HTX. No API key required; all endpoints are public.
# Query BTC/USDT latest market data
htx-cli spot-market market-detail-merged -p symbol=btcusdt
# Pull last 100 ETH/USDT 4h klines
htx-cli spot-market kline -p symbol=ethusdt -p period=4hour -p size=100
# Query market-wide tickers
htx-cli spot-market tickers
| Command | HTX endpoint | Description |
|---|---|---|
market-detail-merged | GET /market/detail/merged | Single-symbol real-time summary (latest price + 24h stats) |
market-detail | GET /market/detail | Single-symbol 24h stats detail |
tickers | GET /market/tickers | Market-wide ticker snapshot for all symbols |
kline | GET /market/history/kline | Historical klines (period: 1min / 5min / 15min / 30min / 60min / 4hour / 1day / 1week / 1mon) |
depth | GET /market/depth | Order book depth (type: step0 / step1 / step2 / step3 / step4 / step5) |
trade | GET /market/trade | Latest single trade |
history-trade | GET /market/history/trade | Historical trades (max 2000) |
| Command | HTX endpoint | Description |
|---|---|---|
symbols | GET /v1/common/symbols | List of all tradable symbols (precision, min order size, status) |
currencys | GET /v1/common/currencys | List of all currencies |
currencies-v2 | GET /v2/reference/currencies | Currency detail (with deposit/withdraw status) |
market-status | GET /v2/market-status | Market status (normal / halted / cancel-only) |
timestamp | GET /v1/common/timestamp | Server timestamp |
chains | GET /v1/settings/common/chains | Chain info |
symbol — symbol in lowercase without separators, e.g. btcusdt / ethusdt / solusdtperiod — kline period: 1min 5min 15min 30min 60min 4hour 1day 1week 1monsize — number of records, 1-2000type — depth aggregation precision: step0 (no aggregation) to step5 (coarsest)depth — number of levels: 5 / 10 / 20"How much is BTC right now?"
htx-cli spot-market market-detail-merged -p symbol=btcusdt
# → close field is the latest price
"ETH 4h kline trend"
htx-cli spot-market kline -p symbol=ethusdt -p period=4hour -p size=200
"Top 10 24h gainers"
htx-cli spot-market tickers
# AI Agent parses the data array, sorts by (close-open)/open and takes the top 10
"SOL order book depth"
htx-cli spot-market depth -p symbol=solusdt -p type=step0 -p depth=20
market-detail-merged returns:
{
"ch": "market.btcusdt.detail.merged",
"ts": 1712345678901,
"tick": {
"id": 12345,
"open": 65000.0,
"close": 66100.0,
"high": 66500.0,
"low": 64800.0,
"amount": 12345.67,
"vol": 815432100.5,
"count": 102345,
"bid": [66099.5, 0.5],
"ask": [66100.5, 0.3]
}
}
tickers for one-shot aggregate querieshtx/futures-markethtx/funding-rate / htx/oi-tracker / htx/liquidation-stream)curl -fsSL https://github.com/htx-exchange/htx-skills-hub/releases/latest/download/install.sh | bash -s -- spot-market