{
  "openapi": "3.0.1",
  "info": {
    "title": "Stock Analyzer: Bullish or Bearish, Support & Resistance",
    "description": "Ask about any stock, ETF, index or crypto and get a direct answer: bullish, neutral or bearish with confidence, the reasons, support and resistance, a volatility stop, the likely 5-day range, trend on three timeframes, risk and next earnings. US, Europe, Japan. No API key.",
    "version": "0.3",
    "x-build-id": "zQtHobSrR1NgvmyIJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tacps126~stock-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tacps126-stock-analyzer",
        "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/tacps126~stock-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-tacps126-stock-analyzer",
        "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/tacps126~stock-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-tacps126-stock-analyzer",
        "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": {
          "tickers": {
            "title": "Stocks",
            "type": "array",
            "description": "Stocks, ETFs, indices, crypto or FX as on Yahoo Finance (AAPL, SPY, ^GSPC, 7203.T, SAP.DE, HSBA.L, MC.PA, BTC-USD, EURUSD=X) or TradingView (NASDAQ:AAPL, TSE:7203). Up to 500.",
            "items": {
              "type": "string"
            }
          },
          "report": {
            "title": "Visual report (charts)",
            "type": "boolean",
            "description": "Also save one page with charts and tables built from this run's data: performance of every ticker over the last year, the latest day's moves, an overview table, factor scores, and per ticker a price chart with the 50 and 200-day averages, support and resistance, today's session and your rules. Open it from the run's Output tab. Charged per 25 tickers in the report (a run with up to 25 is charged once).",
            "default": false
          },
          "range": {
            "title": "History",
            "enum": [
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "How much history the answer reads (2 years by default). The 200-day trend needs at least 1 year.",
            "default": "2y"
          },
          "rulePresets": {
            "title": "Ready-made rules",
            "type": "array",
            "description": "Pick ready-made rules instead of writing them; each is tested like your own and shows up under rules with its name. Both can be used together.",
            "items": {
              "type": "string",
              "enum": [
                "oversold-bounce",
                "overbought-fade",
                "golden-cross",
                "death-cross",
                "macd-bullish-cross",
                "macd-bearish-cross",
                "breakout-on-volume",
                "breakdown-on-volume",
                "pullback-in-uptrend",
                "short-term-dip",
                "bollinger-reentry",
                "supertrend-turns-up",
                "supertrend-turns-down",
                "strong-uptrend",
                "stretched-below-mean",
                "stretched-above-mean"
              ],
              "enumTitles": [
                "Oversold bounce: rsi_14 crosses above 30",
                "Overbought fade: bearish: rsi_14 crosses below 70",
                "Golden cross: sma_50 crosses above sma_200",
                "Death cross: bearish: sma_50 crosses below sma_200",
                "MACD bullish cross: macd_12_26_9 crosses above macd_signal_12_26_9",
                "MACD bearish cross: bearish: macd_12_26_9 crosses below macd_signal_12_26_9",
                "Breakout on volume: close > highest_20[1] and relvol_20 > 1.5",
                "Breakdown on volume: bearish: close < lowest_20[1] and relvol_20 > 1.5",
                "Pullback in uptrend: close > sma_200 and rsi_14 < 40",
                "Short-term dip in uptrend: close > sma_200 and rsi_2 < 10",
                "Back inside lower Bollinger band: close crosses above bb_lower_20_2",
                "Supertrend turns up: supertrend_dir_10_3 crosses above 0",
                "Supertrend turns down: bearish: supertrend_dir_10_3 crosses below 0",
                "Strong uptrend: adx_14 > 25 and plus_di_14 > minus_di_14",
                "Stretched below the mean: zscore_20 < -2",
                "Stretched above the mean: bearish: zscore_20 > 2"
              ]
            }
          },
          "rules": {
            "title": "Your rules",
            "type": "array",
            "description": "Write a rule as plain text, one per line. Shape: [Name =] [bearish:] condition. Name is optional and is only the label you will see in the output (\"Oversold bounce = ...\" names the rule \"Oversold bounce\"). Rules are bullish by default (tested for a rise afterwards); start with bearish: to test for a fall instead. The condition compares columns: open, high, low, close, volume, or any indicator column written name_settings, e.g. rsi_14, sma_200, ema_50, macd_12_26_9, macd_signal_12_26_9, bb_lower_20_2, highest_20, relvol_20, supertrend_dir_10_3 (you do not need to add them under Your indicators first). Words you can use: < > <= >= == !=, and, or, not, crosses above, crosses below, is rising, is falling, + - * /, abs(x), min(a, b), max(a, b), brackets, and x[n] for the value n bars ago. Examples: rsi_14 crosses above 30 (RSI leaves oversold) | bearish: close < sma_200 and rsi_14 > 60 (weak stock bouncing into resistance) | Breakout = close > highest_20[1] and relvol_20 > 1.5 (new 20-bar high on 1.5x usual volume). Each rule returns: how often it fired, how often the price then rose (fell for bearish) after each horizon, the average move, the base rate, the edge over it, and whether it is true now. Full list of indicators and columns in the README under Writing rules.",
            "items": {
              "type": "string"
            }
          },
          "onlyMatching": {
            "title": "Only tickers where a rule is true now",
            "type": "boolean",
            "description": "Screener use: skip tickers where none of your rules is true on the latest bar. You pay only for tickers returned.",
            "default": false
          },
          "fields": {
            "title": "Only these fields",
            "type": "array",
            "description": "Optional. Return only these fields, e.g. verdict, confidence, answer, support, resistance. Ticker and type are always kept.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify proxy on by default. Leave it as is unless you want to use your own proxy.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Verbose logs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}