x402 API
Pyth equity vs xStock / Ondo vs DEX fair-value spread. Pay with USDC via HTTP 402. Syra machine money for agents.
/stocks/fair-value
x402
Price: $0.02 USD per successful paid call (catalog hint; runtime 402 is authoritative)
Base URL: https://api.syraa.fun
Compare Pyth Equity.US.* feeds against Crypto.*X / Ondo tokenized feeds and DexScreener on-chain price. Input: symbol (e.g. AAPL, TSLA, NVDA) or nasdaqTicker. Returns equityUsd, xStockUsd, ondoUsd, dexUsd, spreads, marketHoursHint.
This is a pay-per-call route: unpaid requests return HTTP 402 until you settle USDC and retry with PAYMENT-SIGNATURE or X-PAYMENT. See x402 wire format.
import { createSyraPaidClient } from "@syra-ai/sdk";
const client = createSyraPaidClient({
// funds USDC on Solana/Base; auto-pays HTTP 402
});
const res = await client.fetch("https://api.syraa.fun/stocks/fair-value", {
method: "GET",
});
console.log(await res.json());