{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anthid-com/json-schema/anthid-com-list-effective-symbol-controls-response-schema.json",
  "title": "ListEffectiveSymbolControlsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthid-com-effective-controls-api-openapi.yml#/components/schemas/ListEffectiveSymbolControlsResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EffectiveSymbolControl"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "EffectiveSymbolControl": {
      "type": "object",
      "required": [
        "symbol"
      ],
      "properties": {
        "controls": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/SymbolControl"
            }
          ]
        },
        "risk_controls": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/SymbolRiskControl"
            }
          ]
        },
        "symbol": {
          "type": "string"
        },
        "time_controls": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/SymbolTimeControl"
            }
          ]
        }
      }
    },
    "Percent": {
      "type": "string"
    },
    "Quantity": {
      "type": "string"
    },
    "SymbolControl": {
      "type": "object",
      "required": [
        "account_id",
        "organization_id",
        "version",
        "symbol",
        "manually_disabled",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "account_id": {
          "type": "string",
          "format": "uuid"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "manual_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "manually_disabled": {
          "type": "boolean"
        },
        "organization_id": {
          "type": "string",
          "format": "uuid"
        },
        "symbol": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "version": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "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"
        }
      }
    },
    "SymbolTimeControl": {
      "type": "object",
      "required": [
        "account_id",
        "organization_id",
        "version",
        "symbol",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "account_id": {
          "type": "string",
          "format": "uuid"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "organization_id": {
          "type": "string",
          "format": "uuid"
        },
        "stale_order_millis": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "symbol": {
          "type": "string"
        },
        "trading_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "trading_start": {
          "type": [
            "string",
            "null"
          ]
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "version": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}