{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradingview/json-schema/tradingview-stream-notifications-message-schema.json",
  "title": "StreamNotificationsMessage",
  "description": "A message containing information for displaying a notification. The list of keys, titles and message templates must be negotiated with TradingView beforehand.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradingview-broker-rest-api-openapi.yml#/components/schemas/StreamNotificationsMessage",
  "type": "object",
  "properties": {
    "key": {
      "description": "The predefined unique key for the message.",
      "type": "string"
    },
    "severity": {
      "description": "The severity of the notification.",
      "type": "string",
      "enum": [
        "error",
        "success"
      ]
    },
    "titleValues": {
      "description": "An array of values that should be applied to the notification message template's title part.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bodyValues": {
      "description": "An array of values that should be applied to the notification message template's body part.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "key",
    "severity"
  ],
  "additionalProperties": false
}