Cash cost to buy a target share count at price
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.
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-07
updated
Provider
api.delx.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9f8bd9875b3E0b632a24A3A7C73f7787175e73A2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "28heAMpFkeUJsL7o7apiK4oJwZWq2fUHinRwbgYYsemG",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "signal-normalize",
"info": {
"input": {
"body": {
"price": 0.25,
"shares": 200
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"cost": 50,
"price": 0.25,
"schema": "delx/util-cost-for-shares/v1",
"shares": 200
},
"type": "json"
}
},
"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"
},
"serviceName": "Cost for Shares",
"summary": "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.",
"tags": [
"x402",
"agents",
"local-first",
"micro-usdc",
"pay-per-call"
]
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.delx.ai/api/v1/x402/cost-for-shares" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.delx.ai/api/v1/x402/cost-for-shares");
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://api.delx.ai/api/v1/x402/cost-for-shares")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4057.json, and this resource appears in /discovery/resources and /discovery/search.