Skip to main content

cabrini

US stock market data for AI agents. 23 years of minute-level OHLCV bars, SEC fundamentals, filings, and insider data — every US equity from 2003 to present.

Pay per query with USDC on Base (x402). No API keys, no subscriptions, no signup.

Install

pip install cabrini

Quick start

from cabrini import Cabrini

c = Cabrini(private_key="0x...")  # any Base wallet with USDC

# Intraday bars — $0.025
bars = c.query("AAPL", "2024-01-15")

# Daily bars — $0.01/day
daily = c.daily("TSLA", "2024-01-01", "2024-03-31")

# SEC fundamentals — $0.02
fins = c.fundamentals("NVDA")

# Full research brief — $0.04
brief = c.brief("MSFT")

LangChain

from cabrini import get_langchain_tools
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

tools = get_langchain_tools(private_key="0x...")
agent = create_react_agent(ChatOpenAI(model="gpt-4o"), tools)

result = agent.invoke({"messages": [
    {"role": "user", "content": "What was NVDA's trading volume on the day of their last earnings?"}
]})

CrewAI

from cabrini import get_crewai_tools
from crewai import Agent, Task, Crew

tools = get_crewai_tools(private_key="0x...")

analyst = Agent(
    role="Financial Analyst",
    goal="Analyze stock performance using real market data",
    tools=tools,
)

task = Task(
    description="Compare AAPL and MSFT intraday volatility on 2024-06-15",
    agent=analyst,
)

Crew(agents=[analyst], tasks=[task]).kickoff()

MCP (Claude, Cursor, etc.)

Point any MCP client at https://cabrini.ai/mcp:

{
  "mcpServers": {
    "cabrini": {
      "url": "https://cabrini.ai/mcp"
    }
  }
}

All endpoints

Method Price Description
query(ticker, date) $0.025 Full trading day of intraday bars
daily(ticker, start, end) $0.01/day Daily OHLCV
batch(tickers, date) $0.10 Up to 10 tickers at once
range(ticker, start, end) $0.015 Multi-day intraday
bars(ticker, date) $0.02 Flexible bar query
scan(date) $0.25 All tickers on a date
tickers(date) $0.005 List traded tickers
company(ticker) $0.001 Company metadata
fundamentals(ticker) $0.02 SEC quarterly data
filings(ticker) $0.02 SEC filings + text
insiders(ticker) $0.02 Insider transactions
brief(ticker) $0.04 Full research brief

How payment works

Every paid request uses x402 — an open protocol for HTTP micropayments:

  1. Client sends request → server returns 402 with a PAYMENT-REQUIRED header
  2. Client signs a USDC transfer authorization (EIP-3009)
  3. Client replays request with X-PAYMENT header containing the signed authorization
  4. Cloudflare edge worker verifies signature, submits to Base, forwards to origin
  5. Origin returns data

The Cabrini client handles all of this automatically. You just need a wallet with USDC on Base.

Get USDC on Base

  1. Bridge from Ethereum: bridge.base.org
  2. Buy directly: Coinbase → send USDC to your wallet on Base network
  3. Faucet (testnet): not needed, mainnet USDC is cheap ($0.025/query)

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cabrini-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cabrini-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file cabrini-0.1.0.tar.gz.

File metadata

  • Download URL: cabrini-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cabrini-0.1.0.tar.gz
Algorithm Hash digest
SHA256 454960b6f546e5f1ee07732a6772484e3ec40b499b76e80264a3e7e1374ce010
MD5 b36f1b17b352dd84336f32e34ebf0707
BLAKE2b-256 5ac691ae67bb33a328681c3a16888d08573fdf4ea837eb8990900afc253cb791

See more details on using hashes here.

File details

Details for the file cabrini-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cabrini-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cabrini-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e027f58011d76853c986ab48767c9b187a1ceedf23958bdce0ddaa466418aebe
MD5 e30d8e058a95e1d400b23fc69feb484f
BLAKE2b-256 4427a2593fcc5afdf2428ccd7bde556999b48dd697782895722ecc2fb4da5786

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page