Api Endpoint

x402 Agent Hub

Prop-firm position sizing and drawdown lock calculator. Computes exact lot size accounting for ECN spread + commission friction, remaining daily/max drawdown buffers, consecutive losses until breach, and auto-lock protection.

Open interactive test console

Offering

Provider
x402-agent-hub.x402-agent-hub.workers.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402-agent-hub.x402-agent-hub.workers.dev/v1/trading/prop-risk
MIME type
Not provided
First seen
2026-11-01T15:04:33.795Z
Last seen
Tags
Trading, prop-firm, Risk, position-sizing

Payment pricing

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

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x1721E9841257A34DbDBA407D4DBA3a727a02d072"
  }
]

Observed health

Status
Healthy
Latest latency
458 ms
Average latency
241 ms
HTTP status
204
Last checked
Reachability
100% over 10 checks

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

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "properties": {
        "accountBalanceUsd": {
          "description": "Initial or starting account balance in USD",
          "type": "number"
        },
        "currentEquityUsd": {
          "description": "Current live equity in USD",
          "type": "number"
        },
        "dailyDrawdownLimitPercent": {
          "description": "Daily drawdown breach % (default 5)",
          "type": "number"
        },
        "maxTotalDrawdownLimitPercent": {
          "description": "Max overall drawdown breach % (default 10)",
          "type": "number"
        },
        "riskPercent": {
          "description": "Target risk percentage per trade (e.g. 0.5 for 0.5%)",
          "type": "number"
        },
        "stopLossPriceDistance": {
          "description": "Stop-loss distance in raw instrument price units (e.g. 4.50 on XAUUSD, 25 on NAS100)",
          "type": "number"
        },
        "symbol": {
          "description": "Instrument symbol (e.g. XAUUSD, NAS100, EURUSD, BTCUSD)",
          "type": "string"
        }
      },
      "required": [
        "symbol",
        "accountBalanceUsd",
        "riskPercent",
        "stopLossPriceDistance"
      ]
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}