{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrithm-com/json-schema/coinrithm-com-futures-quote-request-schema.json",
  "title": "FuturesQuoteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrithm-com-futures-api-openapi.yml#/components/schemas/FuturesQuoteRequest",
  "type": "object",
  "required": [
    "coinId",
    "side",
    "leverage",
    "marginMusd"
  ],
  "properties": {
    "coinId": {
      "type": "string",
      "description": "Coin UCID"
    },
    "side": {
      "type": "string",
      "enum": [
        "long",
        "short"
      ]
    },
    "leverage": {
      "type": "number",
      "minimum": 1,
      "maximum": 20
    },
    "marginMusd": {
      "type": "number",
      "minimum": 10,
      "description": "Isolated margin in mUSD"
    },
    "agentTrace": {
      "$ref": "#/$defs/AgentTraceMetadata"
    }
  },
  "$defs": {
    "AgentTraceMetadata": {
      "type": "object",
      "description": "Optional private trace metadata supplied by a user-run agent. CoinRithm\nstores only this structured summary; do not send chain-of-thought,\nsecrets, emails, or private account identity.\n",
      "properties": {
        "runId": {
          "type": [
            "string",
            "null"
          ]
        },
        "decisionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "strategyLabel": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 120
        },
        "confidence": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 1
        },
        "rationaleSummary": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 1200
        }
      }
    }
  }
}