{
  "openapi": "3.0.1",
  "info": {
    "title": "TA Signals Kit: Crypto Indicators for AI Agents",
    "description": "Live crypto technical analysis for AI agents: 200+ indicators, divergences, SuperTrend, UT Bot, Squeeze, FVG and liquidity-sweep zones. Pay per symbol.",
    "version": "0.1",
    "x-build-id": "jYr9byBBy7dNQcANU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gleaming_carp~ta-signals-kit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gleaming_carp-ta-signals-kit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/gleaming_carp~ta-signals-kit/runs": {
      "post": {
        "operationId": "runs-sync-gleaming_carp-ta-signals-kit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/gleaming_carp~ta-signals-kit/run-sync": {
      "post": {
        "operationId": "run-sync-gleaming_carp-ta-signals-kit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Crypto spot pairs, up to 25 per run. Any format works: BTCUSDT, ETH-USDT, SOL/USDC, or just BTC (assumes USDT). Each symbol analyzed successfully is one billed result; symbols that fail are returned with an error and are not charged. Stocks/ETFs are not supported in this version.",
            "items": {
              "type": "string"
            }
          },
          "timeframe": {
            "title": "Timeframe",
            "enum": [
              "1m",
              "5m",
              "15m",
              "1h",
              "4h",
              "1d"
            ],
            "type": "string",
            "description": "Candle timeframe. Only closed candles are used.",
            "default": "1h"
          },
          "lookback": {
            "title": "Lookback (candles)",
            "minimum": 300,
            "maximum": 5000,
            "type": "integer",
            "description": "How many closed candles to fetch and compute on (300-5000). Z-scores use a 250-candle window, so 1000+ gives more stable values; long multi-timeframe features (e.g. daily SMA200 on a 1h chart) need more history and are null when there is not enough.",
            "default": 1000
          },
          "featureGroups": {
            "title": "Feature groups",
            "type": "array",
            "description": "Which feature families to return. All are computed on the same candles; this only controls the output. 'sweeps' fetches extra 1-minute candles (see Sweep history).",
            "items": {
              "type": "string",
              "enum": [
                "indicators",
                "price_action",
                "divergences",
                "liquidity",
                "chart_patterns",
                "multi_timeframe",
                "sessions",
                "fvg",
                "supertrend_ut",
                "squeeze",
                "vix_fix",
                "sweeps"
              ],
              "enumTitles": [
                "Indicators (full ta library: RSI, MACD, ADX, Bollinger, Keltner, Ichimoku, OBV, MFI...)",
                "Price action & candlestick patterns",
                "Divergences (RSI, MACD, OBV)",
                "Liquidity levels & sweeps (swings, equal highs/lows, prev day/week)",
                "Chart patterns (double top/bottom, H&S, flags, compression)",
                "Multi-timeframe context",
                "Sessions & day of week",
                "Fair value gaps (4h / 1D)",
                "SuperTrend & UT Bot",
                "Squeeze Momentum",
                "Williams Vix Fix",
                "Major/minor liquidity-sweep classifier (1-minute data)"
              ]
            },
            "default": [
              "indicators",
              "price_action",
              "divergences",
              "liquidity",
              "chart_patterns",
              "multi_timeframe",
              "sessions",
              "fvg",
              "supertrend_ut",
              "squeeze",
              "vix_fix",
              "sweeps"
            ]
          },
          "historyBars": {
            "title": "History rows (for ML)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "1 = only the last closed candle. Up to 300 = also return a 'history' array with the selected features for the last N candles (handy as a feature matrix for machine learning). Raw prices are not included in history.",
            "default": 1
          },
          "sweepDays": {
            "title": "Sweep history (days of 1m candles)",
            "minimum": 3,
            "maximum": 16,
            "type": "integer",
            "description": "Days of 1-minute candles used by the sweep classifier (levels live up to 14 days). Only used when 'sweeps' is selected.",
            "default": 10
          },
          "exchange": {
            "title": "Data source",
            "enum": [
              "auto",
              "binance",
              "okx",
              "bingx"
            ],
            "type": "string",
            "description": "Where to fetch candles from (free public market-data endpoints, no API key).",
            "default": "auto"
          },
          "symbol": {
            "title": "Single symbol (shortcut for AI agents)",
            "type": "string",
            "description": "Optional. If set, only this symbol is analyzed (the Symbols list is ignored). Handy when calling this Actor as an MCP tool."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}