{
  "x402Version": 2,
  "id": 3430,
  "slug": "3430",
  "resource": "https://oracle.the-undesirables.com/api/v1/portfolio-optimize",
  "description": "Optimize a trading card portfolio with Markowitz mean-variance analysis over conformal-calibrated risk forecasts (Monte Carlo GBM/Merton available opt-in). Provide a list of card names, budget, and risk tolerance (conservative/moderate/aggressive) to receive optimal position sizing, per-card allocation weights, Sharpe ratios, and rebalancing recommendations.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x642e8a7C289381f24f0395e0539f0bA41c74Cc1B",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "500000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "GueVKFK4VNe4LYvMoYAKpnJe8s7Yar6FF3r1f92gfm9y",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "500000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "payTo": "0x642e8a7C289381f24f0395e0539f0bA41c74Cc1B",
      "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "amount": "500000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "budget": 1000,
            "cards": "Charizard ex,Pikachu VMAX,Black Lotus",
            "risk_tolerance": "moderate"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "allocations": [
                {
                  "allocation_usd": 450,
                  "card_name": "Charizard ex",
                  "weight": 0.45
                }
              ],
              "portfolio_expected_return_pct": 12.5
            },
            "status": "ok",
            "tool": "portfolio_optimizer"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "budget": {
                    "description": "Total portfolio budget in USD (default 1000)",
                    "type": "number"
                  },
                  "cards": {
                    "description": "Comma-separated card names to include in portfolio analysis",
                    "type": "string"
                  },
                  "days": {
                    "description": "Forecast horizon in days (1-365, default 90)",
                    "type": "integer"
                  },
                  "risk_tolerance": {
                    "description": "Risk profile: conservative, moderate, or aggressive",
                    "type": "string"
                  }
                },
                "required": [
                  "cards"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "type": "object"
                  },
                  "status": {
                    "type": "string"
                  },
                  "tool": {
                    "type": "string"
                  }
                },
                "required": [
                  "status"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "oracle.the-undesirables.com",
  "lastUpdated": "2026-08-26T22:57:22.805Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-26T22:57:22.524Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "oracle.the-undesirables.com",
    "manifest_name": "oracle.the-undesirables.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}