Developer API

ContextOptions

Defines optional contextual metadata that can accompany a request, allowing custom tagging or external correlation without affecting deterministic evaluation.

Properties of ContextOptions

NameTypeDescription
Model_TitlestringA human-readable title used to identify the model within projects, interfaces, and generated outputs. This field is informational only and does not participate in rule evaluation, proximity scoring, or confidence computation.
Model_DescriptionstringA human-readable description of the model's purpose, intended application, and decision-making capabilities. This field provides context for understanding and managing the model but does not participate in rule evaluation, proximity scoring, or confidence computation.
CustomTagstringA custom identifier supplied by the caller to label or correlate a request. This field is informational only and does not participate in rule evaluation, proximity scoring, or confidence computation.

Example

	{
  "InputSource": {
    "LastPrice": 102.45,
    "Volume": 1500000,
    "VolatilityIndex": 22.8,
    "MovingAverageSpread": 1.35
  },
  "ModelSource": {
    "resultsets": {
      "TradingRules": [
        {
          "ID": "TR-001",
          "VolatilityIndex": ">= 20",
          "MovingAverageSpread": ">= 1.0",
          "Weight": 0.8,
          "IsEnabled": true,
          "Action": "Buy"
        },
        {
          "ID": "TR-002",
          "VolatilityIndex": "< 20",
          "MovingAverageSpread": "< 0",
          "Weight": 0.6,
          "IsEnabled": true,
          "Action": "Sell"
        },
        {
          "ID": "TR-003",
          "Weight": 0.2,
          "IsEnabled": true,
          "Action": "Hold"
        }
      ]
    }
  },
  "Options": {
    "DataSettings": {
      "ActionColumnName": "Action",
      "PriorityColumnName": "VolatilityIndex",
      "WeightColumnName": "Weight",
      "DecisionIdColumnName": "ID",
      "RowFilter": "IsEnabled = true",
      "ModelName": "TradingDecisionModel"
    },
    "ContextOptions": {
      "CustomTag": "Trade-Session-Alpha"
    },
    "ConfidencePolicy": {
        "FitWeight": 1,
        "SeparationWeight": 0.03
    },
    "OutputSettings": {
      "ExecutionTraceMode": "Compact"
    }
  }
}