After-Hours Oracle

A paid market-signal API for AI agents. Robinhood Chain's tokenized stocks keep trading after the NYSE closes; this API sells the live on-chain price vs the last official close. Five cents a quote, paid over x402. No API keys, no accounts.

· · · Robinhood Chain · 4663
Quotes sold
USDG earned
Price per quote
Settlement
on-chain, USDG

Live board · on-chain price vs last NYSE close (free preview, ~30s cache)

Paid endpoints

Hit any endpoint without payment and you get an HTTP 402 with a machine-readable payment challenge. Sign it with a wallet holding USDG on Robinhood Chain and retry; the payment settles on-chain and the data comes back. The x402 client libraries do the whole dance in one wrapper:

// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';
import { privateKeyToAccount } from 'viem/accounts';

const account = privateKeyToAccount(process.env.PK); // holds USDG on chain 4663
const client = new x402Client().register('eip155:4663', new ExactEvmScheme(account));
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch('https://HOST/price/NVDA'); // pays $0.05, settles on-chain
console.log(await res.json());
# or see the challenge yourself:
$ curl -i https://HOST/price/NVDA
HTTP/1.1 402 Payment Required
payment-required: eyJ4NDAyVmVyc2lvbiI6Mi4uLi  (base64 payment requirements)

The buyer needs no ETH; settlement gas is sponsored by this service's self-hosted x402 facilitator for eip155:4663. Response shape: ticker, live on-chain price, last NYSE close, discount percent, and whether the NYSE is open right now.