Utilities · x402

Detect basket arbitrage in a Polymarket neg-risk (mutually-exclusive, multi-outcome) ev…

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…

by alphapipeline-eu.onrender.com · discovered, not yet claimed by its owner · updated 2026-10-01

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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.

Tags: prediction-market · polymarket · arbitrage · bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/30149.json for the price and payment options.
  3. Pay. Call GET https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.03 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Calls (30d)
1 · 1 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.030x2bcfA4F7E1fA5E96934846A7dEa623398Ed7f752300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x2bcfA4F7E1fA5E96934846A7dEa623398Ed7f752",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "amountUsd": 0.03,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "arbitrage_viable": {
          "title": "Arbitrage Viable",
          "type": "boolean"
        },
        "assumed_round_trip_cost_pct": {
          "title": "Assumed Round Trip Cost Pct",
          "type": "number"
        },
        "basket_ask_sum": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Basket Ask Sum"
        },
        "basket_bid_sum": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Basket Bid Sum"
        },
        "buy_basket_capacity_notional_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Buy Basket Capacity Notional Usd"
        },
        "buy_basket_capacity_shares": {
          "title": "Buy Basket Capacity Shares",
          "type": "number"
        },
        "buy_basket_capacity_vwap_notional_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Same capacity as buy_basket_capacity_shares, but priced by walking the actual order-book depth (volume-weighted) instead of using each leg's top-of-book price - a more realistic fill cost than buy_basket_capacity_notional_usd. Null if depth data was insufficient.",
          "title": "Buy Basket Capacity Vwap Notional Usd"
        },
        "buy_basket_gross_edge_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Buy Basket Gross Edge Usd"
        },
        "buy_basket_net_edge_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Buy Basket Net Edge Usd"
        },
        "data_source": {
          "title": "Data Source",
          "type": "string"
        },
        "event_slug": {
          "title": "Event Slug",
          "type": "string"
        },
        "generated_at": {
          "properties": {
            "kst": {
              "title": "Kst",
              "type": "string"
            },
            "utc": {
              "title": "Utc",
              "type": "string"
            }
          },
          "required": [
            "utc",
            "kst"
          ],
          "title": "TimestampPair",
          "type": "object"
        },
        "notice": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Notice"
        },
        "num_outcomes": {
          "title": "Num Outcomes",
          "type": "integer"
        },
        "oldest_book_snapshot_time": {
          "anyOf": [
            {
              "properties": {
                "kst": {
                  "title": "Kst",
                  "type": "string"
                },
                "utc": {
                  "title": "Utc",
                  "type": "string"
                }
              },
              "required": [
                "utc",
                "kst"
              ],
              "title": "TimestampPair",
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The oldest of each leg's own order-book snapshot timestamp - the staleness bottleneck across all legs, since the whole basket calculation is only as fresh as its stalest leg. Null if no leg reported a timestamp."
        },
        "opportunity": {
          "title": "Opportunity",
          "type": "string"
        },
        "sell_basket_capacity_notional_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Sell Basket Capacity Notional Usd"
        },
        "sell_basket_capacity_shares": {
          "title": "Sell Basket Capacity Shares",
          "type": "number"
        },
        "sell_basket_capacity_vwap_notional_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "VWAP-priced equivalent of sell_basket_capacity_notional_usd - see buy_basket_capacity_vwap_notional_usd.",
          "title": "Sell Basket Capacity Vwap Notional Usd"
        },
        "sell_basket_gross_edge_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Sell Basket Gross Edge Usd"
        },
        "sell_basket_net_edge_usd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Sell Basket Net Edge Usd"
        }
      },
      "required": [
        "generated_at",
        "event_slug",
        "num_outcomes",
        "assumed_round_trip_cost_pct",
        "buy_basket_capacity_shares",
        "sell_basket_capacity_shares",
        "opportunity",
        "arbitrage_viable",
        "data_source"
      ],
      "title": "PredictionNegRiskArbitrageResponse",
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "arbitrage_viable": true,
    "assumed_round_trip_cost_pct": 0,
    "basket_ask_sum": null,
    "basket_bid_sum": null,
    "buy_basket_capacity_notional_usd": null,
    "buy_basket_capacity_shares": 0,
    "buy_basket_capacity_vwap_notional_usd": null,
    "buy_basket_gross_edge_usd": null,
    "buy_basket_net_edge_usd": null,
    "data_source": "string",
    "event_slug": "string",
    "generated_at": {
      "kst": "string",
      "utc": "string"
    },
    "notice": null,
    "num_outcomes": 0,
    "oldest_book_snapshot_time": null,
    "opportunity": "string",
    "sell_basket_capacity_notional_usd": null,
    "sell_basket_capacity_shares": 0,
    "sell_basket_capacity_vwap_notional_usd": null,
    "sell_basket_gross_edge_usd": null,
    "sell_basket_net_edge_usd": null
  },
  "type": "string"
}

Examples

curl
curl "https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
alphapipeline-eu.onrender.com
Endpoint
https://alphapipeline-eu.onrender.com/v1/prediction/neg-risk-arbitrage
Machine-readable
/resources/30149.json