Tokenized stock token daily bars
GET /api/stock-token-historyDaily UTC open, high, low, close and volume for a listed tokenized-stock token on Robinhood Chain (eip155:4663)...
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
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string (one of: AAPL, AMD, AMZN, COIN, GOOGL, META, MSFT, MSTR, NFLX, NVDA, PLTR, QQQ, ...) | yes | The token's symbol, one of the listed tokens. Also accepted as ticker, coin, asset. One of 14 listed values. |
days | integer (1-90; default 30) | no | UTC 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
GET /api/stock-token-history$0.002 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example 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."
}| Field | Type | Always present | In the example |
|---|---|---|---|
symbol | string | yes | NVDA |
token | string | yes | 0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC |
chain | string | yes | eip155:4663 |
chainName | string | yes | Robinhood Chain |
venue | string | yes | uniswap-v3 |
pool | string | yes | 0xd4EB21209C4D6093f80B5b84f5C45cc093EA14a3 |
feeTier | number | yes | 500 |
poolRule | string | yes | the listed pool with the most USDG swap volume over the returned days |
quoteAsset | string | yes | USDG |
quoteToken | string | yes | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
priceUnit | string | yes | USDG per NVDA token |
interval | string | yes | 1d |
timezone | string | yes | UTC |
days | number | yes | 7 |
bars | array of objects | yes | 2 items in the example |
barsBasis | string | yes | Daily bars built from on-chain swaps in UTC days; a day with no swaps has no ... |
pools | array of objects | yes | 3 items in the example |
coverageStart | string | yes | 2026-11-27T00:00:00.000Z |
coverageEnd | string | yes | 2026-11-28T20:02:16.000Z |
coverageStartBlock | number | yes | 124406872 |
coverageEndBlock | number | yes | 125259472 |
coveredDays | number | yes | 2 |
returned | number | yes | 2 |
matched | number | yes | 7 |
complete | boolean | yes | false |
truncated | boolean | yes | true |
partial | boolean | yes | true |
partialReason | string | yes | the stored swap coverage starts after the first asked day: days before covera... |
source | string | yes | onchain-swaps |
isExchangePrice | boolean | yes | false |
consolidated | boolean | yes | false |
tokenIssuer | string | yes | Robinhood Assets (Jersey) Limited |
holderRestriction | string | yes | Issuer states this token may not be offered, sold or delivered in the United ... |
label | string | yes | Prices 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
- Pay $0.002 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - Required:
symbol; a rejected input answers 4xx witherror,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A
POSTwith a JSON body is served as this GET. - An
Idempotency-Keyreplays the first 200 uncharged (an answer larger than 1 MB is not replayed).
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