{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.api.finra.org/v1/fixedIncomeMarket/agencyMbsTradingActivity.json",
  "$dataVersion": 1,
  "title": "agencyMbsTradingActivity",
  "description": "SP IDC MBS Trading Activity",
  "type": "array",
  "items": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "reportDate": {
        "type": "string",
        "description": "The report date for the trading activity data.",
        "format": "date",
        "maxLength": 10
      },
      "agencyCode": {
        "type": "string",
        "description": "The agency code identifying the issuing agency (e.g., GNMA, FNMA, FHLMC).",
        "maxLength": 10,
        "examples": [
          "GNMA",
          "FNMA",
          "FHLMC"
        ]
      },
      "categoryCode": {
        "type": "string",
        "description": "The trading activity category code.",
        "maxLength": 20
      },
      "productCode": {
        "type": "string",
        "description": "The MBS product type code.",
        "maxLength": 20
      },
      "subProductCode": {
        "type": "string",
        "description": "The MBS sub-product type code providing further classification.",
        "maxLength": 20
      },
      "valueAmount": {
        "type": "number",
        "description": "The numeric value for the given trading activity metric."
      },
      "recordLoadTimestamp": {
        "type": "string",
        "description": "The timestamp when the record was loaded into the database.",
        "format": "date-time",
        "maxLength": 30
      }
    }
  }
}
