ContextOptions
Defines optional contextual metadata that can accompany a request, allowing custom tagging or external correlation without affecting deterministic evaluation.
Properties of ContextOptions
| Name | Type | Description |
| CustomTag | string | A 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"
}
}
}