{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moment/json-schema/moment-control-spec-schema.json",
  "title": "ControlSpec",
  "description": "Defines the state of a control to be created or updated\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moment-risk-api-openapi.yml#/components/schemas/ControlSpec",
  "type": "object",
  "properties": {
    "applies_to": {
      "description": "Describes the set of entities that the control manages.\n",
      "allOf": [
        {
          "$ref": "#/$defs/ScopeDef"
        }
      ]
    },
    "applies_to_asset_classes": {
      "description": "The list of asset classes that the control will apply to.\nAt least one asset class is required.",
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "control": {
      "$ref": "#/$defs/ControlDefinition"
    },
    "enabled": {
      "description": "Toggle to enable or disable the control. If the control is disabled,\nit will not be used to validate orders.\n",
      "type": "boolean",
      "default": true
    },
    "marketplace_restriction": {
      "description": "What the marketplace does with the securities the control matches.\n`hide` removes them from the marketplace; when absent they stay\nvisible. `hide` is only valid on a universe control. Order entry is\ngoverned by `remediation` alone.\n",
      "type": "string",
      "enum": [
        "hide"
      ]
    },
    "name": {
      "description": "The name of the control. This name is used to identify the control\nin the UI and in other endpoints.\n",
      "type": "string"
    },
    "remediation": {
      "description": "The remediation for the control, which indicates how an order should\nbe handled if it violates the control. `reject` blocks the order,\n`flag` holds it for review, and `none` takes no action on it.\nRemediation governs order entry only; `marketplace_restriction`\ngoverns marketplace visibility.\n",
      "type": "string",
      "default": "reject",
      "enum": [
        "reject",
        "flag",
        "none"
      ]
    }
  },
  "required": [
    "applies_to",
    "applies_to_asset_classes",
    "control",
    "name"
  ],
  "$defs": {
    "AccountCondition": {
      "description": "Limits an attestation control to some of the accounts on an order.\nOnly the accounts that pass every field set here must complete the\nattestation; a field left unset is not tested. An account whose flag\nthe order never stated passes no test, so it is excluded.\n\nDo not set `is_discretionary` to true together with `is_solicited`. No\naccount can pass both, because a discretionary account carries no\nsolicitation.\n",
      "type": "object",
      "properties": {
        "is_discretionary": {
          "description": "True to include only the accounts the broker traded at its own discretion, false to include only those it did not.",
          "type": "boolean"
        },
        "is_natural_person": {
          "description": "True to include only the accounts held by a natural person, false to include only those held by a legal entity. Some trusts and estates cannot be classified either way, and both values exclude them.",
          "type": "boolean"
        },
        "is_solicited": {
          "description": "True to include only the accounts where the advisor solicited the order, false to include only those where the client asked for it. Leave unset when `is_discretionary` is true.",
          "type": "boolean"
        }
      }
    },
    "AttestationAttributes": {
      "type": "object",
      "properties": {
        "account_condition": {
          "description": "Which accounts on the order must complete the attestation. If this\nfield is not present, all of them must.\n",
          "allOf": [
            {
              "$ref": "#/$defs/AccountCondition"
            }
          ]
        },
        "applicable_to_buy_orders": {
          "description": "Whether the control applies to buy orders. Defaults to true, matching universe constraints. Indications of interest and block works ride on this flag.",
          "type": "boolean",
          "default": true,
          "x-go-type-skip-optional-pointer": true,
          "x-omitempty": false
        },
        "applicable_to_sell_orders": {
          "description": "Whether the control applies to sell orders. Defaults to false, matching universe constraints, so an attestation applies to buys unless it says otherwise. Indications of interest and block works ride on this flag.",
          "type": "boolean",
          "default": false,
          "x-go-type-skip-optional-pointer": true,
          "x-omitempty": false
        },
        "attestation": {
          "description": "The attestation this control requires, named by id. Exactly one, so an order requiring several comes from several controls.",
          "type": "object",
          "properties": {
            "id": {
              "description": "Identifier for the attestation, stable across its versions.",
              "allOf": [
                {
                  "$ref": "#/$defs/ULID"
                }
              ]
            }
          },
          "required": [
            "id"
          ]
        },
        "parameters": {
          "allOf": [
            {
              "$ref": "#/$defs/AttestationParameters"
            }
          ]
        }
      },
      "required": [
        "attestation"
      ]
    },
    "AttestationParameters": {
      "description": "Conditions that trigger an attestation after its instrument filter and order-side scope apply.",
      "type": "object",
      "properties": {
        "below_de_minimis": {
          "description": "Require the attestation when a buy order is priced at or below the instrument's de minimis threshold. Market orders also trigger because they have no limit price.",
          "type": "boolean"
        }
      }
    },
    "AttestationRequirement": {
      "description": "An attestation requirement asks the advisor to complete an attestation\nbefore the order can be submitted. When the attestation is incomplete at\nsubmit, `remediation` decides what happens: `reject` blocks the order,\n`flag` lets it through marked.\n\n`filter` gates whether the control applies at all — an order the\nexpression does not select passes silently, rather than failing the\ncontrol.\n\n---\n\n```json\n{\n  \"type\": \"attestation\",\n  \"filter\": {\n    \"type\": { \"equal_to\": \"municipal\" }\n  },\n  \"attestation\": { \"id\": \"attn_01JZ8X9Y2K3M4N5P6Q7R8S9T0A\" },\n  \"parameters\": { \"below_de_minimis\": true },\n  \"account_condition\": { \"is_solicited\": true },\n  \"applicable_to_buy_orders\": true,\n  \"applicable_to_sell_orders\": false\n}\n```\n\nThe above requires the referenced attestation on municipal buy orders,\nand asks only the accounts the advisor solicited.\n",
      "allOf": [
        {
          "$ref": "#/$defs/ControlFilter"
        },
        {
          "$ref": "#/$defs/AttestationAttributes"
        },
        {
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "ControlDefinition": {
      "description": "The control itself. One of 4 types: UniverseConstraint,\nExposureLimit, OrderValidation, or AttestationRequirement.\n",
      "oneOf": [
        {
          "$ref": "#/$defs/AttestationRequirement"
        },
        {
          "$ref": "#/$defs/ExposureLimit"
        },
        {
          "$ref": "#/$defs/OrderValidation"
        },
        {
          "$ref": "#/$defs/UniverseConstraint"
        }
      ]
    },
    "ControlFilter": {
      "properties": {
        "filter": {
          "description": "The filter expression that defines the subset of securities that the\ncontrol applies to. If this field is not present, the control applies\nto all instruments.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataFilter"
            }
          ]
        }
      }
    },
    "ExposureLimit": {
      "description": "An exposure limit control manages the risk for the organization that is\nattempting to execute an order. The control is defined by an optional\nfilter expression that is used to identify the set of securities that\nthe control applies to. The control then evaluates the order and its\nanticipated effects against the state of the organization's portfolio\nto determine if the order is within the limits set by the control.\n",
      "allOf": [
        {
          "$ref": "#/$defs/ControlFilter"
        },
        {
          "$ref": "#/$defs/ExposureSettings"
        },
        {
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "ExposureSettings": {
      "properties": {
        "closed_volume_maximum": {
          "description": "The maximum volume filled in all orders, in currency, that the\norganization can have at any given time. Orders that would violate this\nlimit will be rejected.\n",
          "type": "number"
        },
        "open_volume_maximum": {
          "description": "The maximum daily volume, in currency, that can be open (orders\nissued but not yet filled) at any given time. Orders that would\nviolate this limit will be rejected.\n",
          "type": "number"
        },
        "total_volume_maximum": {
          "description": "The maximum volume of open and closed orders, in currency, that the\norganization can have at any given time. Order that would violate this\nlimit will be rejected.\n",
          "type": "number"
        }
      }
    },
    "OrderAttributes": {
      "properties": {
        "absolute_price_pop_maximum": {
          "description": "The maximum price (percentage of par) that an order can be executed\nat. This value is an absolute price and is used to determine the\nmaximum price that an order can be executed at.\n",
          "type": "number"
        },
        "absolute_price_pop_minimum": {
          "description": "The minimum price (percentage of par) that an order can be executed\nat. This value is an absolute price and is used to determine the\nminimum price that an order can be executed at.\n",
          "type": "number"
        },
        "account_identifier_patterns": {
          "description": "A list of pattern expressions that are used to match the account\nidentifiers that the control applies to. If an account identifier\nmatches any of the regular expressions, the control applies to that\naccount.\n",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "denomination_minimum": {
          "description": "The minimum denomination that an order can be created with. The\nsize notional of the order must be divisble by the denomination\nwith no remainder.\n",
          "type": "number"
        },
        "market_value_maximum": {
          "description": "The maximum market value that an order can be executed.\n",
          "type": "number"
        },
        "market_value_minimum": {
          "description": "The minimum market value that an order can be executed.\n",
          "type": "number"
        },
        "prev_close_price_band_percentage_lower": {
          "description": "The lower bound of the previous close price band, expressed as percentage\ndeviation from the security's previous close price. A value of 2.0 would\nindicate that the order price must be greater than 98% of the previous\nclose price (2% below).\n",
          "type": "number"
        },
        "prev_close_price_band_percentage_upper": {
          "description": "The upper bound of the previous close price band, expressed as percentage\ndeviation from the security's previous close price. A value of 2.0 would\nindicate that the order price must be less than 102% of the previous\nclose price (2% above).\n",
          "type": "number"
        },
        "price_band_percentage_lower": {
          "description": "The lower bound of the PMP band for the control. This value is a\npercentage and is used to determine the minimum price that an order\ncan be executed\n",
          "type": "number"
        },
        "price_band_percentage_upper": {
          "description": "The upper bound of the PMP band for the control. This value is a\npercentage and is used to determine the maximum price that an order\ncan be executed at.\n",
          "type": "number"
        },
        "settlement_calendar_days_out_maximum": {
          "description": "The maximum number of calendar days from today that an order's\nsettlement date may be. Orders settling more than this many\ncalendar days out will be flagged by the control.\n",
          "type": "integer",
          "format": "int32",
          "maximum": 1000,
          "minimum": 0
        },
        "size_notional_maximum": {
          "description": "The maximum notional value that an order can be executed.\n",
          "type": "number"
        },
        "size_notional_minimum": {
          "description": "The minimum notional value that an order can be executed.\n",
          "type": "number"
        },
        "yield_to_maturity_percentage_maximum": {
          "description": "The maximum yield to maturity that an order can be executed.\n",
          "type": "number"
        },
        "yield_to_maturity_percentage_minimum": {
          "description": "The minimum yield to maturity that an order can be executed.\n",
          "type": "number"
        },
        "yield_to_worst_percentage_maximum": {
          "description": "The maximum yield to worst that an order can be executed.\n",
          "type": "number"
        },
        "yield_to_worst_percentage_minimum": {
          "description": "The minimum yield to worst that an order can be executed.\n",
          "type": "number"
        }
      }
    },
    "OrderValidation": {
      "description": "An order validation control is a control that is applied to an\norder before it is executed. The control is defined by an optional\nfilter expression that is used to identify the set of securities\nthat the control applies to. The control is then evaluated against\nthe order to determine if the order is within the limits set by the\ncontrol.\n",
      "allOf": [
        {
          "$ref": "#/$defs/ControlFilter"
        },
        {
          "$ref": "#/$defs/OrderAttributes"
        },
        {
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "RefDataAny": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        }
      ]
    },
    "RefDataAnyOrFieldRef": {
      "description": "A value that can be a static literal (string, boolean, number) or a\nfield reference for field-to-field comparisons.\n",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "$ref": "#/$defs/RefDataFieldReference"
        }
      ]
    },
    "RefDataArray": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RefDataAny"
      }
    },
    "RefDataComparable": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "$ref": "#/$defs/RefDataFieldReference"
        }
      ]
    },
    "RefDataExpression": {
      "description": "The filter will be applied to the refdata field indicated, using one\nand only one of the specified attributes. Each attribute specifies a\ncondition and the values for comparison.\n\nValues can be static literals (strings, numbers, booleans) or field\nreferences. A field reference uses the syntax `{\"$field\": \"field_name\"}`\nto compare the source field against another field on the same instrument,\nrather than a static value. Field references are supported on all scalar\ncomparison operators (equal_to, greater_than, less_than, etc.) but not\non array operators (in, not_in).\n",
      "type": "object",
      "properties": {
        "ends_with": {
          "description": "Matches if the field ends with any of the specified values.\n",
          "type": "string"
        },
        "equal_to": {
          "description": "Matches if the field is equal to any of the specified values.\nAccepts static values or a field reference.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataAnyOrFieldRef"
            }
          ]
        },
        "greater_than": {
          "description": "Matches if the field is greater than any of the specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataComparable"
            }
          ]
        },
        "greater_than_or_equal_to": {
          "description": "Matches if the field is greater than or equal to any of the specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataComparable"
            }
          ]
        },
        "in": {
          "description": "Matches if the field is in the list of specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataArray"
            }
          ]
        },
        "is_null": {
          "description": "Matches if the field is null or not NULL.\n",
          "type": "boolean"
        },
        "less_than": {
          "description": "Matches if the field is less than any of the specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataComparable"
            }
          ]
        },
        "less_than_or_equal_to": {
          "description": "Matches if the field is less than or equal to any of the specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataComparable"
            }
          ]
        },
        "not_equal_to": {
          "description": "Matches if the field is not equal to any of the specified values.\nAccepts static values or a field reference.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataAnyOrFieldRef"
            }
          ]
        },
        "not_in": {
          "description": "Matches if the field is not in the list of specified values.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataArray"
            }
          ]
        },
        "starts_with": {
          "description": "Matches if the field starts with any of the specified values.\n",
          "type": "string"
        }
      },
      "oneOf": [
        {
          "required": [
            "ends_with"
          ]
        },
        {
          "required": [
            "equal_to"
          ]
        },
        {
          "required": [
            "in"
          ]
        },
        {
          "required": [
            "is_null"
          ]
        },
        {
          "required": [
            "greater_than"
          ]
        },
        {
          "required": [
            "greater_than_or_equal_to"
          ]
        },
        {
          "required": [
            "less_than"
          ]
        },
        {
          "required": [
            "less_than_or_equal_to"
          ]
        },
        {
          "required": [
            "not_equal_to"
          ]
        },
        {
          "required": [
            "not_in"
          ]
        },
        {
          "required": [
            "starts_with"
          ]
        }
      ]
    },
    "RefDataFieldReference": {
      "description": "A reference to another field on the same instrument, used for\nfield-to-field comparisons. Instead of comparing a field against a\nstatic value, this allows comparing one field against another.\n\nFor example, to ensure that `days_to_next_sink` is greater than\n`call_notification_min`:\n\n```json\n{\n  \"days_to_next_sink\": {\n    \"greater_than\": { \"$field\": \"call_notification_min\" }\n  }\n}\n```\n",
      "type": "object",
      "properties": {
        "$field": {
          "description": "The name of the reference data field to compare against.\n",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "$field"
      ]
    },
    "RefDataFilter": {
      "description": "A `RefDataFilter` is an expression that is used to identify a set of\ninstruments based on their ref data characteristics.\n\nA simple expression is a reference data field name, an operator and one\nor more operands. E.g. the expression\n\n```json\n{\n  \"type\": {\n    \"in\": [ \"treasury\" ]\n  }\n}\n```\n\nwould select all instruments that have a `type` attribute with the value of\n`treasury`.\n\nA `RefDataFilter` can also be a compound expression. There are 2 flavors,\nan `and` expression and an `or` expression. Both are arrays of\n`RefDataFilter`s. E.g.\n\n```json\n{\n  \"and\": [\n    {\n      \"type\": {\n        \"in\": [ \"treasury\" ]\n      }\n    },\n    {\n      \"currency\": {\n        \"equal_to\": \"USD\"\n      }\n    }\n  ]\n}\n```\n",
      "type": "object",
      "properties": {
        "and": {
          "description": "The `and` filter is used to combine multiple filters together. The\nfilters are applied in order, and the result is the intersection of\nthe filters.\n",
          "type": "array",
          "items": {
            "$ref": "#/$defs/RefDataFilter"
          }
        },
        "or": {
          "description": "The `or` filter is used to combine multiple filters together. The\nfilters are applied in order, and the result is the union of the\nfilters.\n",
          "type": "array",
          "items": {
            "$ref": "#/$defs/RefDataFilter"
          }
        }
      },
      "additionalProperties": {
        "$ref": "#/$defs/RefDataExpression"
      }
    },
    "Scope": {
      "description": "Indicates the type of entity a control applies to.\n\n- `account` indicates the control applies to the indicated accounts\n  (entities).\n- `advisor` indicates the control applies to the indicated advisor codes.\n- `global` indicates the control applies to the indicated organization\n  (entity) and all child organizations.\n- `organization` indicates the control applies to the indicated\n  organizations (entities).\n- `risk-group` indicates the control applies to the indicated\n  risk group(s) (entities).\n",
      "type": "string",
      "enum": [
        "account",
        "advisor",
        "global",
        "organization",
        "risk-group"
      ]
    },
    "ScopeDef": {
      "description": "Indicates the entities that the control applies to. The scope is an enum\nidicating the type of entity that the control applies to, and the\nentity_ids are the unique identifiers for the organizations/accounts/etc\nto which the control applies.\n",
      "type": "object",
      "properties": {
        "entity_ids": {
          "description": "The list of entity IDs that the control applies to. This list can\ncontain any number of entity IDs and can be used to apply the control\nto multiple entities.\n\nGenerally the entity IDs will be [ULIDs](#ULID),\nbut this restriction is not enforced. The values should simply make sense\ngiven the scope.\n\nNote: Cannot be used together with excluded_entity_ids.\n",
          "type": "array",
          "items": {
            "type": "string"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "excluded_entity_ids": {
          "description": "The list of entity IDs that are excluded from the control. This list can\ncontain any number of entity IDs and can be used to exclude specific\nentities from the control scope.\n\nGenerally the entity IDs will be [ULIDs](#ULID),\nbut this restriction is not enforced. The values should simply make sense\ngiven the scope.\n\nNote: Cannot be used together with entity_ids. Only available for organization scope.\n",
          "type": "array",
          "items": {
            "type": "string"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "scope": {
          "description": "Indicates the type of entity a control applies to.\n",
          "allOf": [
            {
              "$ref": "#/$defs/Scope"
            }
          ]
        }
      },
      "not": {
        "allOf": [
          {
            "properties": {
              "entity_ids": {
                "type": "array"
              }
            },
            "required": [
              "entity_ids"
            ]
          },
          {
            "properties": {
              "excluded_entity_ids": {
                "type": "array"
              }
            },
            "required": [
              "excluded_entity_ids"
            ]
          }
        ]
      },
      "oneOf": [
        {
          "required": [
            "entity_ids"
          ]
        },
        {
          "required": [
            "excluded_entity_ids"
          ]
        }
      ],
      "required": [
        "scope"
      ]
    },
    "ULID": {
      "description": "A Universally-unique Lexicographically-sortable IDentifier is a 128-bit string that's both unique\nand sortable by creation time. ULIDs in the context of this API can also be prefixed with\na short string indicating the type of entity the ULID identifies, e.g. `acct_` would indicate the\nULID is the identifier for an account entity.\n",
      "type": "string",
      "pattern": "^([a-z]+_)?[0-9A-Z]{26}$"
    },
    "UniverseConstraint": {
      "description": "A universe constraint is a control that restricts the set of securities\nthat can be traded. The constraint is defined by a pair of filter\nexpressions, one required and one optional. The two expressions are combined, such that\nthe `parameters` expression is applied to the subset of securities indicated by the `filter`\nexpression.\n\n---\n\n```json\n{\n  \"filter\": {\n    \"type\": {\n      \"in\": [ \"treasury\" ]\n    }\n  },\n  \"parameters\": {\n    \"reg_s\": {\n      \"equal_to\": true\n    }\n  }\n}\n```\n\nThe above example constrains the set of tradeable treasury instruments to those\nthat are are Reg S eligible. Assuming no other controls are applicable, the affected\norganizations' tradeable universe would be:\n\n- Reg S-eligible treasuries;\n- all munis;\n- all corporates.\n\nUniverse constraints without a `filter` expression will be applied to all instruments. The\nfollowing control would restrict the tradeable universe to instruments denominated in USD:\n\n```json\n{\n  \"parameters\": {\n    \"currency\": {\n      \"equal_to\": \"USD\"\n    }\n  }\n}\n```\n\nCombined with the first control, the affected organizations' tradeable universe would be:\n\n- Reg S-eligible treasuries denominated in USD;\n- all munis denominated in USD;\n- all corporates denominated in USD.\n\nWe could then add a third control:\n\n```json\n{\n  \"filter\": {\n    \"type\": {\n      \"in\": [\n        \"corporate\",\n        \"muninicpal\",\n      ]\n    }\n  },\n  \"parameters\": {\n    \"and\": [\n      \"reg_s\": {\n        \"equal_to\": true\n      },\n      \"144a\": {\n        \"equal_to\": true\n      }\n    ]\n  }\n}\n```\n\nwhich would further restrict the tradeable universe to:\n\n- Reg S-eligible treasuries denominated in USD;\n- 144A-eligible munis denominated in USD that are not also Reg S-eligible; and\n- 144A-eligible corporates denominated in USD that are not also Reg-S eligible.\n\n### Field-to-field comparisons\n\nFilter values can also reference other fields on the same instrument using the\n`$field` syntax. For example, the following control ensures that an instrument's\n`days_to_next_sink` is greater than its `call_notification_min`:\n\n```json\n{\n  \"parameters\": {\n    \"days_to_next_sink\": {\n      \"greater_than\": { \"$field\": \"call_notification_min\" }\n    }\n  }\n}\n```\n\nField references are supported on all scalar comparison operators\n(`equal_to`, `greater_than`, `less_than`, etc.) but not on array\noperators (`in`, `not_in`).\n",
      "allOf": [
        {
          "$ref": "#/$defs/ControlFilter"
        },
        {
          "$ref": "#/$defs/UniverseParameters"
        },
        {
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "UniverseParameters": {
      "type": "object",
      "properties": {
        "applicable_to_buy_orders": {
          "description": "Indicates if the control applies to buy orders. If this field is set to\n`true`, the control will be evaluated for buy orders. If this field is\nset to `false`, the control will not be evaluated for buy orders.\n",
          "type": "boolean",
          "default": true
        },
        "applicable_to_holdings": {
          "description": "Indicates if the control applies to holdings. If this field is set to\n`true`, the control will be evaluated for holdings. If this field is\nset to `false`, the control will not be evaluated for holdings.\n",
          "type": "boolean",
          "default": false
        },
        "applicable_to_sell_orders": {
          "description": "Indicates if the control applies to sell orders. If this field is set to\n`true`, the control will be evaluated for sell orders. If this field is\nset to `false`, the control will not be evaluated for sell orders.\n",
          "type": "boolean",
          "default": false
        },
        "parameters": {
          "description": "The filter expression that defines the constraint. Used to describe the\nconstrained refdata attributes of the instrument(s) indicated by the (optional)\n`filter` expression.\n",
          "allOf": [
            {
              "$ref": "#/$defs/RefDataFilter"
            }
          ]
        }
      },
      "required": [
        "parameters"
      ]
    }
  }
}