Market context for
Nuxt apps.

Use the TickerDB Node.js SDK in Nuxt server routes and API endpoints. Pre-computed financial data with no infrastructure to maintain.

Install the SDK.

Add tickerdb to your Nuxt project. Works with Nuxt server routes and composables.

terminal
npm install tickerdb

Set TICKERDB_KEY in your .env file and pass it into the client when you initialize it.

Works where Nuxt runs server-side.

Call the SDK in server API routes and expose data through composables. Data never touches the client bundle.

Server API Route server/api/summary/[ticker].ts
import { TickerDB } from "tickerdb";

const client = new TickerDB({ apiKey: process.env.TICKERDB_KEY });

export default defineEventHandler(async (event) => {
  const ticker = getRouterParam(event, "ticker");
  const { data } = await client.summary(ticker);
  return data;
});
Composable composables/useMarketData.ts
export const useMarketData = (ticker: string) => {
  return useFetch("/api/summary/" + ticker);
};

Track state changes effortlessly.

Most market data APIs return point-in-time snapshots. TickerDB tracks state transitions — your agent sees what changed, not just what is.

Server API Route server/api/watchlist/changes.ts
import { TickerDB } from "tickerdb";

const client = new TickerDB({ apiKey: process.env.TICKERDB_KEY });

export default defineEventHandler(async () => {
  const { data } = await client.watchlistChanges();

  // each change includes from/to transitions
  // e.g. trend: "downtrend" → "uptrend"
  return data;
});
json
{
  "timeframe": "daily",
  "run_date": "2026-03-28",
  "changes": {
    "AAPL": [
      {
        "field": "rsi_zone",
        "from": "neutral",
        "to": "oversold"
      },
      {
        "field": "trend_direction",
        "from": "uptrend",
        "to": "downtrend"
      }
    ]
  },
  "ticker_context": {
    "AAPL": {
      "last_changed_date": "2026-03-28"
    }
  },
  "tickers_checked": 2,
  "tickers_changed": 1
}

Feed an AI agent.

TickerDB's categorical-first output is designed for LLMs. Feed a summary directly into a prompt — the model already understands terms like "oversold" and "strong_uptrend" without extra context.

Server API Route server/api/briefing/[ticker].ts
import { TickerDB } from "tickerdb";
import Anthropic from "@anthropic-ai/sdk";

const ticker = new TickerDB({ apiKey: process.env.TICKERDB_KEY });
const anthropic = new Anthropic();

export default defineEventHandler(async (event) => {
  const t = getRouterParam(event, "ticker");
  const { data } = await ticker.summary(t);

  const message = await anthropic.messages.create({
    model: "claude-sonnet-4-20250514",
    max_tokens: 1024,
    messages: [{
      role: "user",
      content: `Analyze this market data for ${t} and provide a brief:\n${JSON.stringify(data)}`
    }]
  });

  return { analysis: message.content };
});

What your agent sees.

Every tool returns categorical facts — not raw OHLCV data. Your agent can branch on "oversold" without needing to know what RSI > 70 means.

json
{
  "ticker": "NVDA",
  "data_status": "eod",
  "as_of_date": "2026-04-11",
  "trend": {
    "direction": "strong_uptrend",
    "ma_alignment": "aligned_bullish"
  },
  "momentum": {
    "rsi_zone": "overbought",
    "macd_state": "expanding_positive",
    "direction": "accelerating"
  },
  "volatility": {
    "regime": "normal",
    "regime_trend": "stable"
  },
  "fundamentals": {
    "valuation_zone": "fair_value",
    "pe_vs_historical_zone": "premium",
    "last_earnings_surprise": "beat"
  }
}

What you can call.

Every tool returns pre-computed market-state data: categorical facts plus supporting metadata your agent can reason about immediately.

get_summary

Full market-state snapshot for a single asset: trend, momentum, volatility, volume, extremes, fundamentals, and support/resistance.

get_search

Multi-field filtering across all assets. Build complex queries with arbitrary filter combinations.

get_schema

All queryable fields with types, values, and descriptions. Always free.

get_watchlist

Latest EOD summary data for all tickers in your saved watchlist.

get_watchlist_changes

Field-level diffs for your watchlist since the last pipeline run.

create_webhook

Register a webhook URL for watchlist change notifications.

list_webhooks

List your registered webhook URLs.

delete_webhook

Remove a registered webhook.

Built for how agents consume data.

Market-state data, less prompt engineering

Responses like "rsi_zone": "oversold" are already in a format the model understands. No need to explain what RSI > 70 means.

Compact responses

Tool-call context windows are limited. TickerDB responses are a fraction of the tokens you'd need to pass raw OHLCV data.

Pre-computed daily

No infrastructure to maintain. No cron jobs, no indicator math. TickerDB handles computation and syncing.

Start building.

Try for free. No credit card required.