{
 "aiax_version": "0.1",
 "section_id": "tasignal",
 "purpose": "TASignal: Technical indicators for any crypto asset on closed 15m/1h/4h/1d candles: RSI 14, MACD 12/26/9 with cross, EMA 20/50/200, SMA 20, Bollinger Bands 20/2 (%b, bandwidth), ATR 14 and ATR %, ADX 14 with +DI/-DI, stochastic %K, annualized realized volatility, volume vs 20-bar average, 20-bar high/low; plus a descriptive technical bias score (-100..100) with components, trend (up/down/mixed) and regime (trending/ranging). Candles from Hyperliquid, dYdX v4 fallback. Not financial advice.",
 "inputs": {
  "type": "object",
  "properties": {
   "symbol": {
    "type": "string",
    "description": "Base asset ticker, e.g. BTC, ETH, SOL, HYPE (BTC-PERP, ETH-USD and SOLUSDT are accepted too)"
   },
   "timeframe": {
    "type": "string",
    "enum": [
     "15m",
     "1h",
     "4h",
     "1d"
    ],
    "description": "Candle timeframe: 15m, 1h, 4h or 1d (default 1h; risk default 4h)"
   }
  },
  "required": [
   "symbol"
  ]
 },
 "outputs": {
  "type": "object",
  "properties": {
   "symbol": {
    "type": "string"
   },
   "timeframe": {
    "type": "string"
   },
   "source": {
    "type": "string"
   },
   "market": {
    "type": "string"
   },
   "candles_used": {
    "type": "integer"
   },
   "last_closed_at": {
    "type": "string"
   },
   "last_price": {
    "type": "integer"
   },
   "indicators": {
    "type": "object",
    "properties": {
     "close": {
      "type": "integer"
     },
     "ema_20": {
      "type": "number"
     },
     "ema_50": {
      "type": "number"
     },
     "ema_200": {
      "type": "number"
     },
     "sma_20": {
      "type": "number"
     },
     "rsi_14": {
      "type": "number"
     },
     "macd": {
      "type": "object",
      "properties": {
       "line": {
        "type": "number"
       },
       "signal": {
        "type": "number"
       },
       "histogram": {
        "type": "number"
       },
       "cross": {
        "type": "string"
       }
      }
     },
     "bollinger_20_2": {
      "type": "object",
      "properties": {
       "upper": {
        "type": "number"
       },
       "middle": {
        "type": "number"
       },
       "lower": {
        "type": "number"
       },
       "percent_b": {
        "type": "number"
       },
       "bandwidth_pct": {
        "type": "number"
       }
      }
     },
     "atr_14": {
      "type": "number"
     },
     "atr_pct": {
      "type": "number"
     },
     "adx_14": {
      "type": "object",
      "properties": {
       "adx": {
        "type": "number"
       },
       "plus_di": {
        "type": "number"
       },
       "minus_di": {
        "type": "number"
       }
      }
     },
     "stochastic_k_14": {
      "type": "number"
     },
     "realized_vol_annual_pct": {
      "type": "number"
     },
     "volume_vs_20_avg": {
      "type": "number"
     },
     "change_pct": {
      "type": "object",
      "properties": {
       "bars_1": {
        "type": "number"
       },
       "bars_24": {
        "type": "number"
       }
      }
     },
     "high_20": {
      "type": "integer"
     },
     "low_20": {
      "type": "integer"
     },
     "notes": {
      "type": "array",
      "items": {}
     }
    }
   },
   "signal": {
    "type": "object",
    "properties": {
     "bias": {
      "type": "string"
     },
     "score": {
      "type": "integer"
     },
     "trend": {
      "type": "string"
     },
     "regime": {
      "type": "string"
     },
     "components": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "points": {
         "type": "integer"
        },
        "why": {
         "type": "string"
        }
       }
      }
     },
     "note": {
      "type": "string"
     }
    }
   },
   "confidence": {
    "type": "string"
   },
   "sources_failed": {
    "type": "array",
    "items": {}
   },
   "checked_at": {
    "type": "string"
   },
   "tier": {
    "type": "string"
   },
   "disclaimer": {
    "type": "string"
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.005",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "GET /tasignal/v1/lite, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "GET",
    "url": "https://api.youraitools.co/tasignal/v1/lite",
    "query": {
     "symbol": "BTC",
     "timeframe": "1h"
    }
   },
   "response": {
    "symbol": "BTC",
    "timeframe": "1h",
    "source": "hyperliquid",
    "market": "BTC",
    "candles_used": 300,
    "last_closed_at": "2026-10-22T19:00:00.000Z",
    "last_price": 81399,
    "indicators": {
     "close": 81381,
     "ema_20": 82179.416,
     "ema_50": 82607.493,
     "ema_200": 82541.062,
     "sma_20": 82305.95,
     "rsi_14": 30.65,
     "macd": {
      "line": -550.39178,
      "signal": -449.65055,
      "histogram": -100.74123,
      "cross": "none"
     },
     "bollinger_20_2": {
      "upper": 83991.316,
      "middle": 82305.95,
      "lower": 80620.584,
      "percent_b": 0.226,
      "bandwidth_pct": 4.095
     },
     "atr_14": 443.84296,
     "atr_pct": 0.545,
     "adx_14": {
      "adx": 46.16,
      "plus_di": 8.15,
      "minus_di": 35.13
     },
     "stochastic_k_14": 22.64,
     "realized_vol_annual_pct": 30.4,
     "volume_vs_20_avg": 0.926,
     "change_pct": {
      "bars_1": 0.22,
      "bars_24": -3.554
     },
     "high_20": 84459,
     "low_20": 80911,
     "notes": []
    },
    "signal": {
     "bias": "strong_bearish",
     "score": -84,
     "trend": "mixed",
     "regime": "trending",
     "components": [
      {
       "name": "ema_20_vs_50",
       "points": -20,
       "why": "EMA20 below EMA50"
      },
      {
       "name": "price_vs_ema_200",
       "points": -20,
       "why": "price below EMA200"
      },
      {
       "name": "macd_histogram",
       "points": -15,
       "why": "MACD below signal"
      },
      {
       "name": "rsi_14",
       "points": -10,
       "why": "RSI below 50"
      },
      {
       "name": "adx_direction",
       "points": -15,
       "why": "trend strength ADX 46.16 (-DI leads)"
      },
      {
       "name": "bollinger_percent_b",
       "points": 0,
       "why": "inside the bands"
      }
     ],
     "note": "Descriptive summary of the indicators above on closed candles; not a prediction or a recommendation to trade."
    },
    "confidence": "high",
    "sources_failed": [],
    "checked_at": "2026-10-22T19:00:54.379Z",
    "tier": "lite",
    "disclaimer": "Not financial advice. Past performance does not guarantee future results. Technical indicators, risk metrics and backtests describe historical prices only; they are not predictions or trade recommendations. TASignal never trades, holds funds or keys."
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/tasignal/v1/lite",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/tasignal/mcp",
   "openapi": "https://api.youraitools.co/tasignal/openapi.json"
  }
 }
}
