Api Endpoint

quant-kelly

Kelly-criterion optimal bet fraction and position sizing from a win probability and payoff, or from an edge and odds. Pure computation over your inputs.

Open interactive test console

Offering

Provider
payai.agentstools.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://payai.agentstools.dev/quant/kelly
MIME type
application/json
First seen
2026-10-16T02:00:30.940Z
Last seen
Tags
quant, kelly, position-sizing, bankroll, betting

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.001 USDC
Atomic price: 1000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "payTo": "AytHnvc6bZx1ALTy7b5Px7hcavoSYszG9aeKvDcZ8R1u"
  }
]

Observed health

Status
Healthy
Latest latency
384 ms
Average latency
966 ms
HTTP status
402
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "win_prob": {
          "type": "number",
          "description": "Probability of a win in [0, 1]"
        },
        "win_loss_ratio": {
          "type": "number",
          "description": "Payoff ratio b of win size to loss size (> 0)"
        },
        "edge": {
          "type": "number",
          "description": "Expected edge, alternative input paired with odds"
        },
        "odds": {
          "type": "number",
          "description": "Odds b, alternative input paired with edge (> 0)"
        },
        "fraction": {
          "type": "number",
          "description": "Fractional-Kelly multiplier, default 1"
        },
        "bankroll": {
          "type": "number",
          "description": "Bankroll to size the position against"
        },
        "clamp": {
          "type": "boolean",
          "description": "Clamp the Kelly fraction to [0, 1], default true"
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "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",
          "required": [],
          "properties": {
            "edge": {
              "type": "number",
              "description": "Expected edge, alternative input paired with odds"
            },
            "odds": {
              "type": "number",
              "description": "Odds b, alternative input paired with edge (> 0)"
            },
            "clamp": {
              "type": "boolean",
              "description": "Clamp the Kelly fraction to [0, 1], default true"
            },
            "bankroll": {
              "type": "number",
              "description": "Bankroll to size the position against"
            },
            "fraction": {
              "type": "number",
              "description": "Fractional-Kelly multiplier, default 1"
            },
            "win_prob": {
              "type": "number",
              "description": "Probability of a win in [0, 1]"
            },
            "win_loss_ratio": {
              "type": "number",
              "description": "Payoff ratio b of win size to loss size (> 0)"
            }
          }
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "example": {
          "type": "object"
        }
      }
    }
  }
}