changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "anomalies": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "behavioralPatterns": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "dataQuality": {
- "additionalProperties": false,
- "properties": {
- "completeTradeCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "incompleteTradeCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "warnings": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "completeTradeCount",
- "incompleteTradeCount",
- "warnings"
- ],
- "type": "object"
- },
- "executionMetrics": {
- "additionalProperties": false,
- "properties": {
- "completeRecords": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "duplicateTradeIds": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "malformedRecords": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "missingPrices": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "outOfOrderTimestamps": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "completeRecords",
- "malformedRecords",
- "duplicateTradeIds",
- "outOfOrderTimestamps",
- "missingPrices"
- ],
- "type": "object"
- },
- "performanceBySession": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "fees": {
- "type": [
- "number",
- "null"
- ]
- },
- "key": {
- "type": "string"
- },
- "losses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "netPnl": {
- "type": [
- "number",
- "null"
- ]
- },
- "trades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "winRate": {
- "type": [
- "number",
- "null"
- ]
- },
- "wins": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "key",
- "trades",
- "wins",
- "losses",
- "netPnl",
- "fees",
- "winRate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "performanceByStrategy": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "fees": {
- "type": [
- "number",
- "null"
- ]
- },
- "key": {
- "type": "string"
- },
- "losses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "netPnl": {
- "type": [
- "number",
- "null"
- ]
- },
- "trades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "winRate": {
- "type": [
- "number",
- "null"
- ]
- },
- "wins": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "key",
- "trades",
- "wins",
- "losses",
- "netPnl",
- "fees",
- "winRate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "performanceBySymbol": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "fees": {
- "type": [
- "number",
- "null"
- ]
- },
- "key": {
- "type": "string"
- },
- "losses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "netPnl": {
- "type": [
- "number",
- "null"
- ]
- },
- "trades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "winRate": {
- "type": [
- "number",
- "null"
- ]
- },
- "wins": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "key",
- "trades",
- "wins",
- "losses",
- "netPnl",
- "fees",
- "winRate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "riskFlags": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "sourceTraceability": {
- "additionalProperties": false,
- "properties": {
- "notes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "portfolioExposure": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "strategyPerformance": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "tradeLog": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- },
- "tradeRisk": {
- "enum": [
- "GROK",
- "SIGNALFLOW",
- "MERGED",
- "NEW"
- ],
- "type": "string"
- }
- },
- "required": [
- "strategyPerformance",
- "tradeRisk",
- "portfolioExposure",
- "tradeLog",
- "notes"
- ],
- "type": "object"
- },
- "summary": {
- "additionalProperties": false,
- "properties": {
- "averageHoldingDurationSeconds": {
- "type": [
- "number",
- "null"
- ]
- },
- "closedTrades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "fees": {
- "type": [
- "number",
- "null"
- ]
- },
- "losses": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "maxLosingStreak": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "maxWinningStreak": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "netPnl": {
- "type": [
- "number",
- "null"
- ]
- },
- "openTrades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "totalTrades": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "wins": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "totalTrades",
- "closedTrades",
- "openTrades",
- "wins",
- "losses",
- "netPnl",
- "fees",
- "maxWinningStreak",
- "maxLosingStreak",
- "averageHoldingDurationSeconds"
- ],
- "type": "object"
- }
- },
- "required": [
- "summary",
- "performanceBySymbol",
- "performanceByStrategy",
- "performanceBySession",
- "executionMetrics",
- "behavioralPatterns",
- "anomalies",
- "riskFlags",
- "dataQuality"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "nextAction": {
- "additionalProperties": false,
- "properties": {
- "instruction": {
- "type": "string"
- },
- "target": {
- "const": "x402_endpoint",
- "type": "string"
- },
- "type": {
- "const": "pay_and_retry",
- "type": "string"
- }
- },
- "required": [
- "type",
- "target",
- "instruction"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "properties": {
- "endpoint": {
- "type": "string"
- },
- "method": {
- "const": "POST",
- "type": "string"
- },
- "retrySameBody": {
- "const": true,
- "type": "boolean"
- }
- },
- "required": [
- "endpoint",
- "method",
- "retrySameBody"
- ],
- "type": "object"
- },
- "preview": {
- "additionalProperties": false,
- "properties": {
- "fullResultAvailable": {
- "const": true,
- "type": "boolean"
- },
- "inputAccepted": {
- "const": true,
- "type": "boolean"
- },
- "summary": {
- "type": "string"
- },
- "useCases": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "inputAccepted",
- "fullResultAvailable",
- "summary",
- "useCases"
- ],
- "type": "object"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "currency": {
- "type": "string"
- },
- "protocol": {
- "const": "x402",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency",
- "protocol"
- ],
- "type": "object"
- },
- "requestId": {
- "type": "string"
- },
- "status": {
- "const": "payment_required",
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "tool",
- "requestId",
- "price",
- "preview",
- "payment",
- "nextAction"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "anomalies": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "behavioralPatterns": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "dataQuality": {
+ "additionalProperties": false,
+ "properties": {
+ "completeTradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "incompleteTradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "completeTradeCount",
+ "incompleteTradeCount",
+ "warnings"
+ ],
+ "type": "object"
+ },
+ "executionMetrics": {
+ "additionalProperties": false,
+ "properties": {
+ "completeRecords": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "duplicateTradeIds": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "malformedRecords": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "missingPrices": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outOfOrderTimestamps": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "completeRecords",
+ "malformedRecords",
+ "duplicateTradeIds",
+ "outOfOrderTimestamps",
+ "missingPrices"
+ ],
+ "type": "object"
+ },
+ "performanceBySession": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fees": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "losses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "netPnl": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "trades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "winRate": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wins": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key",
+ "trades",
+ "wins",
+ "losses",
+ "netPnl",
+ "fees",
+ "winRate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "performanceByStrategy": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fees": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "losses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "netPnl": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "trades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "winRate": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wins": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key",
+ "trades",
+ "wins",
+ "losses",
+ "netPnl",
+ "fees",
+ "winRate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "performanceBySymbol": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fees": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "key": {
+ "type": "string"
+ },
+ "losses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "netPnl": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "trades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "winRate": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wins": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key",
+ "trades",
+ "wins",
+ "losses",
+ "netPnl",
+ "fees",
+ "winRate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "riskFlags": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "sourceTraceability": {
+ "additionalProperties": false,
+ "properties": {
+ "notes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "portfolioExposure": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "strategyPerformance": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "tradeLog": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ },
+ "tradeRisk": {
+ "enum": [
+ "GROK",
+ "SIGNALFLOW",
+ "MERGED",
+ "NEW"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "strategyPerformance",
+ "tradeRisk",
+ "portfolioExposure",
+ "tradeLog",
+ "notes"
+ ],
+ "type": "object"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "averageHoldingDurationSeconds": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "closedTrades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fees": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "losses": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxLosingStreak": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxWinningStreak": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "netPnl": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "openTrades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "totalTrades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "wins": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "totalTrades",
+ "closedTrades",
+ "openTrades",
+ "wins",
+ "losses",
+ "netPnl",
+ "fees",
+ "maxWinningStreak",
+ "maxLosingStreak",
+ "averageHoldingDurationSeconds"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "summary",
+ "performanceBySymbol",
+ "performanceByStrategy",
+ "performanceBySession",
+ "executionMetrics",
+ "behavioralPatterns",
+ "anomalies",
+ "riskFlags",
+ "dataQuality"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "nextAction": {
+ "additionalProperties": false,
+ "properties": {
+ "instruction": {
+ "type": "string"
+ },
+ "target": {
+ "enum": [
+ "x402_endpoint",
+ "mcp_credits_endpoint",
+ "payment_endpoint",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "pay_and_retry",
+ "authorize_and_use_mcp_credits",
+ "payment_unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target",
+ "instruction"
+ ],
+ "type": "object"
+ },
+ "payment": {
+ "additionalProperties": false,
+ "properties": {
+ "endpoint": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "method": {
+ "const": "POST",
+ "type": "string"
+ },
+ "retrySameBody": {
+ "const": true,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "endpoint",
+ "method",
+ "retrySameBody"
+ ],
+ "type": "object"
+ },
+ "paymentGuidance": {},
+ "preview": {
+ "additionalProperties": false,
+ "properties": {
+ "fullResultAvailable": {
+ "const": true,
+ "type": "boolean"
+ },
+ "inputAccepted": {
+ "const": true,
+ "type": "boolean"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "useCases": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "inputAccepted",
+ "fullResultAvailable",
+ "summary",
+ "useCases"
+ ],
+ "type": "object"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "protocol": {
+ "enum": [
+ "x402",
+ "api_credits",
+ "subscription",
+ "l402",
+ "mpp",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency",
+ "protocol"
+ ],
+ "type": "object"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "const": "payment_required",
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "tool",
+ "requestId",
+ "price",
+ "preview",
+ "payment",
+ "nextAction"
+ ],
+ "type": "object"
+ }
+]