82trust / 100

Prediction Market

by prediction-market in Markets & finance

x402 APIPassing, checked 2 h ago

Detail of ONE prediction market or event by numeric id, 0x conditionId, market-slug or event-slug (auto-detected): normalized outcomes with implied probabilities, volume, liquidity, close date, status and a link-back.

GET https://api.agentstools.dev/prediction/market

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
28 ms typical, 28 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://api.agentstools.dev/prediction/market?id=0xacec7e5b90ccb1ac4c950e3aff18156d6ce1bb7b0c87c001a281279412dca784"
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%2Fapi.agentstools.dev%2Fprediction%2Fmarket
const res = await pay("https://api.agentstools.dev/prediction/market?id=0xacec7e5b90ccb1ac4c950e3aff18156d6ce1bb7b0c87c001a281279412dca784");
console.log(await res.json());

Example input

{
  "id": "0xacec7e5b90ccb1ac4c950e3aff18156d6ce1bb7b0c87c001a281279412dca784"
}

Example output

{
  "disclaimer": "Prediction-market data, not financial advice.",
  "market": {
    "implied_outcome": "Yes",
    "implied_prob": 0.545,
    "link": "https://polymarket.com/event/…",
    "money_type": "real",
    "question": "Will Bitcoin reach $95,000 by December 31, 2026?",
    "status": "open",
    "venue": "polymarket",
    "volume": 888975.08
  },
  "query": "0xacec…",
  "type": "market"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40293 ms$0.01
6 h agoPassed40227 ms$0.01
11 h agoPassed40228 ms$0.01