# Yahoo Finance Options, Max Pain & Quant Signals API (`quantradar/yahoo-finance-options-quant`) Actor

Ultra-fast Yahoo Finance options & quant API (50 tickers in 3s).
Get live quotes, Max Pain, ATM IV, expected move, unusual options activity, Wilder RSI(14), earnings surprises & AI signals.

- **URL**: https://apify.com/quantradar/yahoo-finance-options-quant.md
- **Developed by:** [QuantRadar Labs](https://apify.com/quantradar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ticker intelligence processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yahoo Finance Quant & Options Intelligence API

High-speed, zero-browser **Yahoo Finance API** built for algorithmic traders, quantitative analysts, and AI agents (MCP / LLM pipelines).

Instead of dumping raw, bloated HTML or slow browser scrapes, this Actor queries Yahoo Finance JSON endpoints asynchronously and computes **ready-to-use technicals, options analytics (Max Pain, ATM IV, Straddle Expected Move, Unusual Activity), fundamentals, earnings surprises, and automated trading signals** in a single call.

### Why Use This Actor Over Standard Yahoo Finance Scrapers?

- **Blazing Fast & Low Cost:** Direct async HTTP/2 engine with zero headless browsers. Processes **50 tickers (including full options chains, 1Y history, fundamentals, and news) in ~3.3 seconds** without requiring proxies.
- **Derived Options Intelligence:** Automatically calculates **Max Pain strike**, **Put/Call Volume & OI ratios**, **ATM Implied Volatility**, **Straddle-Implied Expected Move (%)**, and filters **Top 5 Unusual Options Activity (Vol/OI ≥ 2.0x)** so LLM context windows don't overflow.
- **TradingView-Compatible Technicals:** Wilder's **RSI(14)**, **SMA 20/50/200**, **Golden/Death Cross** regime, **20D/60D annualized historical volatility**, 52-week drawdown, and 20-day volume spike ratio.
- **Multi-Asset & Edge-Case Safe:** Supports US equities, ETFs (`SPY`, `QQQ`, `SCHD`, `TLT`), crypto (`BTC-USD`, `ETH-USD`), indices (`^GSPC`), global stocks (`005930.KS`), and auto-normalizes dot share classes (`BRK.B` → `BRK-B`).
- **Pay Only for Successful Tickers:** Invalid symbols return a structured error record with `exit_code: 0` and are **never charged**.

***

### Input Example

````json
{
  "tickers": ["NVDA", "AAPL", "SPY", "BRK.B", "BTC-USD"],
  "includeTechnicals": true,
  "includeOptions": true,
  "includeEarningsAndNews": true,
  "includeRawHistory": false,
  "maxConcurrency": 5
}



# Actor input Schema

## `tickers` (type: `array`):

List of Yahoo Finance symbols (e.g. AAPL, NVDA, PCT, SPY, BTC-USD).
## `includeTechnicals` (type: `boolean`):

Compute RSI(14), SMA 20/50/200, golden/death cross, 20D historical volatility, and volume spike ratio from 1Y daily bars.
## `includeOptions` (type: `boolean`):

Compute Put/Call ratios, Max Pain strike, ATM IV, straddle-implied expected move, and unusual options activity for the nearest expiration.
## `includeEarningsAndNews` (type: `boolean`):

Fetch next earnings date, average EPS surprise over the last 4 quarters, and recent headlines.
## `includeRawHistory` (type: `boolean`):

Attach the last 30 daily OHLCV bars to each output item. Keep false for slimmer LLM/MCP payloads.
## `maxConcurrency` (type: `integer`):

Number of tickers processed in parallel. Keep 2-3 to avoid Yahoo Finance rate limits.
## `proxyConfiguration` (type: `object`):

Recommended for large batches to avoid cloud IP 429 blocks from Yahoo Finance.

## Actor input object example

```json
{
  "tickers": [
    "NVDA",
    "AAPL",
    "PCT"
  ],
  "includeTechnicals": true,
  "includeOptions": true,
  "includeEarningsAndNews": true,
  "includeRawHistory": false,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
````

# Actor output Schema

## `dataset` (type: `string`):

Structured JSON records per requested ticker.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "NVDA",
        "AAPL",
        "PCT"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("quantradar/yahoo-finance-options-quant").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tickers": [
        "NVDA",
        "AAPL",
        "PCT",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("quantradar/yahoo-finance-options-quant").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "NVDA",
    "AAPL",
    "PCT"
  ]
}' |
apify call quantradar/yahoo-finance-options-quant --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quantradar/yahoo-finance-options-quant"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Zdv5i8xJCRdMWbweV/builds/hqasgRe7xo1T3Ltac/openapi.json
