78trust / 100

Kalshi Consensus Trend

by graphadvocate.com in Weather & location

x402 APIPassing, checked 4 h ago

Kalshi consensus-probability trajectory. POST {event}. Wraps Kalshi's unique /events/{ticker}/forecast_history (no other PM exposes formatted forecast percentile history). Returns slope-per-hour over 24h and 3d, acceleration signal (regime change indicator), volatility band, days to resolve, and a stable/accelerating-up/accelerating-down interpretation.

POST https://graphadvocate.com/kalshi/consensus-trend

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://graphadvocate.com/kalshi/consensus-trend" \
  -H "content-type: application/json" \
  -d '{"event":"KXELONMARS-99"}'
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%2Fgraphadvocate.com%2Fkalshi%2Fconsensus-trend
const res = await pay("https://graphadvocate.com/kalshi/consensus-trend", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"event":"KXELONMARS-99"}),
});
console.log(await res.json());

Example input

{
  "event": "KXELONMARS-99"
}

Example output

{
  "acceleration_signal": -0.0003,
  "consensus_probability_now": 0.18,
  "days_to_resolve": 3287.4,
  "event_title": "Will Elon Musk visit Mars in his lifetime?",
  "interpretation": "accelerating-down",
  "kalshi_event_ticker": "KXELONMARS-99",
  "slope_per_hour_24h": -0.0004,
  "slope_per_hour_3d": -0.0001,
  "volatility_24h_stdev": 0.012
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402241 ms$0.05
7 h agoPassed402224 ms$0.05
11 h agoPassed402264 ms$0.05
14 h agoPassed402228 ms$0.05
18 h agoPassed402266 ms$0.05
21 h agoPassed402254 ms$0.05
25 h agoPassed402126 ms$0.05
29 h agoPassed402341 ms$0.05
32 h agoPassed402613 ms$0.05
36 h agoPassed402291 ms$0.05
40 h agoPassed402326 ms$0.05
43 h agoPassed402261 ms$0.05
2 days agoPassed402333 ms$0.05