78trust / 100

Prediction Neg Risk Arbitrage

by AlphaPipeline Neg-Risk Arbitrage in Markets & finance

x402 APIPassing, checked 1 h ago

Detect basket arbitrage in a Polymarket neg-risk (mutually-exclusive, multi-outcome) event - since a full YES basket across all outcomes always settles to exactly $1, a basket price away from $1 is a near risk-free edge. Also computes buy/sell_basket_capacity_shares, the actual liquidity-bottleneck size executable right now, so this is not just a top-of-book mirage. Polymarket only (Kalshi's Data ToS forbids this use of their data). Paid in USDC on Base.

GET
https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage
Price
$0.03
per call in USDC
Uptime
100%
last 30 days
Response time
132 ms
286 ms slowest 5%
Last check
Passed
1 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

GET https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage

Each call costs $0.03 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage?event_slug=presidential-election-winner-2028

Parameters

ParameterTypeRequiredDescription
assumed_round_trip_cost_pctnumberNoEstimated all-in cost (Polygon gas for the neg-risk adapter's convert call, taker fees, slippage buffer) as a percentage of $1 basket notional. Defaults to 1.5.
event_slugstringYesPolymarket event slug, from the event's URL on polymarket.com.
max_slippage_pctnumberNoHow far past each leg's best price to walk the book when sizing executable basket capacity. Defaults to 1.0.
min_net_edge_pctnumberNoMinimum net edge (% of $1 basket notional) required to flag arbitrage_viable: true. Defaults to 1.0.

Example response

The provider's example. We can't check it without paying.

Example response, 29 lines
{
  "arbitrage_viable": true,
  "assumed_round_trip_cost_pct": 1.5,
  "basket_ask_sum": 0.94,
  "basket_bid_sum": 0.88,
  "buy_basket_capacity_notional_usd": 39.48,
  "buy_basket_capacity_shares": 42,
  "buy_basket_capacity_vwap_notional_usd": 39.71,
  "buy_basket_gross_edge_usd": 0.06,
  "buy_basket_net_edge_usd": 0.045,
  "data_source": "polymarket-gamma+clob",
  "event_slug": "presidential-election-winner-2028",
  "generated_at": {
    "kst": "2026-09-08 21:00:00 KST",
    "utc": "2026-09-08T12:00:00Z"
  },
  "notice": "*_capacity_shares is how many full baskets (1 share of every outcome) you could execute right now within max_slippage_pct of each leg's best price - arbitrage_viable=false with a positive edge usually means the edge is real but too thin to size meaningfully. *_capacity_notional_usd prices that capacity at each leg's top-of-book price, which is optimistic for any size beyond the first price level - *_capacity_vwap_notional_usd instead prices it by walking the same depth used to compute capacity_shares, so it reflects the actual average cost of filling that size (null if depth data was insufficient). oldest_book_snapshot_time is the staleness bottleneck across all legs. Cross-check the specific leg you intend to trade with prediction.exit_capacity_audit before sizing a real position.",
  "num_outcomes": 5,
  "oldest_book_snapshot_time": {
    "kst": "2026-09-08 20:59:58 KST",
    "utc": "2026-09-08T11:59:58Z"
  },
  "opportunity": "buy_basket",
  "sell_basket_capacity_notional_usd": 0,
  "sell_basket_capacity_shares": 0,
  "sell_basket_capacity_vwap_notional_usd": null,
  "sell_basket_gross_edge_usd": -0.12,
  "sell_basket_net_edge_usd": -0.135
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.03.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage?event_slug=presidential-election-winner-2028'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage?event_slug=presidential-election-winner-2028' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.03 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.03" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.03 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Falphapipeline-eu.onrender.com%2Fv1%2Fprediction%2Fneg-risk-arbitrage
const res = await pay("https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage?event_slug=presidential-election-winner-2028");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.03 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.03"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage?event_slug=presidential-election-winner-2028")
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402103 ms$0.03
6 h agoPassed402289 ms$0.03
10 h agoPassed402106 ms$0.03
14 h agoPassed402247 ms$0.03
18 h agoPassed402169 ms$0.03
Show 10 older checks
22 h agoPassed402123 ms$0.03
26 h agoPassed402286 ms$0.03
30 h agoPassed402157 ms$0.03
34 h agoPassed402205 ms$0.03
38 h agoPassed402100 ms$0.03
42 h agoPassed402226 ms$0.03
46 h agoPassed402174 ms$0.03
2 days agoPassed402132 ms$0.03
2 days agoPassed402134 ms$0.03
2 days agoPassed402210 ms$0.03