{
  "openapi": "3.0.1",
  "info": {
    "title": "Stock Market Data & Technical Analysis",
    "description": "Stock analysis by ticker for US, European and Japanese markets: price history, 25+ indicators, technical rating, support and resistance, pivots, backtested signals, fundamentals, news and sentiment. No API key.",
    "version": "0.4",
    "x-build-id": "MsZbryNVRJCejvitS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tacps126~market-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tacps126-market-data",
        "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~market-data/runs": {
      "post": {
        "operationId": "runs-sync-tacps126-market-data",
        "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~market-data/run-sync": {
      "post": {
        "operationId": "run-sync-tacps126-market-data",
        "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": "Tickers",
            "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
          },
          "include": {
            "title": "Include",
            "type": "array",
            "description": "What to add for each ticker. History adds one row per price bar.",
            "items": {
              "type": "string",
              "enum": [
                "analysis",
                "session",
                "factors",
                "fundamentals",
                "news",
                "sentiment",
                "history"
              ],
              "enumTitles": [
                "Technical analysis (indicators, rating, levels, signals, assessment)",
                "Today's session (pre-market, after hours, parts of the day, VWAP, opening range, gap odds)",
                "Factor scores (momentum, value, quality, low volatility, composite; ranked within your list)",
                "Fundamentals (valuation, margins, analyst target)",
                "News headlines",
                "Sentiment (news + StockTwits)",
                "Price history rows"
              ]
            },
            "default": [
              "analysis",
              "session",
              "fundamentals",
              "news",
              "sentiment"
            ]
          },
          "range": {
            "title": "History",
            "enum": [
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "How much price history to analyze. Longer gives the signal backtests more cases; the 200-day average needs at least 1 year.",
            "default": "2y"
          },
          "interval": {
            "title": "Bar size",
            "enum": [
              "1d",
              "1wk",
              "1h"
            ],
            "type": "string",
            "description": "Daily suits most uses; hourly for short-term levels.",
            "default": "1d"
          },
          "newsPerTicker": {
            "title": "Headlines per ticker",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Newest headlines listed per ticker (sentiment always reads up to 30).",
            "default": 10
          },
          "maxBarsPerTicker": {
            "title": "History rows per ticker",
            "minimum": 1,
            "type": "integer",
            "description": "With Price history rows on: the newest N bars per ticker.",
            "default": 500
          },
          "indicatorVotes": {
            "title": "Show every indicator's vote",
            "type": "boolean",
            "description": "List the 26 indicator votes behind the technical rating.",
            "default": false
          },
          "indicators": {
            "title": "Your indicators",
            "type": "array",
            "description": "Indicator with optional settings: rsi:14, ema:50, macd:12,26,9, bb:20,2, kc:20,2, stoch:14,3,3, stochrsi, adx:14, atr:14, atrp, cci:20, mfi:14, willr:14, roc:10, mom:10, supertrend:10,3, psar, donchian:20, highest:20, lowest:20, stdev:20, zscore:20, relvol:20, vwma:20, hma:20, wma:20, ichimoku, obv, ao, uo, bbp. Each gives columns like rsi_14 or bb_lower_20_2 under values (and on every history row).",
            "items": {
              "type": "string"
            }
          },
          "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"
            }
          },
          "horizons": {
            "title": "Bars ahead to measure",
            "type": "array",
            "description": "For each rule signal, the move measured this many bars later (1 to 250 each).",
            "default": [
              5,
              20
            ]
          },
          "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
          },
          "output": {
            "title": "Output shape",
            "enum": [
              "nested",
              "flat",
              "answer"
            ],
            "type": "string",
            "description": "Flat turns rating.label into a column of its own, and so on. Answer gives a short, direct read per ticker instead of the full data.",
            "default": "nested"
          },
          "fields": {
            "title": "Only these fields",
            "type": "array",
            "description": "Optional. Return only these fields: a path like close, rating.label, indicators.rsi14, fundamentals.peRatio, or a whole section like values, rules, levels. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}