# RacingPulse Calculator

> RacingPulse Calculator is a paid API for AI agents from racingpulse.vercel.app, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-14).

Computes arbitrage stakes, expected value (EV), Kelly criterion bet sizing, and profit calculations for horse racing wagers

## Facts

- Endpoint: GET https://racingpulse.vercel.app/api/calculator
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/racingpulse-calculator-2f40731a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ubl1iRBI3UMHsP8KkY3L2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability racingpulse-calculator-2f40731a
```

Example prompt: I've got Horse A at 4.5 on Betfair and 1.3 on the lay side — can you use RacingPulse to calculate the optimal arbitrage stakes and expected profit if I'm betting with a £500 bankroll, and also give me the Kelly criterion stake and EV for each side?

## When to prefer this

Use this endpoint when you need mathematical calculations for betting strategies — specifically arbitrage staking, EV computation, or Kelly criterion sizing — as opposed to looking up live odds or scanning for arb opportunities in real time. This is a pure calculation engine, not a data lookup service.

## Known failure modes

- Missing required odds or stake parameters returns 400 error
- Invalid odds format (negative or zero) returns validation error
- Bankroll value of zero causes division error
- Odds that don't constitute a true arbitrage opportunity return zero or negative profit
- Payment not processed results in 402 response

## How this service works

Arbitrage stakes, expected value, Kelly criterion and profit calcs for racing bets. For betting and value-betting agents.

## Output

Returns computed values including optimal arbitrage stake amounts per bookmaker, expected value of the bet, Kelly criterion recommended stake size, and projected profit figures based on the supplied odds and bankroll

## Example request

```json
{
 "odds": "4.5,1.3",
 "bankroll": 500
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "mode": {
       "type": "string",
       "description": "arb | ev"
      },
      "odds": {
       "type": "string",
       "description": "3.5,2.1 (comma-separated runner odds for arb)"
      },
      "stake": {
       "type": "string",
       "description": "100 (stake amount for ev mode)"
      },
      "bankroll": {
       "type": "string",
       "description": "1000 (for arb mode)"
      },
      "true_prob": {
       "type": "string",
       "description": "0.35 (your estimated true win probability for ev mode)"
      },
      "single_odds": {
       "type": "string",
       "description": "3.5 (for ev mode)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "errors": {
     "type": "object",
     "description": "Documented error responses, keyed by HTTP status code",
     "additionalProperties": {
      "type": "object",
      "required": [
       "description"
      ],
      "properties": {
       "example": {
        "type": "object"
       },
       "description": {
        "type": "string"
       }
      }
     }
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "arb",
  "is_arb": true,
  "bankroll": 1000,
  "profit_pct": 5.04,
  "allocations": [
   {
    "odds": 3.5,
    "stake": 285.71,
    "stake_pct": 28.57,
    "guaranteed_return": 1000
   }
  ],
  "guaranteed_profit": 50.4,
  "implied_probability": 95.2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/racingpulse-calculator-2f40731a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from racingpulse.vercel.app](https://www.zero.xyz/host/racingpulse.vercel.app/llms.txt)
