82trust / 100

Prices Snapshot

by StableFinance in Markets & finance

x402 APIPassing, checked 2 h ago

Real-time single-ticker price quote. Invalid or unsupported tickers return upstream 400/404; check /api/company/facts/tickers or endpoint-specific /tickers lists before batching.

GET https://stablefinance.dev/api/prices/snapshot

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://stablefinance.dev/api/prices/snapshot?ticker=AAPL"
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%2Fstablefinance.dev%2Fapi%2Fprices%2Fsnapshot
const res = await pay("https://stablefinance.dev/api/prices/snapshot?ticker=AAPL");
console.log(await res.json());

Example input

{
  "ticker": "AAPL"
}

Example output

{
  "snapshot": {
    "day_change": 1.33,
    "day_change_percent": 0.43,
    "price": 312.18,
    "ticker": "AAPL",
    "time": "2026-05-28T20:35:17Z",
    "time_milliseconds": 1780000517325
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402226 ms$0.02
7 h agoPassed402180 ms$0.02