{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anthid-com/json-schema/anthid-com-upsert-risk-control-request-schema.json",
  "title": "UpsertRiskControlRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthid-com-account-risk-controls-api-openapi.yml#/components/schemas/UpsertRiskControlRequest",
  "type": "object",
  "properties": {
    "max_daily_loss_amount": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Quantity"
        }
      ]
    },
    "max_daily_loss_percent": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Percent"
        }
      ]
    },
    "max_order_size": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Quantity"
        }
      ]
    },
    "max_position_size": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Quantity"
        }
      ]
    }
  },
  "$defs": {
    "Percent": {
      "type": "string"
    },
    "Quantity": {
      "type": "string"
    }
  }
}