Build quantitative pipelines and AI agents on clean financial datasets.
Financial datasets for Python and AI agents: SEC filings, XBRL statements, prices, COT, and macro over 168 REST operations and 164 MCP tools.
import os, requests
answer = requests.get(
"https://api.darvas.app/v1/insider-trades",
params={"ticker": "NVDA", "limit": 5},
headers={"X-API-KEY": os.environ["DARVAS_API_KEY"]},
)
for trade in answer.json()["insider_trades"]:
print(trade["filing_date"], trade["name"], trade["title"])claude mcp add --transport http darvas \
https://api.darvas.app/mcp \
--header "X-API-KEY: $DARVAS_API_KEY"- typed operations in the public OpenAPI 3.1 contract
- 168
- MCP data tools over streamable HTTP at api.darvas.app/mcp
- 164
- HMAC-SHA256 signed webhook event types for live ingestion
- 20
- Darvas API and MCP calls a month on Darvas Pro, 5,000,000 on Ultra
- 250,000
Developer features
One API key, uniform JSON envelopes, cursor pagination, and shared credit accounting across REST, MCP, and webhook workflows.
REST API and OpenAPI contract
168 REST operations documented at /data-api/openapi.yaml. Every route returns structured JSON, typed dates, and deterministic error codes ready for Python requests, httpx, Rust, or TypeScript clients.
164-tool MCP server for coding and finance agents
Point Claude Code, Codex, Cursor, Gemini CLI, or the official MCP Python SDK at https://api.darvas.app/mcp using your X-API-KEY header to expose every dataset as an agent tool.
Event-driven signed webhooks
Subscribe to 20 webhook event types covering new financial statements, earnings releases, Form 4 filings, 8-K items, and macro prints, each signed with HMAC-SHA256 over the timestamp and raw body.
Full point-in-time history on every tier
No history paywalls: access SEC filings since 1994, XBRL statements since 2009, Form 4 since 2006, 13F since 2013, COT since 1986, CPI since 1947, and US stock prices from each ticker's first session on Pro, Max, and Ultra.
One credit per call with data
1 credit = 1 successful call that returns data, up to 1,000 rows, so empty responses and errors cost 0 credits. X-Credits-Used and X-Quota-Remaining headers accompany every call, and 429 responses return exact Retry-After seconds.
Crypto market data, order flow, and DeFi feeds
Pull live candles, 90-day trade ticks, 13-month order flow minute bars, derivatives funding and open interest, ETF flows, Hyperliquid markets, and DeFi protocol and yield metrics alongside equities.
API plans and limits
Pro, Max, and Ultra include all 168 operations, 164 MCP tools, and full history. Plans differ in monthly calls, requests a minute, and webhooks, and 1 credit = 1 successful call.
| Plan | Calls a month | Per minute | Webhooks | Price |
|---|---|---|---|---|
| Darvas Free | No Darvas API | None | None | $0 |
| Darvas Pro | 250,000 | 1,200 | 5 | $20/mo ($200/yr) |
| Darvas Max | 2,000,000 | 3,600 | 25 | $100/mo ($1,000/yr) |
| Darvas Ultra | 5,000,000 | 6,000 | 100 | $200/mo ($2,000/yr) |
| Top-up | 100,000 more, never expire | Plan limit | Plan limit | $10 |
Developer workflows
Three production patterns quantitative researchers, financial data engineers, and AI agent builders run on the Darvas API instead of stitching together five separate market data vendors.
Backtest with point-in-time fundamentals and zero look-ahead bias
- Macro endpoints preserve first_published_value beside every revised release for authentic point-in-time vintage backtesting.
- Daily US stock prices arrive split-adjusted alongside complete dividend, split, short volume, and FTD histories back to each stock's first session.
- Delisted US equity tickers since 2006 remain queryable by ticker or SEC CIK number so quantitative screens avoid survivorship bias.
- Every standardized and as-reported statement row includes its SEC accession number, form_type, and direct filing URL for audit trails.
- Screen across roughly 20,600 XBRL filers programmatically with /financials/search/screener and /financials/peer-comparison.
Replace polling loops with HMAC-verified data webhooks
- Webhook notifications typically fire within one second of database storage, eliminating wasteful polling against rate limits.
- Verify every delivery by validating the HMAC-SHA256 Darvas-Signature header over the timestamp and raw request body.
- Use the unique event id field to guarantee idempotent processing and drop duplicate deliveries cleanly.
- Destinations that fail 50 consecutive delivery attempts pause automatically while test deliveries can be triggered via /webhooks/{webhook_id}/test.
- Darvas Pro includes 5 active webhook endpoints, Max 25, and Ultra 100.
Power autonomous research and coding agents over MCP
- Each successful MCP tool call that returns data costs one credit, the same as the matching REST endpoint.
- Cursor-based list pagination lets agents scan multi-year SEC filings and price tables cleanly without blowing up context windows.
- Connect the unauthenticated documentation MCP at docs.darvas.app/mcp so coding agents inspect parameters and schemas before generating code.
- Works out of the box with the official MCP Python and TypeScript SDKs over streamable HTTP with no proprietary client wrapper.
- Replaces separate Financial Datasets, SEC API, Alpha Vantage, and macro connectors with one predictable monthly cap.
Quantitative data pipelines, MCP agents, and backtest hygiene
How engineers and quantitative researchers build reproducible pipelines on 168 REST endpoints, 164 MCP tools, signed webhooks, and point-in-time SEC archives.
Coverage
- SEC filings since 1994
- XBRL since 2009
- Macro and CFTC COT
- Crypto derivatives
Darvas API
- Point-in-time dates
- Cursor pagination
- Quota headers
- Per-workload keys
Your pipeline
- Python or TypeScript
- MCP agents
- Signed webhooks
- Apify Actors
- rows per call for 1 credit, on all 168 operations
- 1,000
- API keys on Ultra; 3 on Pro and 10 on Max
- 25
- replies carry Retry-After and cost 0 credits
- HTTP 429
Developer questions
Technical answers for quants comparing Financial Datasets, Alpha Vantage, Polygon, FMP, and SEC EDGAR APIs.
How do I use the Darvas Python stock API?
No proprietary SDK is required. Send standard HTTP requests with Python requests or httpx passing X-API-KEY in the header, or connect the official MCP Python SDK to https://api.darvas.app/mcp. Complete Python copy-paste examples live on every endpoint page in the docs.
How does Darvas improve on calling the raw SEC EDGAR API?
Raw SEC EDGAR exposes unnormalized XBRL fact dumps and HTML documents with strict rate-throttling rules. Darvas parses every 10-K, 10-Q, 20-F, and 40-F into standardized JSON statements, computes standalone quarters from YTD filings, splits 8-K events by item code, normalizes Form 4 and 13F tables, and pushes webhooks about one minute after SEC acceptance.
Is there an economic calendar API and macro API for Python?
Yes. Call /macro/economic-calendar, /macro/interest-rates, /macro/yield-curve, /macro/inflation, /macro/labor, and /macro/gdp to retrieve clean JSON series. Every revised macro data point keeps first_published_value alongside the latest revision so backtests avoid look-ahead bias.
How deep is historical coverage across stocks, filings, and futures?
SEC filings run back to 1994, XBRL financial statements to 2009 (with pre-XBRL annual figures back to 1993), Form 3/4/5 insider trades to 2006, 13F holdings to 2013 Q2, N-PORT funds to 2019 Q4, CFTC COT futures to 1986, Treasury yields to 1990, CPI to 1947, and daily US stock prices to each ticker's initial trading session.
How do webhooks handle security and retries?
Create webhook endpoints via POST /webhooks and select any of 20 event types. Every POST carries an HMAC-SHA256 signature header plus the ticker, accession number, and direct API fetch URL. Darvas Pro includes 5 active destinations, Max 25, and Ultra 100.
How does commercial use of the data work?
Darvas Ultra ($200 a month or $2,000 a year) includes internal commercial rights to use the data inside your company. Write to support@darvas.app to ask about any other use, such as display inside your own product.
Start building
Create your API key
Sign in to Darvas on Pro, Max, or Ultra, open Settings then Data API, and create a key that starts with dvk_.
Query REST or attach MCP
Send X-API-KEY from Python, cURL, or Claude Code to fetch normalized SEC, price, macro, or crypto JSON.
Move into production
Move to Max for 2,000,000 calls a month or Ultra for 5,000,000, or ask about plans by writing to:
support@darvas.app