{
  "format": "delx/intent-card/v1",
  "id": "risk-reward-api",
  "intent": "Risk/Reward Ratio for an agent workflow",
  "title": "Risk/Reward Ratio API for agents",
  "description": "Risk–reward ratio = reward / risk for stop/target geometry. Call when validating setups before size allocation. Returns risk_reward ratio 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.",
  "keywords": [
    "Risk/Reward Ratio API",
    "Risk/Reward Ratio for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/risk-reward-api",
  "machine_url": "https://commerce.delx.ai/intents/risk-reward-api.json",
  "recommendation": {
    "tool_name": "util_risk_reward",
    "service_name": "Risk/Reward Ratio",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/risk-reward",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "entry": {
          "description": "Input field: entry.",
          "type": "integer"
        },
        "stop": {
          "description": "Input field: stop.",
          "type": "integer"
        },
        "take": {
          "description": "Input field: take.",
          "type": "integer"
        }
      },
      "required": [
        "entry",
        "stop",
        "take"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "entry": 100,
      "stop": 95,
      "take": 115
    },
    "example_output": {
      "schema": "delx/util-risk-reward/v1",
      "risk": 5,
      "reward": 15,
      "risk_reward": 3
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/risk-reward -m POST -H 'x-delx-source: intent-card-risk-reward-api' --max-amount 0.001 -b '{\"entry\":100,\"stop\":95,\"take\":115}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-risk-reward-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/risk-reward"
  }
}
