{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anthid-com/json-schema/anthid-com-symbol-risk-control-schema.json",
  "title": "SymbolRiskControl",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/controls.openapi.json#/components/schemas/SymbolRiskControl",
  "type": "object",
  "required": [
    "account_id",
    "organization_id",
    "symbol",
    "version",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "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"
        }
      ]
    },
    "organization_id": {
      "type": "string",
      "format": "uuid"
    },
    "symbol": {
      "type": "string"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "Percent": {
      "type": "string"
    },
    "Quantity": {
      "type": "string"
    }
  }
}