HTX Get Technical Indicators
htx_get_technical_indicatorsGet decimal-calculated technical indicators (SMA, EMA, RSI, MACD, KDJ, ATR) from completed HTX candles for spot and perpetual swaps, providing no-repaint signals for trading decisions.
Instructions
Return only the requested, Decimal-calculated technical indicators.
The model chooses which named indicators to inspect; it never calculates them itself. Results are display-rounded only at response time: EMA uses candle price precision plus one decimal, MACD uses it plus three, and RSI/KDJ use two decimal places. Raw K-lines remain available solely through the opt-in advanced compatibility toolset for research and diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | HTX candle interval: 1min, 5min, 15min, 30min, 60min, 4hour, 1day, 1week, or 1mon. | 60min |
| product | Yes | HTX product family: spot or USDT-margined perpetual swap. | |
| indicators | Yes | Indicators to calculate. Use sma:N (or ma:N), ema:N, rsi:N, atr:N, volume_sma:N, bbands:N,multiplier, macd:fast,slow,signal, or kdj:N,k_smoothing,d_smoothing. Example: ['sma:20', 'sma:60', 'rsi:14', 'macd:12,26,9']. Values are calculated deterministically from completed HTX candles. | |
| instrument | Yes | Spot symbol such as 'btcusdt' or swap contract such as 'BTC-USDT'. | |
| candle_size | No | Maximum HTX candles to fetch. It must cover the largest requested indicator lookback; 300 is suitable for most standard indicators. | |
| include_current_candle | No | Include the still-forming candle when true. Defaults to false so decisions use only completed candles and do not repaint. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | ||
| product | Yes | ||
| as_of_ms | Yes | ||
| indicators | Yes | ||
| instrument | Yes | ||
| completed_candles | Yes | ||
| latest_completed_open_ms | Yes | ||
| omitted_incomplete_candles | Yes |