Skip to content
EndpointsMarket data

Stock Prices

Licensed EOD quotes, OHLC history, technicals, price action, and dividends.

Playground keys are masked and used only for this browser-initiated test. The docs proxy forwards X-API-Key to POST /v1/tools/* and does not store it server-side. Fumadocs may keep the auth value in browser localStorage while this endpoint page is open; StockContext clears it when you leave or unload the page.

POST
/v1/tools/stock_prices

Serve a licensed EOD OHLC history (or latest quote) for a symbol.

The price feed is its own data class with its own provenance (licensed_market_data) and market clock (meta.as_of.market); the vendor name never appears on the wire. An unknown or uncovered symbol — or a feed with no bars in range — returns the SAME flat {available, reason, recovery} refusal envelope as every other tool, never an empty 200.

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request for stock_prices.

Response Body

application/json

application/json

curl -X POST "https://api.stockcontext.com/v1/tools/stock_prices" \  -H "X-API-Key: $STOCKCONTEXT_API_KEY" \  -H "Content-Type: application/json" \  -d '{"symbol":"AAPL","view":"quote"}'
{
  "subject": {
    "entity": {
      "cik": "0000320193",
      "name": "Apple Inc.",
      "entity_type": "operating"
    },
    "security": {
      "security_id": "sec_aapl_common",
      "ticker": "AAPL",
      "trading_currency": "USD"
    }
  },
  "data": {
    "view": "quote",
    "currency": "USD",
    "provenance": "licensed_market_data",
    "as_of_market": "2026-07-01",
    "mode": "eod",
    "market_status": "closed",
    "price": 294.38,
    "day_open": 293.44,
    "day_high": 296.59,
    "day_low": 289.195,
    "volume": "50164232",
    "previous_close": 289.36,
    "change_abs": 5.02,
    "change_pct": 1.73
  },
  "meta": {
    "schema_version": "1",
    "as_of": {
      "market": "2026-07-01"
    },
    "price_basis": "eod_vendor_single_source"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}