# Stock Market Finance Data API (TTech API)

Yahoo Finance's public market data as clean JSON: real-time quotes for up to 100 symbols, OHLCV history from 1-minute bars, technical indicators, option chains, financial statements, news, 83 ready-made screeners and earnings calendars. 22 endpoints for stocks, ETFs, funds, indices, crypto, currencies and futures.

Page: https://ttechapi.com/stock-market-data-api

## What it is for

- Trading bots and backtests: Price history from 1-minute bars to the first trade, with indicators.
- Portfolio trackers: Live quotes for a whole watchlist in one request.
- Dashboards and spreadsheets: Market summary, movers, sectors and calendars for reports.
- AI apps and agents: Give an LLM live prices, financials and news.

## Key facts

- 100 symbols per call: /quote takes up to 100 symbols and /spark 20, and each is still one call.
- Indicators computed: SMA, EMA, RSI, MACD, Bollinger Bands and ADX, with the warm-up history fetched for you.
- Fresh and fast: Quotes are cached for only 15 seconds, charts for minutes; fetchedAt shows when the data was fetched.
- Yahoo's field names: Every field Yahoo sends, with its own names, so code written for Yahoo Finance data fits.
- 83 ready screens: Day gainers, most active, undervalued growth and more, or your own filters on about 90 fields.
- Clear errors: statusCode, error and message in every error body. Errors on our side cost nothing.

## REST API

Base URL `https://api.ttechapi.com/v1/stocks`. Send the header `x-api-key: YOUR_API_KEY` with every call. Get the key in the TTech API dashboard.

Endpoints (credits per call):

- `GET /quote` (required: symbols; 1 credit): Real-time quotes of up to 100 symbols: price, change, volume, ranges, market cap, P/E
- `GET /quote-type` (required: symbols; 1 credit): Name, type, exchange and time zone
- `GET /quote-summary` (required: symbol; 1 credit): Profile, statistics, earnings, recommendations, holders and more (44 modules)
- `GET /recommendations` (required: symbol; 1 credit): Similar symbols with a score
- `GET /search` (required: query; 1 credit): Symbols matching a company name or ticker
- `GET /news` (required: query; 1 credit): Latest news for a ticker or text
- `GET /chart` (required: symbol; 1 credit): OHLCV candles, dividends and splits, 1-minute to 3-month bars
- `GET /spark` (required: symbols; 1 credit): Close prices of up to 20 symbols at once
- `GET /indicator` (required: symbol, indicator; 1 credit): SMA, EMA, RSI, MACD, Bollinger Bands or ADX
- `GET /options` (required: symbol; 1 credit): Option chain with bid, ask, volume, open interest and IV
- `GET /financials` (required: symbol; 1 credit): Income statement, balance sheet and cash flow: annual, quarterly or trailing
- `GET /insights` (required: symbol; 1 credit): Technical outlook, valuation and significant developments
- `GET /research-reports` (required: symbol; 1 credit): The 25 newest analyst research reports
- `GET /market-summary` (1 credit): Indices, futures, yields, currencies and crypto of a region
- `GET /market-time` (1 credit): Whether the U.S. market is open, with today's hours
- `GET /trending` (1 credit): Trending symbols of a region
- `GET /screener` (1 credit): One of 83 ready-made screens: DAY_GAINERS, MOST_ACTIVES, ...
- `POST /custom-screener` (required: query; 1 credit): Your own filters on market cap, P/E, sector, volume and more
- `GET /sector` (required: key; 1 credit): A sector: performance, top companies, ETFs and industries
- `GET /industry` (required: key; 1 credit): An industry: performance and top companies
- `GET /calendar` (1 credit): Earnings, IPO, splits or economic-event calendar
- `GET /market-tickers` (1 credit): Yahoo's lists of currencies, commodities, bonds and world indices

Parameters:

- `symbols / symbol` (string): Yahoo symbols, comma-separated: AAPL, VOD.L, RELIANCE.NS, ^GSPC, BTC-USD, EURUSD=X, GC=F
- `interval` (string): 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d (default), 5d, 1wk, 1mo, 3mo
- `range` (string): 1d, 5d, 1mo (default), 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max; or start and end dates
- `indicator` (string): sma, ema, rsi, macd, bbands or adx, with time_period and limit
- `modules, statement, frequency` (string): What /quote-summary and /financials return, e.g. statement=income,cashflow&frequency=quarterly
- `count, offset` (integer): Paging on screeners and calendars, up to 250 a page

Example:

```bash
curl -G "https://api.ttechapi.com/v1/stocks/quote" \
  --data-urlencode "symbols=AAPL" \
  -H "x-api-key: YOUR_API_KEY"
```

Output: Every answer has the same shape; data holds the rows with Yahoo's field names. GET /quote?symbols=AAPL,MSFT (shortened):

- `statusCode, count`: 200 and the number of rows
- `data`: One row per symbol: regularMarketPrice, regularMarketChangePercent, marketCap, trailingPE, ...
- `missing`: Symbols Yahoo does not know
- `errors`: Symbols that failed this time while the others worked; ask again
- `meta`: About the whole answer, such as total on screeners
- `fetchedAt`: When the data was fetched

```json
{
  "statusCode": 200,
  "count": 2,
  "data": [
    {
      "symbol": "AAPL",
      "regularMarketPrice": 351.19,
      "regularMarketChangePercent": -0.79
    },
    {
      "symbol": "MSFT",
      "regularMarketPrice": 475.46,
      "regularMarketChangePercent": -2.41
    }
  ],
  "meta": {},
  "missing": [],
  "errors": {},
  "fetchedAt": "2026-12-02T01:34:04.745Z"
}
```

Errors look like {"statusCode": 404, "error": "NOT_FOUND", "message": "Symbol not found: NOTASYMBOL"}, with HTTP 200; check statusCode.

## Pricing

- From 1 credit per call.
- 300 free credits once, valid for 1 month, no credit card.
- Plans from $14.99/month: https://ttechapi.com/pricing

## Use as an MCP server

- TTech MCP server: `https://mcp.ttechapi.com/mcp` (sign in with your TTech API account).
- Tools for this API: `stocks_search`, `stocks_quotes`, `stocks_history`, `stocks_financials`, `stocks_news`.
- Setup for each AI client: https://ttechapi.com/ai-agents

## Limits

- Every call costs 1 credit, whatever its parameters.
- Prices are as Yahoo has them: quoteSourceName and exchangeDataDelayedBy say whether a price is real-time or delayed.
- Intraday history: 1m for about 7 days, 2m to 90m for about 60 days, 1h for about 2 years.
- An answer over about 5 MB is refused; ask for a shorter range or a larger interval.
- Errors from our side (5xx) are not billed.

## Notes for the assistant

- Never put a real key in code you show; read it from an environment variable.
- Errors come with HTTP 200 and the status in the body; only a wrong key (401) and server errors (5xx) use the HTTP status. Errors from our side are not billed.
- Answers from the API have the headers `x-credits-used` and `x-credits-remaining`. A call the gateway refuses (wrong key, no credits left, too many requests) returns `statusCode`, `error`, `message` and `requestId` in the body and is not charged.
- Yahoo Finance's public data; not affiliated with Yahoo. Not investment advice.
- Support: support@ttechapi.com, Telegram @ttech_support_official.
