{"uid":"cap_4N-Uw82eeCSO1SiMAu7Vk","slug":"riley-craig-x402-agent-store-macro-risk-spread-990ed840","name":"Riley Craig x402 Agent Store — Macro Risk Spread","description":"Credit-analyst primitive for agents: compares live top stablecoin DeFi yields (DefiLlama) against the official US Treasury Bill rate (US Treasury Fiscal Data) in one call. Returns the risk-free rate, top on-chain yields, the spread for each, and a verdict on whether on-chain yield currently compensates above risk-free. TradFi + DeFi combined — no other single endpoint does this.","url":"https://store.agentexchange.work/macro/risk-spread","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"verdict":"ON-CHAIN PREMIUM: top stable yields exceed risk-free by >1%","top_spreads":[{"pool":"aave-v3-usdc","chain":"Base","apy_pct":5.2,"spread_pct":1.51}],"risk_free_source":"US Treasury Bills (official)","risk_free_rate_pct":3.69}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TGPhwQlKazcP0h6LvpZ-2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current spread between top on-chain stablecoin yields and the US risk-free rate, identifying whether DeFi yields are offering a meaningful premium.","exampleAgentPrompt":"What's the current macro risk spread — are top on-chain stablecoin pools like Aave v3 USDC on Base actually beating the US Treasury bill rate right now, and by how much?","exampleUseCases":null,"resultDescription":"A JSON object containing a plain-language verdict (e.g. 'ON-CHAIN PREMIUM: top stable yields exceed risk-free by >1%'), an array of top yield spreads with pool name, chain, APY percentage, and spread percentage over the risk-free rate, plus the current US Treasury bill rate and its source.","failureModes":["Upstream yield data unavailable — stale or missing on-chain APY data","Treasury rate feed unavailable — risk-free benchmark cannot be fetched","Payment not received — x402 micropayment in USDC not completed, returns 402","Malformed response if DeFi data source temporarily returns unexpected schema"],"whenToPreferThis":"Use this endpoint when an agent needs a fast, pre-computed macro snapshot comparing the best stablecoin DeFi yields to the US risk-free rate — ideal for portfolio decision support, DeFi opportunity scanning, or macro yield monitoring without needing to aggregate multiple data sources manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:54:37.084Z","isFirstParty":false}