{
  "classification": "Invented teaching inputs; XCU is a fictional unit, X1/X2 opaque instruments. Not a firm rule, account record or eligibility decision.",
  "cash": {
    "currency": "XCU",
    "starting_cash": "1500",
    "as_of": "2026-10-09T18:00:00Z",
    "events": [
      {
        "id": "C1",
        "at": "2026-10-01T09:00:00Z",
        "attempt": "A1",
        "direction": "debit",
        "category": "fee",
        "status": "posted",
        "amount": "180"
      },
      {
        "id": "C2",
        "at": "2026-10-01T09:05:00Z",
        "attempt": "A1",
        "direction": "debit",
        "category": "data",
        "status": "posted",
        "amount": "25.50"
      },
      {
        "id": "C3",
        "at": "2026-10-03T10:00:00Z",
        "attempt": "A1",
        "direction": "debit",
        "category": "reset",
        "status": "posted",
        "amount": "90"
      },
      {
        "id": "C4",
        "at": "2026-10-05T09:00:00Z",
        "attempt": "A2",
        "direction": "debit",
        "category": "fee",
        "status": "posted",
        "amount": "180"
      },
      {
        "id": "C5",
        "at": "2026-10-06T11:00:00Z",
        "attempt": "A2",
        "direction": "debit",
        "category": "activation",
        "status": "pending",
        "amount": "120"
      },
      {
        "id": "C6",
        "at": "2026-10-07T12:00:00Z",
        "attempt": "A1",
        "direction": "credit",
        "category": "refund",
        "status": "pending",
        "amount": "180"
      },
      {
        "id": "C7",
        "at": "2026-10-08T12:00:00Z",
        "attempt": "A2",
        "direction": "credit",
        "category": "payout",
        "status": "posted",
        "amount": "300"
      },
      {
        "id": "C8",
        "at": "2026-10-09T10:00:00Z",
        "attempt": "A2",
        "direction": "debit",
        "category": "other",
        "status": "void",
        "amount": "15"
      }
    ]
  },
  "news": {
    "clock": "supplied-UTC",
    "windows": [
      {
        "id": "W1",
        "start": "2026-10-07T11:58:00Z",
        "end": "2026-10-07T12:02:00Z",
        "start_inclusive": true,
        "end_inclusive": true,
        "instruments": [
          "X1"
        ],
        "actions": [
          "open",
          "close",
          "stop_fill",
          "target_fill"
        ]
      }
    ],
    "events": [
      {
        "id": "E1",
        "at": "2026-10-07T11:57:59Z",
        "instrument": "X1",
        "action": "open"
      },
      {
        "id": "E2",
        "at": "2026-10-07T11:58:00Z",
        "instrument": "X1",
        "action": "open"
      },
      {
        "id": "E3",
        "at": "2026-10-07T12:00:00Z",
        "instrument": "X1",
        "action": "stop_fill"
      },
      {
        "id": "E4",
        "at": "2026-10-07T12:00:00Z",
        "instrument": "X2",
        "action": "open"
      },
      {
        "id": "E5",
        "at": "2026-10-07T12:01:00Z",
        "instrument": "X1",
        "action": "cancel"
      },
      {
        "id": "E6",
        "at": "2026-10-07T12:02:00Z",
        "instrument": "X1",
        "action": "close"
      },
      {
        "id": "E7",
        "at": "2026-10-07T12:02:01Z",
        "instrument": "X1",
        "action": "target_fill"
      }
    ]
  },
  "expected_cash": {
    "posted_debits": "475.5",
    "posted_credits": "300",
    "posted_cash": "1324.5",
    "minimum_posted_cash": "1024.5",
    "pending_debits": "120",
    "pending_credits": "180",
    "cash_after_pending_debits": "1204.5",
    "cash_shortfalls": []
  },
  "expected_news": {
    "matched_events": [
      "E2",
      "E3",
      "E6"
    ],
    "match_count": 3,
    "unmatched_events": [
      "E1",
      "E4",
      "E5",
      "E7"
    ]
  },
  "account_approval": null,
  "payout_eligibility": null,
  "continuous_monitoring": null,
  "strategy_validation": null,
  "variants": {
    "cash": [
      {
        "name": "posted-versus-pending",
        "inputs": {
          "currency": "XCU",
          "starting_cash": "1500",
          "as_of": "2026-10-09T18:00:00Z",
          "events": [
            {
              "id": "C1",
              "at": "2026-10-01T09:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C2",
              "at": "2026-10-01T09:05:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "data",
              "status": "posted",
              "amount": "25.50"
            },
            {
              "id": "C3",
              "at": "2026-10-03T10:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "reset",
              "status": "posted",
              "amount": "90"
            },
            {
              "id": "C4",
              "at": "2026-10-05T09:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C5",
              "at": "2026-10-06T11:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "activation",
              "status": "pending",
              "amount": "120"
            },
            {
              "id": "C6",
              "at": "2026-10-07T12:00:00Z",
              "attempt": "A1",
              "direction": "credit",
              "category": "refund",
              "status": "pending",
              "amount": "180"
            },
            {
              "id": "C7",
              "at": "2026-10-08T12:00:00Z",
              "attempt": "A2",
              "direction": "credit",
              "category": "payout",
              "status": "posted",
              "amount": "300"
            },
            {
              "id": "C8",
              "at": "2026-10-09T10:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "other",
              "status": "void",
              "amount": "15"
            }
          ]
        }
      },
      {
        "name": "refund-received",
        "inputs": {
          "currency": "XCU",
          "starting_cash": "1500",
          "as_of": "2026-10-09T18:00:00Z",
          "events": [
            {
              "id": "C1",
              "at": "2026-10-01T09:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C2",
              "at": "2026-10-01T09:05:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "data",
              "status": "posted",
              "amount": "25.50"
            },
            {
              "id": "C3",
              "at": "2026-10-03T10:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "reset",
              "status": "posted",
              "amount": "90"
            },
            {
              "id": "C4",
              "at": "2026-10-05T09:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C5",
              "at": "2026-10-06T11:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "activation",
              "status": "pending",
              "amount": "120"
            },
            {
              "id": "C6",
              "at": "2026-10-07T12:00:00Z",
              "attempt": "A1",
              "direction": "credit",
              "category": "refund",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C7",
              "at": "2026-10-08T12:00:00Z",
              "attempt": "A2",
              "direction": "credit",
              "category": "payout",
              "status": "posted",
              "amount": "300"
            },
            {
              "id": "C8",
              "at": "2026-10-09T10:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "other",
              "status": "void",
              "amount": "15"
            }
          ]
        }
      },
      {
        "name": "shortfall-then-recovery",
        "inputs": {
          "currency": "XCU",
          "starting_cash": "400",
          "as_of": "2026-10-09T18:00:00Z",
          "events": [
            {
              "id": "C1",
              "at": "2026-10-01T09:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C2",
              "at": "2026-10-01T09:05:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "data",
              "status": "posted",
              "amount": "25.50"
            },
            {
              "id": "C3",
              "at": "2026-10-03T10:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "reset",
              "status": "posted",
              "amount": "90"
            },
            {
              "id": "C4",
              "at": "2026-10-05T09:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C5",
              "at": "2026-10-06T11:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "activation",
              "status": "pending",
              "amount": "120"
            },
            {
              "id": "C6",
              "at": "2026-10-07T12:00:00Z",
              "attempt": "A1",
              "direction": "credit",
              "category": "refund",
              "status": "pending",
              "amount": "180"
            },
            {
              "id": "C7",
              "at": "2026-10-08T12:00:00Z",
              "attempt": "A2",
              "direction": "credit",
              "category": "payout",
              "status": "posted",
              "amount": "300"
            },
            {
              "id": "C8",
              "at": "2026-10-09T10:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "other",
              "status": "void",
              "amount": "15"
            }
          ]
        }
      },
      {
        "name": "pending-debit-shortfall",
        "inputs": {
          "currency": "XCU",
          "starting_cash": "1500",
          "as_of": "2026-10-09T18:00:00Z",
          "events": [
            {
              "id": "C1",
              "at": "2026-10-01T09:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C2",
              "at": "2026-10-01T09:05:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "data",
              "status": "posted",
              "amount": "25.50"
            },
            {
              "id": "C3",
              "at": "2026-10-03T10:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "reset",
              "status": "posted",
              "amount": "90"
            },
            {
              "id": "C4",
              "at": "2026-10-05T09:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C5",
              "at": "2026-10-06T11:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "activation",
              "status": "pending",
              "amount": "1400"
            },
            {
              "id": "C6",
              "at": "2026-10-07T12:00:00Z",
              "attempt": "A1",
              "direction": "credit",
              "category": "refund",
              "status": "pending",
              "amount": "180"
            },
            {
              "id": "C7",
              "at": "2026-10-08T12:00:00Z",
              "attempt": "A2",
              "direction": "credit",
              "category": "payout",
              "status": "posted",
              "amount": "300"
            },
            {
              "id": "C8",
              "at": "2026-10-09T10:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "other",
              "status": "void",
              "amount": "15"
            }
          ]
        }
      },
      {
        "name": "decimal-fees",
        "inputs": {
          "currency": "XCU",
          "starting_cash": "1500",
          "as_of": "2026-10-09T18:00:00Z",
          "events": [
            {
              "id": "C1",
              "at": "2026-10-01T09:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "0.1"
            },
            {
              "id": "C2",
              "at": "2026-10-01T09:05:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "data",
              "status": "posted",
              "amount": "0.2"
            },
            {
              "id": "C3",
              "at": "2026-10-03T10:00:00Z",
              "attempt": "A1",
              "direction": "debit",
              "category": "reset",
              "status": "posted",
              "amount": "90"
            },
            {
              "id": "C4",
              "at": "2026-10-05T09:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "fee",
              "status": "posted",
              "amount": "180"
            },
            {
              "id": "C5",
              "at": "2026-10-06T11:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "activation",
              "status": "pending",
              "amount": "120"
            },
            {
              "id": "C6",
              "at": "2026-10-07T12:00:00Z",
              "attempt": "A1",
              "direction": "credit",
              "category": "refund",
              "status": "pending",
              "amount": "180"
            },
            {
              "id": "C7",
              "at": "2026-10-08T12:00:00Z",
              "attempt": "A2",
              "direction": "credit",
              "category": "payout",
              "status": "posted",
              "amount": "300"
            },
            {
              "id": "C8",
              "at": "2026-10-09T10:00:00Z",
              "attempt": "A2",
              "direction": "debit",
              "category": "other",
              "status": "void",
              "amount": "15"
            }
          ]
        }
      }
    ],
    "news": [
      {
        "name": "inclusive-window",
        "inputs": {
          "clock": "supplied-UTC",
          "windows": [
            {
              "id": "W1",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": true,
              "instruments": [
                "X1"
              ],
              "actions": [
                "open",
                "close",
                "stop_fill",
                "target_fill"
              ]
            }
          ],
          "events": [
            {
              "id": "E1",
              "at": "2026-10-07T11:57:59Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E2",
              "at": "2026-10-07T11:58:00Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E3",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X1",
              "action": "stop_fill"
            },
            {
              "id": "E4",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X2",
              "action": "open"
            },
            {
              "id": "E5",
              "at": "2026-10-07T12:01:00Z",
              "instrument": "X1",
              "action": "cancel"
            },
            {
              "id": "E6",
              "at": "2026-10-07T12:02:00Z",
              "instrument": "X1",
              "action": "close"
            },
            {
              "id": "E7",
              "at": "2026-10-07T12:02:01Z",
              "instrument": "X1",
              "action": "target_fill"
            }
          ]
        }
      },
      {
        "name": "exclusive-end",
        "inputs": {
          "clock": "supplied-UTC",
          "windows": [
            {
              "id": "W1",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": false,
              "instruments": [
                "X1"
              ],
              "actions": [
                "open",
                "close",
                "stop_fill",
                "target_fill"
              ]
            }
          ],
          "events": [
            {
              "id": "E1",
              "at": "2026-10-07T11:57:59Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E2",
              "at": "2026-10-07T11:58:00Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E3",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X1",
              "action": "stop_fill"
            },
            {
              "id": "E4",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X2",
              "action": "open"
            },
            {
              "id": "E5",
              "at": "2026-10-07T12:01:00Z",
              "instrument": "X1",
              "action": "cancel"
            },
            {
              "id": "E6",
              "at": "2026-10-07T12:02:00Z",
              "instrument": "X1",
              "action": "close"
            },
            {
              "id": "E7",
              "at": "2026-10-07T12:02:01Z",
              "instrument": "X1",
              "action": "target_fill"
            }
          ]
        }
      },
      {
        "name": "cancellation-in-scope",
        "inputs": {
          "clock": "supplied-UTC",
          "windows": [
            {
              "id": "W1",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": true,
              "instruments": [
                "X1"
              ],
              "actions": [
                "open",
                "close",
                "stop_fill",
                "target_fill",
                "cancel"
              ]
            }
          ],
          "events": [
            {
              "id": "E1",
              "at": "2026-10-07T11:57:59Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E2",
              "at": "2026-10-07T11:58:00Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E3",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X1",
              "action": "stop_fill"
            },
            {
              "id": "E4",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X2",
              "action": "open"
            },
            {
              "id": "E5",
              "at": "2026-10-07T12:01:00Z",
              "instrument": "X1",
              "action": "cancel"
            },
            {
              "id": "E6",
              "at": "2026-10-07T12:02:00Z",
              "instrument": "X1",
              "action": "close"
            },
            {
              "id": "E7",
              "at": "2026-10-07T12:02:01Z",
              "instrument": "X1",
              "action": "target_fill"
            }
          ]
        }
      },
      {
        "name": "second-instrument-in-scope",
        "inputs": {
          "clock": "supplied-UTC",
          "windows": [
            {
              "id": "W1",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": true,
              "instruments": [
                "X1",
                "X2"
              ],
              "actions": [
                "open",
                "close",
                "stop_fill",
                "target_fill"
              ]
            }
          ],
          "events": [
            {
              "id": "E1",
              "at": "2026-10-07T11:57:59Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E2",
              "at": "2026-10-07T11:58:00Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E3",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X1",
              "action": "stop_fill"
            },
            {
              "id": "E4",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X2",
              "action": "open"
            },
            {
              "id": "E5",
              "at": "2026-10-07T12:01:00Z",
              "instrument": "X1",
              "action": "cancel"
            },
            {
              "id": "E6",
              "at": "2026-10-07T12:02:00Z",
              "instrument": "X1",
              "action": "close"
            },
            {
              "id": "E7",
              "at": "2026-10-07T12:02:01Z",
              "instrument": "X1",
              "action": "target_fill"
            }
          ]
        }
      },
      {
        "name": "overlapping-windows",
        "inputs": {
          "clock": "supplied-UTC",
          "windows": [
            {
              "id": "W1",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": true,
              "instruments": [
                "X1"
              ],
              "actions": [
                "open",
                "close",
                "stop_fill",
                "target_fill"
              ]
            },
            {
              "id": "W2",
              "start": "2026-10-07T11:58:00Z",
              "end": "2026-10-07T12:02:00Z",
              "start_inclusive": true,
              "end_inclusive": true,
              "instruments": [
                "X1"
              ],
              "actions": [
                "stop_fill"
              ]
            }
          ],
          "events": [
            {
              "id": "E1",
              "at": "2026-10-07T11:57:59Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E2",
              "at": "2026-10-07T11:58:00Z",
              "instrument": "X1",
              "action": "open"
            },
            {
              "id": "E3",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X1",
              "action": "stop_fill"
            },
            {
              "id": "E4",
              "at": "2026-10-07T12:00:00Z",
              "instrument": "X2",
              "action": "open"
            },
            {
              "id": "E5",
              "at": "2026-10-07T12:01:00Z",
              "instrument": "X1",
              "action": "cancel"
            },
            {
              "id": "E6",
              "at": "2026-10-07T12:02:00Z",
              "instrument": "X1",
              "action": "close"
            },
            {
              "id": "E7",
              "at": "2026-10-07T12:02:01Z",
              "instrument": "X1",
              "action": "target_fill"
            }
          ]
        }
      }
    ]
  }
}
