Skip to content

Tokenized stock token daily bars

$0.002 per callUSDC via x402GET /api/stock-token-history

Daily UTC open, high, low, close and volume for a listed tokenized-stock token on Robinhood Chain (eip155:4663)...

Category: Crypto & onchain dataTags: crypto onchain tokenized-stocks stock-token uniswap dex ohlc history

Try in playground →

Details

Daily UTC open, high, low, close and volume for a listed tokenized-stock token on Robinhood Chain (eip155:4663), built from our own reads of its Uniswap v3 USDG pools' Swap events by a background reader. Bars are for the listed pool with the most USDG swap volume over the returned days, in USDG per token, with USDG and token volume, swap count and first and last block. Daily bars built from on-chain swaps in UTC days; a day with no swaps has no bar. coverageStart says how far back the stored bars go; when coverage is shorter than the days asked, partial is true with the reason. A token price, not an exchange price or the consolidated tape. Information only, not investment advice.

Parameters

NameTypeRequiredDescription
symbolstring (one of: AAPL, AMD, AMZN, COIN, GOOGL, META, MSFT, MSTR, NFLX, NVDA, PLTR, QQQ, ...)yesThe token's symbol, one of the listed tokens. Also accepted as ticker, coin, asset. One of 14 listed values.
daysinteger (1-90; default 30)noUTC days back from today, today included (default 30, at most 90). Default 30. From 1 to 90. The example sends 7.

Example request

curl -i "https://agent402.tools/api/stock-token-history?symbol=NVDA&days=7"

Watch a call get paid

RequestGET /api/stock-token-history
402$0.002 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "symbol": "NVDA",
  "token": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
  "chain": "eip155:4663",
  "chainName": "Robinhood Chain",
  "venue": "uniswap-v3",
  "pool": "0xd4EB21209C4D6093f80B5b84f5C45cc093EA14a3",
  "feeTier": 500,
  "poolRule": "the listed pool with the most USDG swap volume over the returned days",
  "quoteAsset": "USDG",
  "quoteToken": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
  "priceUnit": "USDG per NVDA token",
  "interval": "1d",
  "timezone": "UTC",
  "days": 7,
  "bars": [
    {
      "date": "2026-11-27",
      "open": 147.41,
      "high": 148.9,
      "low": 146.88,
      "close": 148.12,
      "volumeQuote": 18250.4,
      "volumeBase": 123.31,
      "swaps": 41,
      "firstBlock": 124412310,
      "lastBlock": 125205530,
      "complete": true
    },
    {
      "date": "2026-11-28",
      "open": 148.12,
      "high": 148.61,
      "low": 147.7,
      "close": 148.2953993,
      "volumeQuote": 9120.75,
      "volumeBase": 61.5,
      "swaps": 19,
      "firstBlock": 125215044,
      "lastBlock": 125259120,
      "complete": false
    }
  ],
  "barsBasis": "Daily bars built from on-chain swaps in UTC days; a day with no swaps has no bar.",
  "pools": [
    {
      "pool": "0xd4EB21209C4D6093f80B5b84f5C45cc093EA14a3",
      "feeTier": 500,
      "volumeQuote": 27371.15,
      "swaps": 60
    },
    {
      "pool": "0xB944cec30Bd4175855215D767ADC81F39e5f7E2B",
      "feeTier": 3000,
      "volumeQuote": 4102.2,
      "swaps": 12
    },
    {
      "pool": "0xc277560DF3689A401bA7deDd7626168b234Ceb5e",
      "feeTier": 10000,
      "volumeQuote": 0,
      "swaps": 0
    }
  ],
  "coverageStart": "2026-11-27T00:00:00.000Z",
  "coverageEnd": "2026-11-28T20:02:16.000Z",
  "coverageStartBlock": 124406872,
  "coverageEndBlock": 125259472,
  "coveredDays": 2,
  "returned": 2,
  "matched": 7,
  "complete": false,
  "truncated": true,
  "partial": true,
  "partialReason": "the stored swap coverage starts after the first asked day: days before coverageStart are not covered, which is not the same as no swaps",
  "source": "onchain-swaps",
  "isExchangePrice": false,
  "consolidated": false,
  "tokenIssuer": "Robinhood Assets (Jersey) Limited",
  "holderRestriction": "Issuer states this token may not be offered, sold or delivered in the United States or to US persons; that offers and sales are restricted in other jurisdictions, including Canada, the United Kingdom and Switzerland; and that its prohibited investors currently include investors in Cuba, Belarus, Iran, North Korea, Russia, Syria, Ukraine, South Sudan, Sudan, Myanmar and Venezuela.",
  "label": "Prices of the NVDA token on Robinhood Chain, built from on-chain Uniswap v3 pool swaps. A token price, not an exchange price or the consolidated tape; it trades around the clock and can differ from the share price. Information only, not investment advice."
}
FieldTypeAlways presentIn the example
symbolstringyesNVDA
tokenstringyes0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC
chainstringyeseip155:4663
chainNamestringyesRobinhood Chain
venuestringyesuniswap-v3
poolstringyes0xd4EB21209C4D6093f80B5b84f5C45cc093EA14a3
feeTiernumberyes500
poolRulestringyesthe listed pool with the most USDG swap volume over the returned days
quoteAssetstringyesUSDG
quoteTokenstringyes0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168
priceUnitstringyesUSDG per NVDA token
intervalstringyes1d
timezonestringyesUTC
daysnumberyes7
barsarray of objectsyes2 items in the example
barsBasisstringyesDaily bars built from on-chain swaps in UTC days; a day with no swaps has no ...
poolsarray of objectsyes3 items in the example
coverageStartstringyes2026-11-27T00:00:00.000Z
coverageEndstringyes2026-11-28T20:02:16.000Z
coverageStartBlocknumberyes124406872
coverageEndBlocknumberyes125259472
coveredDaysnumberyes2
returnednumberyes2
matchednumberyes7
completebooleanyesfalse
truncatedbooleanyestrue
partialbooleanyestrue
partialReasonstringyesthe stored swap coverage starts after the first asked day: days before covera...
sourcestringyesonchain-swaps
isExchangePricebooleanyesfalse
consolidatedbooleanyesfalse
tokenIssuerstringyesRobinhood Assets (Jersey) Limited
holderRestrictionstringyesIssuer states this token may not be offered, sold or delivered in the United ...
labelstringyesPrices of the NVDA token on Robinhood Chain, built from on-chain Uniswap v3 p...

From an MCP client

catalog.call {
  "slug": "stock-token-history",
  "params": {
    "symbol": "NVDA",
    "days": 7
  }
}

Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.18.0): pays from a wallet or an AGENT402_CREDITS_KEY issued earlier.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.002" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/stock-token-history?symbol=NVDA&days=7");

Get a wallet or run npx -y agent402-mcp@0.18.0 wallet new.

The quote (Python)

import base64, json, urllib.error, urllib.request

req = urllib.request.Request("https://agent402.tools/api/stock-token-history?symbol=NVDA&days=7", method="GET", headers={})
try:
    urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
    quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
    print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]])  # the price, per chain, in base units

Related tools