API Reference v1.0.0

Nexvest REST API

Programmatic access to live market data, smart-money signals, and the Nexvest AI research assistant. All responses are JSON unless noted (streaming AI).

Base URLhttps://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api
Endpoints

41 routes

Research tools

89 tools

Quick start
curl 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/quote/NVDA'

Authentication

Protected routes require a valid Supabase session. Send credentials one of two ways:

Session cookie

Sign in at /login — the session cookie is set automatically for same-origin browser requests.

Bearer token

Pass Authorization: Bearer <supabase_access_token> for server-to-server or mobile clients.

Plan limits

PlanLimits
free50 AI questions/day, 5 watchlist symbols, no institutional data.
proUnlimited AI questions, unlimited watchlist, institutional 13F access.
Bearer token example
curl 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/profile/me' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIs...'

Errors & rate limits

All errors return JSON with a consistent shape unless the response is a redirect.

Standard error
{ "error": "Human-readable message" }
StatusMeaning
400Bad request — invalid symbol, params, or body.
401Unauthorized — missing or expired session.
403Forbidden — plan limit or upgradeRequired: true.
404Not found — symbol, tool, or resource missing.
409Conflict — e.g. duplicate watchlist entry.
429Rate limited — includes resetAt (unix ms).
500Internal server error — no stack traces exposed.

Market data

Live quotes, batch pricing, index constituents, and market session status. Most endpoints are public and cache-backed.

GET/quote/{symbol}Public

Single quote

Normalized real-time quote for one ticker — price, change, volume, market cap, and session OHLC.

Parameters

NameInTypeDescription
symbol*pathstringUS equity ticker (1–5 uppercase letters).e.g. NVDA

Response

Normalized Quote object.

Example
{
  "symbol": "NVDA",
  "price": 875.28,
  "change": 12.44,
  "changePercent": 1.44,
  "volume": 42100382,
  "marketCap": 2150000000000,
  "open": 862.10,
  "high": 878.50,
  "low": 859.20,
  "previousClose": 862.84
}

Errors

  • 400 — Invalid symbol format.
  • 404 — Symbol not found.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/quote/NVDA' \
  -H 'Accept: application/json'
GET/quotesPublic

Batch quotes

Fetch up to 25 tickers in one request. Returns an array of normalized Quote objects.

Parameters

NameInTypeDescription
symbols*querystringComma-separated tickers.e.g. NVDA,AAPL,MSFT

Response

Array of Quote objects (empty array if no valid symbols).

Example
[{ "symbol": "NVDA", "price": 875.28, "changePercent": 1.44, ... }]

Errors

  • 400 — More than 25 symbols requested.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/quotes' \
  -H 'Accept: application/json'
GET/market/moversPublic

Market movers

Top 10 gainers, losers, and most-active stocks for the current session.

Response

MoversResponse with gainers, losers, and active arrays.

Example
{
  "gainers": [{ "symbol": "XYZ", "name": "...", "price": 12.4, "changePercent": 18.2 }],
  "losers": [...],
  "active": [...]
}

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/market/movers' \
  -H 'Accept: application/json'
GET/market/statusPublic

Market hours

US exchange session status and next open/close times.

Response

Market hours payload from upstream.

Example
[{ "exchange": "NASDAQ", "isMarketOpen": true, ... }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/market/status' \
  -H 'Accept: application/json'
GET/market/overviewAuth

Market overview bundle

Aggregated macro snapshot for the Apps hub — indices, movers, sectors, treasury, and headlines.

Response

Composite market overview object.

Example
{ "indices": [...], "movers": {...}, "sectors": [...], "treasury": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/market/overview' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/indexesPublic

Index quotes & constituents

Major index quotes or full constituent lists for S&P 500, NASDAQ, or Dow.

Parameters

NameInTypeDescription
whichquerystringquotes (default) | sp500 | nasdaq | dowe.g. quotes

Response

Index quotes array or constituent list depending on which.

Example
[{ "symbol": "^GSPC", "price": 5234.18, "changesPercentage": 0.42 }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/indexes' \
  -H 'Accept: application/json'
GET/historical/{symbol}Public

Price history

End-of-day or intraday OHLCV candles for charting.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. AAPL
intervalquerystringdaily (default) or 1min | 5min | 15min | 30min | 1hour | 4houre.g. daily
fromquerydateStart date YYYY-MM-DD.e.g. 2024-01-01
toquerydateEnd date YYYY-MM-DD.e.g. 2024-06-01

Response

Array of candle objects.

Example
[{ "date": "2024-06-01", "open": 192.1, "high": 194.2, "low": 191.0, "close": 193.5, "volume": 51234000 }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/historical/NVDA' \
  -H 'Accept: application/json'

Company & financials

Company profiles, bundled financial statements, analyst coverage, and ETF analytics.

GET/profile/{symbol}Public

Company profile

Company metadata — name, sector, industry, description, CEO, website, etc.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. META

Response

Profile array (typically one element).

Example
[{ "symbol": "META", "companyName": "Meta Platforms", "sector": "Technology", "mktCap": 1200000000000 }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/profile/NVDA' \
  -H 'Accept: application/json'
GET/company/{symbol}Public

Company bundle

Profile plus executives, peers, share float, and market cap in one call.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. TSLA

Response

Composite company object.

Example
{ "profile": [...], "executives": [...], "peers": [...], "shareFloat": [...], "marketCap": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/company/NVDA' \
  -H 'Accept: application/json'
GET/financials/{symbol}Public

Financial statements bundle

Income statement, balance sheet, cash flow, key metrics, ratios, and growth in parallel.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. AAPL
periodquerystringannual (default) | quartere.g. annual
limitqueryintegerPeriods to return (max 20, default 5).e.g. 5

Response

Six financial arrays keyed by statement type.

Example
{ "income": [...], "balance": [...], "cash": [...], "metrics": [...], "ratios": [...], "growth": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/financials/NVDA' \
  -H 'Accept: application/json'
GET/analyst/{symbol}Public

Analyst coverage

Price targets, consensus, estimates, ratings, upgrades/downgrades, and grade consensus.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. GOOGL

Response

Analyst bundle.

Example
{ "targets": [...], "targetConsensus": {...}, "estimates": [...], "rating": {...}, "upgrades": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/analyst/NVDA' \
  -H 'Accept: application/json'
GET/etf/{symbol}Public

ETF analytics

ETF info, holdings, sector weights, and country weights.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. SPY

Response

ETF bundle.

Example
{ "info": [...], "holdings": [...], "sectors": [...], "countries": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/etf/NVDA' \
  -H 'Accept: application/json'
GET/intelligence/{symbol}Auth

Symbol intelligence (full)

Everything the Apps symbol view needs — quote, chart, valuation, news, smart money, SEC, and more in one payload.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. NVDA

Response

Large composite intelligence object (~20 datasets).

Example
{ "symbol": "NVDA", "quote": {...}, "profile": {...}, "history": [...], "news": [...], "senate": [...], ... }
  • Optimized for the Nexvest Apps UI; prefer granular endpoints for integrations.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/intelligence/NVDA' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/sec/{symbol}Public

SEC filings

Recent SEC filings for a symbol including 10-K, 10-Q, 8-K, and more.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. AMZN

Response

Array of filing metadata with links.

Example
[{ "symbol": "AMZN", "type": "10-K", "filingDate": "2024-02-02", "link": "https://..." }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/sec/NVDA' \
  -H 'Accept: application/json'

News & earnings

Headlines, press releases, earnings history, and call transcripts.

GET/news/{symbol}Public

Symbol news

Recent news articles for a ticker.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. NVDA
limitqueryinteger1–50 (default 10).e.g. 10

Response

Array of NewsArticle objects.

Example
[{ "title": "...", "url": "https://...", "publishedDate": "2024-06-01", "site": "Reuters" }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/news/NVDA' \
  -H 'Accept: application/json'
GET/newsPublic

General market news

Latest market-wide headlines and press releases.

Parameters

NameInTypeDescription
typequerystringgeneral (default) | presse.g. general
limitqueryinteger—e.g. 20

Response

Array of news articles.

Example
[{ "title": "Markets rally on...", "publishedDate": "2024-06-01" }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/news' \
  -H 'Accept: application/json'
GET/earningsPublic

Earnings calendar

Upcoming and recent earnings dates across the market.

Parameters

NameInTypeDescription
fromquerydate—e.g. 2024-06-01
toquerydate—e.g. 2024-06-30

Response

Earnings calendar items.

Example
[{ "symbol": "AAPL", "date": "2024-08-01", "epsEstimated": 1.35 }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/earnings' \
  -H 'Accept: application/json'
GET/earnings/{symbol}Public

Symbol earnings history

Historical reported vs estimated EPS and revenue for one ticker.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. AAPL

Response

Earnings history array.

Example
[{ "date": "2024-05-02", "epsActual": 1.53, "epsEstimated": 1.50, "revenueActual": 90753000000 }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/earnings/NVDA' \
  -H 'Accept: application/json'
GET/transcript/{symbol}Public

Earnings call transcript

Latest or specified earnings call transcript for a symbol.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. MSFT
yearqueryinteger—e.g. 2024
quarterqueryinteger1–4e.g. 2

Response

Transcript object with content.

Example
{ "symbol": "MSFT", "quarter": 2, "year": 2024, "content": "..." }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/transcript/NVDA' \
  -H 'Accept: application/json'

Calendars & macro

Economic events, IPO/dividend/split calendars, sector performance, and treasury data.

GET/calendarPublic

Unified calendar

Single endpoint for earnings, economic, IPO, split, or dividend calendars.

Parameters

NameInTypeDescription
typequerystringearnings (default) | economic | ipo | splits | dividendse.g. economic
fromquerydate—e.g. 2024-06-01
toquerydate—e.g. 2024-06-30

Response

Calendar items for the requested type.

Example
[{ "date": "2024-06-07", "event": "Non-Farm Payrolls", "country": "US" }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/calendar' \
  -H 'Accept: application/json'
GET/economyPublic

Macro snapshot

Economic calendar + treasury rates by default, or a specific economic indicator series.

Parameters

NameInTypeDescription
indicatorquerystringWhen set, returns a single indicator series instead of the bundle.e.g. GDP
fromquerydate—
toquerydate—

Response

Either indicator series or { calendar, treasury } bundle.

Example
{ "calendar": [...], "treasury": [{ "date": "2024-06-01", "year10": 4.25 }] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/economy' \
  -H 'Accept: application/json'
GET/sectorsPublic

Sector performance

Current sector performance, optional history, and sector/industry P/E.

Parameters

NameInTypeDescription
sectorquerystringSector name for historical performance.e.g. Technology
historyquerybooleanSet to 1 to include historical sector performance.e.g. 1

Response

Sector bundle.

Example
{ "current": [...], "history": [...], "sectorPe": [...], "industryPe": [...] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/sectors' \
  -H 'Accept: application/json'
GET/screenerAuth

Stock screener

Filter equities by market cap, price, beta, volume, dividend, sector, and more.

Parameters

NameInTypeDescription
sectorquerystring—e.g. Technology
industryquerystring—
countryquerystring—e.g. US
exchangequerystring—e.g. NASDAQ
marketCapMoreThanquerynumber—e.g. 1000000000
priceMoreThanquerynumber—e.g. 10
betaLowerThanquerynumber—e.g. 1.5
limitqueryinteger—e.g. 50
isEtfqueryboolean—e.g. false

Response

Array of matching symbols with key metrics.

Example
[{ "symbol": "NVDA", "companyName": "NVIDIA", "marketCap": 2150000000000, "sector": "Technology" }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/screener' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Smart money

Congressional trades, insider activity, and institutional holdings.

GET/congressionalAuth

Senate trades

Congressional stock trades from the Senate, optionally filtered by symbol.

Parameters

NameInTypeDescription
symbolquerystringOptional ticker filter.e.g. NVDA

Response

Normalized CongressionalTrade array.

Example
[{
  "transactionDate": "2024-05-15",
  "symbol": "NVDA",
  "representative": "Jane Doe",
  "type": "buy",
  "amount": "$15,001 - $50,000",
  "party": "D",
  "chamber": "senate"
}]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/congressional' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/housePublic

House trades

Congressional stock trades from the House of Representatives.

Parameters

NameInTypeDescription
symbolquerystring—e.g. AAPL

Response

Raw House trade records.

Example
[{ "symbol": "AAPL", "transactionDate": "2024-05-01", "representative": "..." }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/house' \
  -H 'Accept: application/json'
GET/insider/{symbol}Auth

Insider trades

Form 4 insider buys and sells for a symbol.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. TSLA

Response

Insider transaction array.

Example
[{ "symbol": "TSLA", "transactionDate": "2024-05-20", "reportingName": "...", "transactionType": "P-Purchase" }]

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/insider/NVDA' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/institutional/{symbol}ProPro plan required.

Institutional holders

13F institutional ownership — shares held, changes, and weight.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. MSFT

Response

InstitutionalHolding array.

Example
[{ "holder": "Vanguard Group", "shares": 890000000, "change": 1200000, "weightPercent": 8.2 }]

Errors

  • 403 — upgradeRequired: true — Pro plan needed.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/institutional/NVDA' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

AI & chat

Streaming AI research assistant with live tool-calling, plus persisted conversation storage.

POST/askAuth

AI research (streaming)

Send a conversation to the Nexvest AI analyst. Returns a streaming UI message response with optional tool-call steps. Counts against daily question quota on Free.

Request body

Vercel AI SDK UIMessage[] plus optional model and app context.

JSON
{
  "model": "gpt-4o-mini",
  "conversationId": "uuid",
  "context": {
    "source": "app",
    "toolId": "quote",
    "toolLabel": "Live Quote",
    "toolCategory": "Quotes",
    "toolDescription": "Real-time price and change.",
    "symbol": "NVDA",
    "params": { "symbol": "NVDA" }
  },
  "messages": [
    {
      "id": "msg-1",
      "role": "user",
      "parts": [{ "type": "text", "text": "What's NVDA doing today?" }]
    }
  ]
}

Response

text/event-stream (UIMessage stream). Not JSON — use an SSE-capable client or the Vercel AI SDK.

Example
data: {"type":"text-delta","delta":"NVDA is trading at..."}

Errors

  • 400 — messages array is required.
  • 403 — Free plan daily limit (50 questions) reached.
  • 429 — Rate limited — check resetAt in body.
  • Supported models: gpt-4o-mini, gpt-4o, gpt-4.1, gpt-4.1-mini, gpt-4-turbo, o1-mini, o3-mini, claude-haiku-4-5-20251001, claude-sonnet-4-5-20250929, claude-sonnet-4-6, claude-sonnet-5, claude-opus-4-5-20251101, claude-opus-4-6, claude-opus-4-7, claude-opus-4-8, claude-fable-5.
  • When context.source is app, the first turn preloads live data from that tool.

cURL

curl -X POST 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/ask' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ "model": "gpt-4o-mini", "conversationId": "uuid", "context": { "source": "app", "toolId": "quote", "toolLabel": "Live Quote", "toolCategory": "Quotes", "toolDescription": "Real-time price and change.", "symbol": "NVDA", "params": { "symbol": "NVDA" } }, "messages": [ { "id": "msg-1", "role": "user", "parts": [{ "type": "text", "text": "What's NVDA doing today?" }] } ]}'
GET/conversationsAuth

List conversations

All chat conversations for the authenticated user (newest first, max 200).

Response

Conversations array with messages and optional app context.

Example
{
  "conversations": [{
    "id": "uuid",
    "title": "Live Quote · NVDA",
    "model": "gpt-4o-mini",
    "context": { "source": "app", "toolId": "quote", "symbol": "NVDA" },
    "messages": [],
    "createdAt": 1719000000000,
    "updatedAt": 1719003600000
  }]
}

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/conversations' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
POST/conversationsAuth

Save conversation

Upsert a conversation by id. Used by the web app to sync chat history.

Request body

Full conversation snapshot.

JSON
{
  "id": "uuid",
  "title": "NVDA snapshot",
  "model": "gpt-4o-mini",
  "context": null,
  "messages": [],
  "createdAt": 1719000000000
}

Response

Acknowledgement.

Example
{ "ok": true }

Errors

  • 400 — id is required.

cURL

curl -X POST 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/conversations' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ "id": "uuid", "title": "NVDA snapshot", "model": "gpt-4o-mini", "context": null, "messages": [], "createdAt": 1719000000000}'
DELETE/conversations/{id}Auth

Delete conversation

Permanently delete a conversation owned by the authenticated user.

Parameters

NameInTypeDescription
id*pathuuid—e.g. uuid

Response

Empty 200 or error.

Example
{}

cURL

curl -X DELETE 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/conversations/quote' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/historyAuth

Query history (legacy)

Paginated list of past AI Q&A pairs stored in query_history.

Parameters

NameInTypeDescription
limitqueryinteger1–100, default 20.e.g. 20
offsetqueryintegerDefault 0.e.g. 0

Response

HistoryResponse with total count.

Example
{ "history": [{ "id": "uuid", "question": "...", "answer": "...", "createdAt": "..." }], "total": 42 }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/history' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

User & account

Profile, watchlist, and authentication helpers.

GET/profile/meAuth

Current user profile

Authenticated user's plan, quota usage, and profile fields.

Response

UserProfile object.

Example
{
  "id": "uuid",
  "email": "you@example.com",
  "fullName": "Jane Doe",
  "avatarUrl": null,
  "plan": "free",
  "questionsUsedToday": 3,
  "questionsResetAt": "2024-06-01T00:00:00.000Z",
  "createdAt": "2024-01-15T12:00:00.000Z"
}

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/profile/me' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
PATCH/profile/meAuth

Update profile

Update display name and/or avatar URL.

Request body

Partial profile update.

JSON
{ "fullName": "Jane Doe", "avatarUrl": "https://..." }

Response

Updated UserProfile.

Example
{ "id": "uuid", "fullName": "Jane Doe" }

Errors

  • 400 — Invalid request body.

cURL

curl -X PATCH 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/profile/me' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ "fullName": "Jane Doe", "avatarUrl": "https://..." }'
GET/watchlistAuth

Get watchlist

User watchlist with live quote snapshots attached.

Response

Watchlist array.

Example
{ "watchlist": [{ "symbol": "NVDA", "name": "NVIDIA", "quote": { "price": 875.28 } }] }

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/watchlist' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
POST/watchlistAuthFree: max 5 symbols.

Add to watchlist

Add a validated symbol. Free plan limited to 5 symbols.

Request body

Symbol to add.

JSON
{ "symbol": "NVDA" }

Response

Created WatchlistItem (201).

Example
{ "symbol": "NVDA", "name": "NVIDIA Corporation", "addedAt": "..." }

Errors

  • 403 — Free plan watchlist limit reached.
  • 404 — Symbol not found.
  • 409 — Symbol already in watchlist.

cURL

curl -X POST 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/watchlist' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ "symbol": "NVDA" }'
DELETE/watchlist/{symbol}Auth

Remove from watchlist

Remove a symbol from the authenticated user's watchlist.

Parameters

NameInTypeDescription
symbol*pathstring—e.g. NVDA

Response

Empty success.

Example
{}

cURL

curl -X DELETE 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/watchlist/NVDA' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/auth/callbackPublic

OAuth callback

Supabase auth callback — exchanges ?code= for a session cookie and redirects. Not for direct API use.

Parameters

NameInTypeDescription
code*querystringSupabase auth code.
nextquerystringRedirect path after login.e.g. /dashboard

Response

302 redirect to next or /login?error=…

Example
HTTP/1.1 302 Found
Location: /dashboard
  • Browser-only. Sign in via /login instead of calling this directly.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/auth/callback' \
  -H 'Accept: application/json'

Tools & raw proxy

Run any Nexvest research tool by id, or call allowlisted upstream paths through the authenticated proxy.

GET/tools/{id}Auth

Run research tool

Execute a tool from the Nexvest catalog (90+ tools available in Apps and AI chat). Pass tool-specific query params.

Parameters

NameInTypeDescription
id*pathstringTool id from the catalog (e.g. quote, income-statement, senate-trades).e.g. quote
symbolquerystringRequired for most symbol-scoped tools.e.g. AAPL

Response

Tool metadata plus raw data payload.

Example
{
  "tool": { "id": "quote", "label": "Live Quote", "category": "Quotes" },
  "data": [{ "symbol": "AAPL", "price": 193.5 }],
  "path": "/quote?symbol=AAPL"
}

Errors

  • 400 — Missing required tool params.
  • 404 — Unknown tool id.
  • Browse all tool ids in the Apps hub at /apps.
  • Prefer /tools/{id} over /fmp/* for typed, catalog-validated access.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/tools/quote' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
GET/fmp/{...path}Auth

Raw data proxy

Authenticated passthrough to allowlisted upstream stable endpoints. Query string forwarded as-is.

Parameters

NameInTypeDescription
path*pathstringUpstream path segment(s), e.g. quote, income-statement.e.g. quote

Response

Raw upstream JSON array or object.

Example
[{ "symbol": "AAPL", "price": 193.5 }]

Errors

  • 400 — Path not on allowlist.
  • Allowlist covers quotes, financials, news, calendars, smart money, SEC, ETFs, crypto/forex, and more.
  • Use /tools/{id} when possible — it validates params against the tool catalog.

cURL

curl -X GET 'https://nexvest-dbmejsf8f-doctormathxs-projects.vercel.app/api/fmp/quote' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Tool catalog

Every tool below is callable via GET /tools/{id} with the tool's required query parameters. These same tools power the Apps hub and AI chat tool-calling.

Quotes

IDLabel
quoteLive Quote
quote-shortQuote (Short)
batch-quoteBatch Quote
aftermarket-quoteAfter-hours Quote

Company

IDLabel
profileCompany Profile
executivesKey Executives
peersStock Peers
shares-floatShares Float
employeesEmployee Count
marketcapMarket Cap
marketcap-histHistorical Market Cap

Charts

IDLabel
historical-lightDaily Prices (Light)
historical-fullDaily Prices (Full)
intraday-5mIntraday 5-min
intraday-1hIntraday 1-hour
stock-price-changePrice Change Snapshot

Financials

IDLabel
income-statementIncome Statement
balance-sheetBalance Sheet
cash-flowCash Flow
key-metricsKey Metrics
key-metrics-ttmKey Metrics (TTM)
ratiosFinancial Ratios
ratios-ttmRatios (TTM)
growthFinancial Growth
dcfDiscounted Cash Flow
levered-dcfLevered DCF
owner-earningsOwner Earnings
enterprise-valuesEnterprise Values
financial-scoresFinancial Scores

Analyst

IDLabel
price-targetPrice Targets
price-target-consensusTarget Consensus
estimatesAnalyst Estimates
ratingRating Snapshot
rating-historyRating History
gradesUpgrades / Downgrades
grades-consensusGrade Consensus

News

IDLabel
news-stockStock News
news-generalGeneral Market News
news-pressPress Releases
news-forexForex News
news-cryptoCrypto News

Earnings

IDLabel
earningsEarnings History
transcript-datesTranscript Dates
transcriptEarnings Call Transcript

Calendars

IDLabel
earnings-calendarEarnings Calendar
ipo-calendarIPO Calendar
dividends-calendarDividends Calendar
splits-calendarSplits Calendar
economic-calendarEconomic Calendar

Macro

IDLabel
treasuryTreasury Rates
economic-indicatorEconomic Indicator

Smart Money

IDLabel
senate-tradesSenate Trades
house-tradesHouse Trades
insider-searchInsider Trades
insider-latestInsider — Latest
insider-statsInsider Statistics
institutional-summaryInstitutional Holders
institutional-latestInstitutional — Latest

SEC

IDLabel
sec-filingsSEC Filings
sec-8kSEC 8-K Feed

Markets

IDLabel
movers-gainersTop Gainers
movers-losersTop Losers
movers-activeMost Active
market-hoursMarket Hours

Sectors

IDLabel
sector-performanceSector Performance
sector-peSector PE
industry-performanceIndustry Performance

Indexes

IDLabel
sp500S&P 500 Constituents
nasdaqNASDAQ Constituents
dowDow Constituents

ETFs

IDLabel
etf-holdingsETF Holdings
etf-infoETF Info
etf-sectorETF Sector Weights
etf-countryETF Country Weights

Search

IDLabel
search-symbolSearch by Symbol
search-nameSearch by Name
screenerStock Screener

Lists

IDLabel
stock-listAll Stocks List
etf-listAll ETFs List
actively-tradingActively Trading
available-sectorsAvailable Sectors
available-industriesAvailable Industries
available-exchangesAvailable Exchanges

Crypto/Forex

IDLabel
crypto-quotesCrypto Quotes (Batch)
forex-quotesForex Quotes (Batch)
commodity-quotesCommodity Quotes
crypto-listCryptocurrency List
forex-listForex List
commodities-listCommodities List