htx/futures-market
HTX USDT-M perpetual futures core market data — contract info / klines / ticker / order book / index price / system status.
What this skill does
# Futures Market Read public market data for HTX USDT-M perpetual futures. **No API key required**. > Specialized data such as funding rate, open interest, liquidations, mark price / basis has been split into dedicated skills. This skill only covers general market data. ## When to use - Query perpetual real-time price, 24h statistics, index price - Pull klines (standard klines, not mark price / premium index) - View order book depth - Check contract metadata (contract size, precision, listing status) - Check exchange system status ## Quick start ```bash # BTC perpetual latest market data htx-cli futures-market detail-merged -p contract_code=BTC-USDT # ETH perpetual 1h klines htx-cli futures-market kline -p contract_code=ETH-USDT -p period=60min -p size=200 # All perpetual contract info htx-cli futures-market contract-info ``` ## Available commands (15 endpoints) ### Market data | Command | HTX endpoint | Description | |---------|--------------|-------------| | `detail-merged` | `GET /linear-swap-ex/market/detail/merged` | Single-contract real-time summary | | `detail-batch-merged` | `GET /linear-swap-ex/market/detail/batch_merged` | Batch real-time summary across contracts | | `kline` | `GET /linear-swap-ex/market/history/kline` | Historical klines | | `depth` | `GET /linear-swap-ex/market/depth` | Order book depth | | `bbo` | `GET /linear-swap-ex/market/bbo` | Best bid/offer | | `trade` | `GET /linear-swap-ex/market/trade` | Latest single trade | | `history-trade` | `GET /linear-swap-ex/market/history/trade` | Historical trades | ### Index and fair-value prices | Command | HTX endpoint | Description | |---------|--------------|-------------| | `index-price` | `GET /linear-swap-api/v1/swap_index` | Real-time index price | > For mark price / premium index / basis klines, use `htx/mark-price` ### Metadata | Command | HTX endpoint | Description | |---------|--------------|-------------| | `contract-info` | `GET /linear-swap-api/v1/swap_contract_info` | Contract metadata | | `query-elements` | `GET /linear-swap-api/v1/swap_query_elements` | Contract elements (precision, size) | | `risk-info` | `GET /linear-swap-api/v1/swap_risk_info` | Platform risk reserve fund | | `funding-rate-cap` | `GET /linear-swap-api/v1/swap_funding_rate_cap_info` | Funding rate upper/lower bounds | ### System status | Command | HTX endpoint | Description | |---------|--------------|-------------| | `timestamp` | `GET /api/v1/timestamp` | Server time | | `heartbeat` | `GET /heartbeat/` | System heartbeat and status | | `transfer-state` | `GET /linear-swap-api/v1/swap_transfer_state` | Transfer switch state | ## Parameter reference - `contract_code` — Contract code, uppercase with hyphen, e.g. `BTC-USDT` / `ETH-USDT` / `SOL-USDT` - `period` — `1min` `5min` `15min` `30min` `60min` `4hour` `1day` `1week` `1mon` - `size` — Number of klines returned, 1-2000 - `type` — Order book aggregation: `step0` to `step19` - `business_type` — `swap` (USDT perpetual) / `futures` (delivery) / `all` ## Typical scenarios **"What is the premium of the BTC perpetual over spot?"** ```bash # Perpetual latest price htx-cli futures-market detail-merged -p contract_code=BTC-USDT # Spot latest price htx-cli spot-market market-detail-merged -p symbol=btcusdt # AI Agent compares the two to compute the premium percentage ``` **"Top coins by ETH perpetual 24h turnover"** ```bash htx-cli futures-market detail-batch-merged -p business_type=swap # Parse and sort by the vol field ``` **"What is the contract size of the BTC perpetual?"** ```bash htx-cli futures-market contract-info -p contract_code=BTC-USDT # contract_size field: BTC-USDT = 0.001 BTC per contract ``` ## Notes - This skill only covers **general market data**. For specialized data, use the dedicated skill: - Funding rate → `htx/funding-rate` - Open interest → `htx/oi-tracker` - Long/short ratio → `htx/elite-positioning` - Liquidation orders → `htx/liquidation-stream` - Mark price / basis → `htx/mark-price` - Settlement / insurance fund → `htx/settlement` - For write operations (order placement, leverage change), use `htx/futures-trading` - For account queries, use `htx/futures-account` ## Installation ```bash curl -fsSL https://github.com/htx-exchange/htx-skills-hub/releases/latest/download/install.sh | bash -s -- futures-market ``` ## Related docs - HTX perpetual futures API: https://huobiapi.github.io/docs/usdt_swap/v1/cn/
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.