{
  "id": "surf.market.price-indicator",
  "object": "tool",
  "name": "Technical Indicator",
  "summary": "Returns a technical indicator for a trading pair on a given exchange and interval.",
  "description": "Returns a technical indicator for a trading pair on a given exchange and interval. Modes: Set from/to for time-series; Omit for latest value only Indicator-specific tuning via options (e.g. period:7, fast_period:8,slow_period:21,signal_period:5, period:10,stddev:1.5). Available indicators: rsi, macd, ema, sma, bbands, stoch, adx, atr, cci, obv, vwap, dmi, ichimoku, supertrend.\n\nRaw surf#market/price-indicator endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.asksurf.ai/data-api/market/price-indicator).",
  "category": "lookup",
  "hosted_by": "Surf",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "surf",
      "name": "Surf",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "surf_market_price-indicator",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "indicator": {
            "type": "string",
            "enum": [
              "rsi",
              "macd",
              "ema",
              "sma",
              "bbands",
              "stoch",
              "adx",
              "atr",
              "cci",
              "obv",
              "vwap",
              "dmi",
              "ichimoku",
              "supertrend"
            ],
            "description": "Technical indicator name. Can be rsi, macd, ema, sma, bbands, stoch, adx, atr, cci, obv, vwap, dmi, ichimoku, or supertrend. Example: rsi."
          },
          "symbol": {
            "type": "string",
            "minLength": 1,
            "description": "Trading pair as BTC/USDT or bare symbol like BTC. Example: BTC."
          },
          "interval": {
            "default": "1d",
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "2h",
              "4h",
              "12h",
              "1d",
              "1w"
            ],
            "description": "Candlestick interval — bucket size for each point in the indicator series: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 12h, 1d, or 1w. This endpoint uses interval only; it does NOT accept time_range. Use from/to to bound the series. Example: 1d. Defaults to \"1d\"."
          },
          "exchange": {
            "default": "binance",
            "type": "string",
            "enum": [
              "binance",
              "bybit",
              "coinbase",
              "kraken"
            ],
            "description": "Exchange for price data. Can be binance, bybit, coinbase, or kraken. Example: binance. Defaults to \"binance\"."
          },
          "from": {
            "type": "string",
            "minLength": 1,
            "description": "Start of time range. When set, returns time-series instead of latest value. Accepts Unix seconds (1704067200) or date string (2024-01-01). Example: 2024-01-01."
          },
          "to": {
            "type": "string",
            "minLength": 1,
            "description": "End of time range. Defaults to now when from is set. Accepts Unix seconds (1706745600) or date string (2024-02-01). Example: 2024-02-01."
          },
          "options": {
            "type": "string",
            "minLength": 1,
            "description": "Indicator-specific options as comma-separated key:value pairs. Available options by indicator: period — lookback period for rsi (default 14), sma (default 20), ema (default 20), bbands (default 20), adx (default 14), atr (default 14), cci (default 20), dmi (default 14), stoch (default 14), supertrend (default 10). stddev — standard deviation for bbands (default 2). multiplier — multiplier for supertrend (default 3). fast_period — MACD fast EMA (default 12). slow_period — MACD slow EMA (default 26). signal_period — MACD signal smoothing (default 9). Examples: period:7, period:200, fast_period:8,slow_period:21,signal_period:5, period:10,stddev:1.5. Example: period:7."
          }
        },
        "required": [
          "indicator",
          "symbol"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "queryParams"
    ],
    "additionalProperties": false
  },
  "kind": "endpoint"
}