Api Endpoint

Cost for Shares

Cash cost to buy a target share count at price. Call when pre-trade cash check for prediction-market size targets. Returns total cost as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

Open interactive test console

Offering

Provider
api.delx.ai
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Prediction Markets
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.delx.ai/api/v1/x402/cost-for-shares
MIME type
application/json
First seen
2026-10-16T01:51:30.109Z
Last seen
Tags
X402, Agents, local-first, micro-usdc, pay-per-call

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: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 3
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": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "payTo": "28heAMpFkeUJsL7o7apiK4oJwZWq2fUHinRwbgYYsemG"
  }
]

Observed health

Status
Healthy
Latest latency
351 ms
Average latency
337 ms
HTTP status
204
Last checked
Reachability
100% over 8 checks

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

Input schema

{
  "properties": {
    "body": {
      "additionalProperties": true,
      "properties": {
        "price": {
          "description": "Input field: price.",
          "type": "number"
        },
        "shares": {
          "description": "Input field: shares.",
          "type": "integer"
        }
      },
      "required": [
        "shares",
        "price"
      ],
      "type": "object"
    },
    "bodyType": {
      "const": "json",
      "type": "string"
    },
    "method": {
      "const": "POST",
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "properties": {
        "body": {
          "additionalProperties": true,
          "properties": {
            "price": {
              "description": "Input field: price.",
              "type": "number"
            },
            "shares": {
              "description": "Input field: shares.",
              "type": "integer"
            }
          },
          "required": [
            "shares",
            "price"
          ],
          "type": "object"
        },
        "bodyType": {
          "const": "json",
          "type": "string"
        },
        "method": {
          "const": "POST",
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "additionalProperties": true,
      "description": "Bounded first-party JSON result; input is processed in memory and not retained.",
      "properties": {
        "cost": {
          "type": "number"
        },
        "price": {
          "type": "number"
        },
        "schema": {
          "type": "string"
        },
        "shares": {
          "type": "number"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "input",
    "output"
  ],
  "type": "object"
}