# Darvas

> Read-only multi-asset market intelligence, financial data APIs, chart context, and connected account analytics without order execution.

## Machine-readable contract

- [MCP](https://darvas.app/mcp): MCP 2026-07-28 endpoint for any MCP client with OAuth sign-in (supports `?mode=code`, default, and `?mode=full` / `?codemode=false`)
- [Darvas API MCP](https://api.darvas.app/mcp): Streamable HTTP MCP 2026-07-28 endpoint (also supporting 2025-11-25) for SEC filings, financials, macro, crypto order flow, DeFi, and prediction markets (also at https://darvas.app/api/data/v1/mcp; supports Code Mode `?mode=code` with `search`, `execute`, and `whoami`, `?mode=progressive`, `?mode=full`, and `?toolsets=...`, authenticated with `X-API-KEY` or Bearer token)
- [Darvas API OpenAPI](https://api.darvas.app/openapi.yaml): canonical OpenAPI specification for the Darvas API
- [MCP server documentation](https://docs.darvas.app/mcp-server): setup guides for Claude, ChatGPT, Codex, Cursor, VS Code, Windsurf, Devin, and Code Mode (`search` and `execute`)
- [Full MCP and tools reference](https://darvas.app/llms-full.txt): every live public tool URL, Darvas API Code Mode examples, and MCP tools
- [Agent catalog](https://darvas.app/.well-known/agents.json): site discovery metadata
- [Agent card](https://darvas.app/.well-known/agent.json): Darvas agent capabilities and skills
- [OAuth protected resource](https://darvas.app/.well-known/oauth-protected-resource/mcp): MCP resource and scope metadata
- [OAuth authorization server](https://darvas.app/.well-known/oauth-authorization-server): authorization and token metadata

Claude remote MCP uses https://darvas.app/mcp with public OAuth client ID `https://claude.ai/api/mcp/darvas-client`.

## Public market and tool hubs

- [All market tools](https://darvas.app/tools): directory of every live crypto, equity, SEC, macro, calendar, and calculator tool
- [Crypto markets](https://darvas.app/crypto): Spot prices, market cap, ETF flows, stablecoins, sentiment, and DeFi.
- [Crypto derivatives](https://darvas.app/crypto/derivatives): Perpetual funding rates, open interest, liquidations, long/short, options, and order flow.
- [Stocks & ETFs](https://darvas.app/stocks): Stock screener, sector heatmap, daily movers, ETFs, short interest, and FTDs.
- [SEC & insiders](https://darvas.app/sec): SEC EDGAR search, live 8-K events, Form 4 insider trades, 13F portfolios, and super investors.
- [Macro & rates](https://darvas.app/macro): US Treasury yield curve, central bank rates, CPI inflation, GDP, unemployment, COT, and GPU prices.
- [Markets & calendars](https://darvas.app/markets): Global indices, commodities, forex, prediction markets, and economic, earnings, and IPO calendars.
- [Calculators & converters](https://darvas.app/calculators): Position size, liquidation, and R:R calculators, live crypto converter, and platform comparisons.
- [Compare platforms](https://darvas.app/compare): side-by-side platform comparisons for charting, crypto derivatives, and financial data

## Bulk data and tool pages

Public web tool pages on darvas.app are rate limited per IP for bulk traffic; verified search crawlers and AI agents pass freely.
For bulk or programmatic market, SEC, macro, or crypto data, use the Darvas API (https://api.darvas.app) or the Darvas API MCP server (https://api.darvas.app/mcp).

Support: support@darvas.app

## Operations and policies

- [Service status](https://darvas.app/api/health)
- [Support](https://darvas.app/support)
- [Terms](https://darvas.app/terms)
- [Privacy and policies](https://darvas.app/policies)

Every terminal MCP call needs an OAuth access token for https://darvas.app/mcp with the `darvas:read` permission. Darvas reads the user's accounts and sends no orders.

## Darvas API MCP

Connect autonomous research agents to https://api.darvas.app/mcp or https://darvas.app/api/data/v1/mcp using Streamable HTTP (MCP 2026-07-28, also supporting 2025-11-25) with an `X-API-KEY` header or OAuth 2.1 Bearer token (`data:read`). Documentation: https://docs.darvas.app/mcp-server.

- Modes: `?mode=code` (Code Mode `search`, `execute`, and `whoami`), `?mode=progressive` (8 flagship read tools plus `search_data_tools` and `call_data_tool`), `?mode=full` (all catalog tools), or `?toolsets=sec,crypto,macro,defi,ownership,filings,financials,equities,prediction,tokenized`.
- Response shaping: pass optional `response_format` (`json`, `compact`, or `tsv`) and `fields` column projection on tool calls.
- Zero-credit catalog resources: `darvas://catalog/tools`, `darvas://catalog/macro-series`, `darvas://catalog/crypto-metrics`, `darvas://catalog/exchanges`.
- Analyst prompts: `stock_deep_dive`, `crypto_trade_setup`, `earnings_preview`, `insider_whale_scan`, `macro_regime_check`, `defi_yield_audit`.

### Code Mode (`search` and `execute`)

Connect to https://api.darvas.app/mcp?mode=code to list three static tools (`search`, `execute`, and `whoami`) instead of the full catalog. Scripts run inside a secret-free QuickJS sandbox (`Math`, `JSON`, `Date`, `Map`, `Set`, `Promise`; no `fetch`, `URL`, timers, or `Intl`). Both `search` and `execute` accept `{ code: string, truncate?: boolean }` and return `{ result, truncated, operation_calls, credits_used, elapsed_ms }`. `search` inspects the inlined `spec` (`spec.paths`, `spec.tags`) for 0 credits; `execute` runs up to 64 read-only `darvas.request()` calls (6 concurrent, 30 s wall timeout, 24,000-char default structural truncation). Setup guides: https://docs.darvas.app/mcp-server.

```json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"code":"async () => Object.entries(spec.paths).flatMap(([path, item]) => Object.entries(item).filter(([, op]) => op.tags.includes(\"insiders\")).map(([method, op]) => ({ method, path, tool: op.tool, summary: op.summary })))"}}}
```

```json
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"execute","arguments":{"code":"async () => Promise.all([\"NVDA\", \"AMD\"].map(async (ticker) => { const [filings, buys] = await Promise.all([darvas.request(\"list_filings\", { ticker, filing_type: [\"10-Q\"], limit: 1 }), darvas.request(\"list_insider_trades\", { ticker, transaction_type: \"P\", limit: 20 })]); return { ticker, latest_10q: filings.filings[0]?.filing_date ?? null, insider_buys: buys.insider_trades.length }; }))"}}}
```

## Public live tools

### Crypto markets ([/crypto](https://darvas.app/crypto))

Spot prices, market cap, ETF flows, stablecoins, sentiment, and DeFi.

- [Crypto prices](https://darvas.app/crypto/prices)
- [Crypto market cap](https://darvas.app/crypto/market-cap)
- [Crypto ETF flows](https://darvas.app/crypto/etf-flows)
- [Stablecoins](https://darvas.app/crypto/stablecoins)
- [Fear and Greed Index](https://darvas.app/crypto/fear-and-greed)
- [Altcoin Season Index](https://darvas.app/crypto/altcoin-season-index)
- [Bitcoin 200WMA](https://darvas.app/crypto/200-week-moving-average)
- [Monthly returns](https://darvas.app/crypto/monthly-returns)
- [RSI heatmap](https://darvas.app/crypto/rsi-heatmap)
- [DeFi](https://darvas.app/defi)

### Crypto derivatives ([/crypto/derivatives](https://darvas.app/crypto/derivatives))

Perpetual funding rates, open interest, liquidations, long/short, options, and order flow.

- [Funding rates](https://darvas.app/crypto/funding-rates)
- [Open interest](https://darvas.app/crypto/open-interest)
- [Liquidation heatmap](https://darvas.app/crypto/liquidation-heatmap)
- [Crypto liquidations](https://darvas.app/crypto/liquidations)
- [Long/Short ratio](https://darvas.app/crypto/long-short-ratio)
- [Crypto options](https://darvas.app/crypto/options)
- [Order flow & footprint](https://darvas.app/crypto/order-flow)

### Stocks & ETFs ([/stocks](https://darvas.app/stocks))

Stock screener, sector heatmap, daily movers, ETFs, short interest, and FTDs.

- [Stock screener](https://darvas.app/stocks/screener)
- [Stock heatmap](https://darvas.app/stocks/heatmap)
- [Stock gainers](https://darvas.app/stocks/gainers)
- [Stock losers](https://darvas.app/stocks/losers)
- [Most active stocks](https://darvas.app/stocks/most-active)
- [S&P 500 stocks](https://darvas.app/stocks/lists/sp-500)
- [ETFs](https://darvas.app/etf)
- [Short interest](https://darvas.app/stocks/short-interest)
- [Fails-to-deliver (FTD)](https://darvas.app/stocks/fails-to-deliver)

### SEC & insiders ([/sec](https://darvas.app/sec))

SEC EDGAR search, live 8-K events, Form 4 insider trades, 13F portfolios, and super investors.

- [SEC EDGAR](https://darvas.app/sec/edgar)
- [SEC 8-K feed](https://darvas.app/sec/8-k-feed)
- [Form 424B2 prospectus](https://darvas.app/sec/forms/424b2)
- [Insider trading](https://darvas.app/insider-trading)
- [Insider cluster buys](https://darvas.app/insider-trading/cluster-buys)
- [CEO and CFO buys](https://darvas.app/insider-trading/ceo-cfo-buys)
- [13F holdings](https://darvas.app/13f)
- [Super investors](https://darvas.app/13f/super-investors)

### Macro & rates ([/macro](https://darvas.app/macro))

US Treasury yield curve, central bank rates, CPI inflation, GDP, unemployment, COT, and GPU prices.

- [US Treasury yields](https://darvas.app/macro/treasury-yields)
- [Interest rates](https://darvas.app/macro/interest-rates)
- [US inflation rate](https://darvas.app/macro/inflation)
- [US GDP growth](https://darvas.app/macro/us-gdp)
- [US unemployment rate](https://darvas.app/macro/unemployment)
- [CFTC COT positioning](https://darvas.app/macro/cot)
- [GPU rental prices](https://darvas.app/macro/gpu-prices)

### Markets & calendars ([/markets](https://darvas.app/markets))

Global indices, commodities, forex, prediction markets, and economic, earnings, and IPO calendars.

- [Market indices](https://darvas.app/markets/indices)
- [Commodities](https://darvas.app/markets/commodities)
- [Forex & gold](https://darvas.app/markets/forex)
- [Prediction markets](https://darvas.app/prediction-markets)
- [Economic calendar](https://darvas.app/economic-calendar)
- [Earnings calendar](https://darvas.app/earnings-calendar)
- [US IPO calendar](https://darvas.app/ipos)

### Calculators & converters ([/calculators](https://darvas.app/calculators))

Position size, liquidation, and R:R calculators, live crypto converter, and platform comparisons.

- [Calculators](https://darvas.app/calculators)
- [Crypto converter](https://darvas.app/convert)
- [Satoshi to USD](https://darvas.app/convert/satoshi-to-usd)
- [Compare platforms](https://darvas.app/compare)

## MCP tools

### search

Find Darvas operations. Pass either code (async arrow function over global spec returning only what you need) or query, domain, or up to 4 ids. QuickJS runtime: Math, JSON, Date, Map, Set, Promise; no URL, fetch, timers, Intl, filesystem, credentials or network.
interface Op { id: string; domain: string; kind: "read" | "write" | "chart"; summary: string; description: string; tags: string[]; inputSchema: unknown; direct: boolean }
declare const spec: { operations: Op[]; domains: Array<{ name: string; description: string; operations: number }> };
Domains:
market (7), orderflow (2), indicators (3), drawings (1), alerts (6), watchlists (2), account (9), portfolio (1), history (3), journal (1), screener (1), derivatives (4), company (46), ownership (9), macro (26)

Read only: `true`

### execute

Run operations search found with JavaScript: async darvas => { ... }. Chain dependent steps with await, run independent reads together with Promise.allSettled, and filter large results before returning them. Reads run in parallel; writes and chart changes run one at a time in call order.
declare const darvas: { request<T = unknown>(id: string, input?: Record<string, unknown>): Promise<T> };
QuickJS runtime: Math, JSON, Date, Map, Set, Promise; no URL, fetch, timers, Intl, filesystem, credentials or network. Up to 32 requests, 30 seconds, results up to 1 MiB (truncated at about 6,000 tokens unless truncate is false). Completed writes survive later errors; identical writes within one user message are deduplicated. Over MCP, writes (alerts, watchlists, schedules) need darvas:write, idempotencyKey and user confirmation (one write per call); chart, memory and journal writes return unavailable.

Read only: `false`

### whoami

Return the connected Darvas account id (user:<id>), profile summary, plan, granted scopes and connected venues. Read-only; never returns tokens or secrets.

Read only: `true`

### search_instruments

Find listed instruments, their exact source and market identities, and supported actions. Read-only. Specify exchange when known. Never substitute another exchange for an unavailable instrument. Returns up to 40 matches; narrow the query when truncated.

Read only: `true`

### get_market_context

Current picture of one charted instrument on any Darvas source: last price with its time, deterministic 1H, 4H and 1D windows (change, high and low with their times), the last 24 hourly bars with UTC times, funding with intervalHours and open interest change for OKX, Binance, Bybit and Hyperliquid perpetuals, and the five high-importance macro releases nearest now on each side. priceType, volumeUnit, marketStatus, staleSeconds and freshness describe the data; a null or empty part carries a reason. Macro is the same for every instrument: pass includeMacro false on repeat calls; get_economic_calendar lists all releases. Read-only, not a live quote. Pass the exact instrument from chart context or search_instruments.

Read only: `true`

### get_economic_calendar

Economic calendar releases with release time, currency, importance, and actual, forecast and previous values. Defaults to the past 24 hours and next 48 hours; filter by currencies, importance, event name or an explicit ISO range of at most 92 days. Read-only. Times are UTC; the user's timezone is in application context.

Read only: `true`

### get_candles

The latest bars (up to 500) of one charted instrument on any Darvas timeframe from its own source, as columns: t (unix seconds, bar open), o, h, l, c, v. A summary gives the range, change, high and low with times, average true range, average volume, last volume against it, and up and down bar counts. The last bar may be live; closedOnly drops it. Ask only for the fields you need. Read-only.

Read only: `true`

### get_indicator_values

Compute up to six indicators for a charted Darvas (aggregated), OKX, Binance, Bybit, Hyperliquid or FxPro (cTrader) instrument without adding them to the chart: current value, recent values and signal per indicator, with the current price and bar count. Optional settings such as period follow the indicator's own parameter names and bounds; any other is refused. Read-only; the live bar is included. Partner broker pairs are not supported yet.

Read only: `true`

### get_account_summary

Equity, available balance, used margin, and OKX margin ratio or cTrader margin level for every connected account, or for one venue or account. Read-only live venue data with its fetch time; a venue that fails is reported as unavailable or account_disabled beside the others.

Read only: `true`

### get_positions_and_orders

Open positions and open orders for every connected account, or one venue or account (up to 40 rows each; omitted counts the rest). Each position includes explicit sizeUnit (contracts, base_asset, or lots), contractSize, computed baseSize, and notionalUsd when derivable. Includes feeSignConvention for raw venue fees plus normalized feePaid (positive cost paid, negative rebate). Read-only. Darvas cannot change or close them.

Read only: `true`
