Skip to content
Fourohtwo

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.

Terminal
npm install fourohtwo
TypeScript
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.

TypeScript
const res = await pay("https://fourohtwo.xyz/x/stock-price?ticker=NVDA");
const nvda = await res.json();
console.log(nvda.priceUsd, nvda.change24hPct);
Response
{
  "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.

TypeScript
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.

TypeScript
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

Try it free

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