{
  "version": "1.0",
  "serviceName": "Kronos BTC Forecast",
  "description": "Real-time BTC-USD technical signal API with x402 micropayments. Computes EMA/RSI/MACD/ATR composite signal from live Binance OHLCV data.",
  "tags": [
    "bitcoin",
    "forecast",
    "finance",
    "crypto"
  ],
  "endpoints": [
    {
      "path": "/api/v1/forecast/btc",
      "method": "GET",
      "description": "BTC-USD directional signal: EMA(20/50), RSI(14), MACD(12,26,9), ATR(14) composite",
      "price": "$0.001",
      "currency": "USDC",
      "network": "eip155:8453",
      "payTo": "0x36038e1d712c5e39f35952164ec58ec2b96caee7",
      "params": {
        "horizon": {
          "in": "query",
          "type": "string",
          "enum": [
            "1h",
            "4h",
            "24h"
          ],
          "default": "1h",
          "description": "Candle interval: 1h, 4h, or 24h"
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "asset": {
            "type": "string",
            "example": "BTC-USD"
          },
          "horizon": {
            "type": "string",
            "example": "1h"
          },
          "source": {
            "type": "string",
            "example": "Binance"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "price": {
            "type": "object",
            "properties": {
              "close": {
                "type": "number"
              },
              "atr": {
                "type": "number"
              }
            }
          },
          "indicators": {
            "type": "object",
            "properties": {
              "ema20": {
                "type": "number"
              },
              "ema50": {
                "type": "number"
              },
              "rsi14": {
                "type": "number"
              },
              "macd": {
                "type": "number"
              },
              "macd_signal": {
                "type": "number"
              },
              "macd_hist": {
                "type": "number"
              },
              "atr14": {
                "type": "number"
              }
            }
          },
          "forecast": {
            "type": "object",
            "properties": {
              "up_prob": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "range_low": {
                "type": "number"
              },
              "range_high": {
                "type": "number"
              },
              "horizon_bars": {
                "type": "integer"
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            }
          },
          "model": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          }
        }
      }
    },
    {
      "path": "/api/v1/signals/btc",
      "method": "GET",
      "description": "BTC derivatives intelligence: funding rate, open interest, basis, derived signals",
      "price": "$0.001",
      "currency": "USDC",
      "network": "eip155:8453",
      "payTo": "0x36038e1d712c5e39f35952164ec58ec2b96caee7",
      "params": {},
      "outputSchema": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean"
          },
          "asset": {
            "type": "string",
            "example": "BTC-USD"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "data_source": {
            "type": "string",
            "example": "bybit"
          },
          "samples": {
            "type": "integer"
          },
          "funding_rate": {
            "type": "number",
            "nullable": true
          },
          "funding_rate_annualized": {
            "type": "number",
            "nullable": true
          },
          "mark_price": {
            "type": "number",
            "nullable": true
          },
          "index_price": {
            "type": "number",
            "nullable": true
          },
          "basis": {
            "type": "number",
            "nullable": true
          },
          "open_interest": {
            "type": "number",
            "nullable": true
          },
          "volume_24h": {
            "type": "number",
            "nullable": true
          },
          "next_funding_time": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "oi_change_1h": {
            "type": "object",
            "properties": {
              "abs": {
                "type": "number",
                "nullable": true
              },
              "pct": {
                "type": "number",
                "nullable": true
              }
            }
          },
          "funding_trend": {
            "type": "string",
            "enum": [
              "rising",
              "falling",
              "flat",
              "insufficient_data"
            ]
          },
          "read": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          }
        }
      }
    }
  ],
  "openapi": "/api/openapi.json",
  "stats": "/api/stats",
  "disclaimer": "Informational only, not financial advice. Probabilistic model output. No warranty. Use at your own risk.",
  "terms": "Informational only, not financial advice. Probabilistic model output. No warranty. Use at your own risk."
}