81trust / 100

Trending

by x402stock.xyz in Markets & finance

x402 APIPassing, checked 1 h ago

Use for one call answering 'where is retail attention right now': a deterministic 0–100 attention score per ticker blending Reddit finance-community and 4chan /biz/ mention shares (24h window), with momentum, cross-platform confirmation, breadth & concentration (HHI), and Fear & Greed context. Transparent — every row carries its raw per-platform inputs. From x402stock

GET https://x402stock.xyz/api/v1/trending

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
236 ms typical, 236 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/trending"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402stock.xyz%2Fapi%2Fv1%2Ftrending
const res = await pay("https://x402stock.xyz/api/v1/trending");
console.log(await res.json());

Example input

{}

Example output

{
  "as_of": "2026-06-08T13:02:11.000Z",
  "breadth": {
    "concentration_hhi": 0.062,
    "tickers_tracked": 312,
    "total_fourchan_mentions": 2210,
    "total_reddit_mentions": 18443
  },
  "count": 2,
  "leaders": [
    {
      "attention_score": 100,
      "cross_platform": true,
      "fourchan": {
        "mentions": 214,
        "mentions_change_percent": 12.9,
        "rank": 2
      },
      "mention_share_percent": 14.2,
      "momentum_24h_percent": 22.5,
      "name": "NVIDIA Corporation",
      "rank": 1,
      "reddit": {
        "mentions": 2619,
        "mentions_change_percent": 24.1,
        "rank": 1
      },
      "ticker": "NVDA"
    },
    {
      "attention_score": 81.4,
      "cross_platform": true,
      "fourchan": {
        "mentions": 247,
        "mentions_change_percent": 3.4,
        "rank": 1
      },
      "mention_share_percent": 11.6,
      "momentum_24h_percent": -4.8,
      "name": "Tesla Inc.",
      "rank": 2,
      "reddit": {
        "mentions": 2104,
        "mentions_change_percent": -6.2,
        "rank": 2
      },
      "ticker": "TSLA"
    }
  ],
  "market_context": {
    "fear_greed_rating": "Fear",
    "fear_greed_score": 38
  },
  "methodology": "attention_score = 100 × blended_share / max(blended_share); blended_share = renormalized(0.7 × Reddit mention share + 0.3 × 4chan /biz/ mention share) over a 24h window. Deterministic; raw per-platform inputs included per row.",
  "sections": {
    "fear_greed": "ok",
    "fourchan": "ok",
    "reddit": "ok"
  },
  "source": "x402stock",
  "window": "24h"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402574 ms$0.04
6 h agoPassed402236 ms$0.04