--:--:--LOCAL ·--:--UTC
    US EQUITIESLAST CLOSE
    AAPL$349.21-0.92%
    MSFT$498.30-1.97%
    GOOGL$272.66-3.46%
    AMZN$257.37-3.87%
    NVDA$145.98-3.30%
    META$596.22-3.27%
    TSLA$374.41-2.43%
    NFLX$58.46-2.27%
    BRK.B$572.04-0.45%
    AVGO$346.65-2.09%
    DIS$120.25-1.72%
    SBUX$104.47-4.25%
    MCD$272.35-0.61%
    NKE$34.33-5.45%
    COST$1093.83-0.25%
    WMT$126.04-1.04%
    HD$336.68-0.28%
    KO$96.09-2.04%
    PG$167.85-1.43%
    ORCL$110.57-2.92%
    CRM$183.31-3.72%
    ADBE$221.68-2.00%
    AMD$489.19-7.72%
    INTC$55.72+1.92%
    QCOM$162.01+1.38%
    CSCO$94.70-2.55%
    IBM$223.88-2.03%
    UBER$65.60-4.60%
    ABNB$172.79-4.12%
    SHOP$131.97-5.34%
    PYPL$56.37-2.63%
    COIN$108.87-1.48%
    PLTR$153.68-1.91%
    HOOD$68.65-0.75%
    JPM$320.22-1.20%
    V$402.25-3.12%
    MA$626.50-2.62%
    BAC$48.57-0.70%
    GS$847.53-2.94%
    LLY$1351.12-2.29%
    UNH$330.48-5.55%
    JNJ$267.14-2.04%
    PFE$27.54-1.85%
    XOM$158.93-1.03%
    BA$160.51-1.47%
    BABA$83.31-1.26%
    TSM$352.09-2.90%
    US EQUITIESLAST CLOSE
    AAPL$349.21-0.92%
    MSFT$498.30-1.97%
    GOOGL$272.66-3.46%
    AMZN$257.37-3.87%
    NVDA$145.98-3.30%
    META$596.22-3.27%
    TSLA$374.41-2.43%
    NFLX$58.46-2.27%
    BRK.B$572.04-0.45%
    AVGO$346.65-2.09%
    DIS$120.25-1.72%
    SBUX$104.47-4.25%
    MCD$272.35-0.61%
    NKE$34.33-5.45%
    COST$1093.83-0.25%
    WMT$126.04-1.04%
    HD$336.68-0.28%
    KO$96.09-2.04%
    PG$167.85-1.43%
    ORCL$110.57-2.92%
    CRM$183.31-3.72%
    ADBE$221.68-2.00%
    AMD$489.19-7.72%
    INTC$55.72+1.92%
    QCOM$162.01+1.38%
    CSCO$94.70-2.55%
    IBM$223.88-2.03%
    UBER$65.60-4.60%
    ABNB$172.79-4.12%
    SHOP$131.97-5.34%
    PYPL$56.37-2.63%
    COIN$108.87-1.48%
    PLTR$153.68-1.91%
    HOOD$68.65-0.75%
    JPM$320.22-1.20%
    V$402.25-3.12%
    MA$626.50-2.62%
    BAC$48.57-0.70%
    GS$847.53-2.94%
    LLY$1351.12-2.29%
    UNH$330.48-5.55%
    JNJ$267.14-2.04%
    PFE$27.54-1.85%
    XOM$158.93-1.03%
    BA$160.51-1.47%
    BABA$83.31-1.26%
    TSM$352.09-2.90%
    Plug stock market data into your AI agent — one command: Get your free API key →
    LoginGet API Key
    AI Agent Quickstart

    Give your AI assistant stock market data

    New to APIs? That's fine. Get a free key, paste one prompt into Claude Code, Cursor or Codex, and your assistant fetches company financials, prices and filings for you.

    Start here: paste one prompt

    Three steps. Works in Claude Code, Cursor, Codex or any AI assistant that can make web requests.

    1. 1

      Get a free API key

      Email only, no card. Your key is shown once, so save it somewhere safe.

      Get a free API key
    2. 2

      Paste your key here

      It fills in the prompt. Nothing is sent anywhere; it stays in this browser tab.

    3. 3

      Copy the prompt into your AI assistant

      It reads our API guide, makes a test call, then asks what you're building and helps you write it.

    Prompt for your AI assistant
    I want to use the Stock Market API (stockmarketapi.ai).
    
    My API key is: >>> PASTE YOUR API KEY HERE <<<
    
    1. Read https://stockmarketapi.ai/skill.md to learn the endpoints and conventions. Send my key in the X-API-Key header on every request.
    2. Make one test call to check the key works: GET https://stockmarketapi.ai/api/v1/companies/AAPL/metrics/summary. Show me what came back.
    3. Then ask me what I'm building and help me write the code for it.

    Chat apps without web access can still read the prompt and write the code, but they can't make the test call themselves. Lost your key? It can't be shown again: use Rotate key on your dashboard to get a new one.

    Point your agent at the API

    Three discovery files, most-compact first — feed whichever fits your agent's context budget:

    llms.txt

    The site and API map (llmstxt.org format): exchanges, indices, key endpoints, auth. Best default for chat agents.

    skill.md

    Usage patterns, code examples and conventions for coding agents — installable as a Claude Code skill.

    llms-full.txt

    Every endpoint with parameters, generated from the OpenAPI spec. For agents that plan multi-step queries.

    Prefer the terminal? Get a key, make a call

    Terminal
    # 1. Create a free API key
    curl -X POST https://stockmarketapi.ai/api/v1/auth/keys \
      -H "Content-Type: application/json" \
      -d '{"email": "[email protected]"}'
    
    # 2. Call any endpoint with the key
    curl -H "X-API-Key: YOUR_KEY" \
      https://stockmarketapi.ai/api/v1/companies/AAPL/financials

    Setup for each tool

    Claude Code

    Install the skill file — Claude Code then knows every endpoint, auth flow, and convention.
    Terminal, in your project folder
    mkdir -p .claude/skills/stockmarket-api
    curl -o .claude/skills/stockmarket-api/SKILL.md https://stockmarketapi.ai/skill.md

    Claude Desktop

    Add the skill file (or llms.txt) to a Project's knowledge; Claude uses the documented REST endpoints directly.
    Steps
    1. Download https://stockmarketapi.ai/skill.md
    2. Claude Desktop → Projects → your project → Add to project knowledge
    3. Ask: "Get AAPL's latest financials from the Stock Market API"

    Cursor

    Index the llms.txt map as docs so Cursor autocompletes against real endpoints.
    Steps
    Cursor → Settings → Features → Docs → Add
    URL: https://stockmarketapi.ai/llms.txt
    Then reference @StockMarketAPI in chat.

    OpenAI Codex CLI

    Point AGENTS.md at the full endpoint reference; Codex reads it before calling the API.
    AGENTS.md
    # AGENTS.md
    Stock market data: use the REST API described at https://stockmarketapi.ai/llms-full.txt
    Auth: X-API-Key header (free keys via POST /api/v1/auth/keys).

    Gemini CLI

    Point GEMINI.md at the endpoint reference the same way.
    GEMINI.md
    # GEMINI.md
    Stock market data: use the REST API described at https://stockmarketapi.ai/llms-full.txt
    Auth: X-API-Key header (free keys via POST /api/v1/auth/keys).

    Agentic payments (x402)

    An agent that needs paid-tier data does not have to stop and ask a human for a credit card. The x402 flow settles a gasless USDC payment on Base and returns a Pro API key — two HTTP calls, no browser.

    HTTP
    # Agents upgrade themselves: gasless USDC (Base) via x402
    POST https://stockmarketapi.ai/payments/agent-subscribe
    # 402 response lists payment requirements → sign EIP-712 → resend
    # Two HTTP calls total; returns a Pro API key.
    # Machine-readable pricing: GET https://stockmarketapi.ai/api/v1/agentic/routes

    Full API documentation

    Interactive Swagger UI over every endpoint on this page.

    Frequently Asked Questions

    Do I need to know how to code?
    Not to get started. Create a free API key, paste the prompt on this page into an AI assistant that can make web requests (Claude Code, Cursor or Codex), and it reads the docs, makes the calls and writes the code for you.
    I lost my API key. Can I see it again?
    No. We store only a hash of each key, so it is shown once, when it is created. Use Rotate key on your dashboard to get a new one.
    How does an AI agent get access to the Stock Market API?
    Create a free API key with a single POST to /api/v1/auth/keys (email only, no card) and send it as an X-API-Key header on every request.
    What should I feed my agent so it knows the endpoints?
    Three options, most-compact first: llms.txt (site and API map), skill.md (usage patterns and conventions for coding agents), llms-full.txt (every endpoint with parameters, generated from the OpenAPI schema).
    Can an agent pay for a subscription without a human?
    Yes — POST /payments/agent-subscribe implements the x402 protocol: the agent signs a gasless EIP-712 USDC authorization on Base and receives a Pro API key in two HTTP calls.
    Is the data machine-readable?
    Everything is JSON with per-field source tags and completeness metadata, plus annual-report PDFs converted to markdown for LLM consumption.