Give your AI agent live stock prices
Let an AI agent read live prices for Robinhood stock tokens like NVDA and TSLA, pay per call in stablecoins, and try it free first.
4 min read · updated Nov 26, 2026
Robinhood's stock tokens (TSLA, NVDA, SPY and hundreds more) trade around the clock on Robinhood Chain. Fourohtwo turns that market into APIs an agent can call without an account or an API key: it pays a fraction of a cent per call, and nothing when a call fails.
1. Create a payer
Install the SDK and give it the agent's wallet key. A brand-new wallet works: it gets 5 free calls on Fourohtwo's APIs before it needs any funds.
npm install fourohtwo
import { createPayer } from "fourohtwo";
const pay = createPayer({
privateKey: process.env.AGENT_KEY!, // a new wallet gets 5 free calls
maxPerCallUsd: "0.05",
maxDailyUsd: "2",
});2. Get a price
stock-price returns the token's live price, 24-hour change, volume, market cap and its deepest pools. It costs $0.005 a call.
const res = await pay("https://fourohtwo.xyz/x/stock-price?ticker=NVDA");
const nvda = await res.json();
console.log(nvda.priceUsd, nvda.change24hPct);{
"ticker": "NVDA",
"name": "NVIDIA • Robinhood Token",
"priceUsd": 148.74,
"change24hPct": -3.22,
"volume24hUsd": 26763646,
"topPools": [{ "name": "NVDA / USDG 0.05%", "liquidityUsd": 1887696 }]
}3. Compare with the real stock
Outside US market hours the token can drift from the stock. stock-premium shows the gap for up to 10 tickers, with the market session and the next open; market-hours tells the agent whether Wall Street is open at all.
const gaps = await (await pay("https://fourohtwo.xyz/x/stock-premium?tickers=TSLA,NVDA")).json();
const session = await (await pay("https://fourohtwo.xyz/x/market-hours")).json();4. Hand it to a model
With the Vercel AI SDK the agent can decide which call to make on its own. fourohtwoTools gives it search_apis, get_api, call_api and wallet_status.
import { generateText, stepCountIs } from "ai";
import { fourohtwoTools } from "fourohtwo/ai";
const { text } = await generateText({
model: "anthropic/claude-haiku-4.5",
tools: fourohtwoTools(pay),
stopWhen: stepCountIs(5),
prompt: "How is NVDA trading on Robinhood Chain right now, and is it above or below the real stock?",
});APIs in this guide
- Stock token price0.005 USDGLive price of a Robinhood stock token like TSLA or NVDA on Robinhood Chain, with 24h change, volume, market cap and its deepest pools.
- Stock token premium0.01 USDGHow far a Robinhood stock token's on-chain price sits above or below the real stock, with US market session and next open. Up to 10 tickers per call.
- US market hours0.001 USDGWhether the US stock market is open, in pre-market, after-hours or closed right now, with the next open and close times.
Questions
- Do I need a Robinhood account?
- No. The agent reads public on-chain prices on Robinhood Chain and pays per call from its own wallet.
- What does it cost?
- stock-price is $0.005 per call, stock-premium $0.01, market-hours $0.001. Failed calls cost nothing, and a new wallet's first 5 calls are free.
- Which coins can the agent pay with?
- USDG on Robinhood Chain or USDC on Base. No ETH is needed for gas.
More guides
- Check a token for rug risk from an AI agent
- Pay for x402 APIs from Python
- Let a LangChain agent find and pay for APIs
- Let an AI agent pay for APIs with USDC
- x402 on Base vs Robinhood Chain: which should your agent pay on?
- Track whale trades and DEX volume on Robinhood Chain
- Add paid APIs to Claude, Cursor or Codex with MCP
