{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Forget All (request)",
  "description": "Immediately cancel the real-time streams of messages of given type.",
  "type": "object",
  "auth_required": 0,
  "additionalProperties": false,
  "required": ["forget_all"],
  "properties": {
    "forget_all": {
      "description": "Cancel all streams by type. The value can be either a single type e.g. `\"ticks\"`, or an array of multiple types e.g. `[\"candles\", \"ticks\"]`.",
      "oneOf": [
        {
          "$ref": "#/definitions/stream_types"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/stream_types"
          }
        }
      ]
    },
    "passthrough": {
      "description": "[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.",
      "type": "object"
    },
    "req_id": {
      "description": "[Optional] Used to map request to response.",
      "type": "integer"
    }
  },
  "definitions": {
    "stream_types": {
      "description": "Valid stream types that can be used to unsubscribe from.",
      "type": "string",
      "enum": [
        "balance",
        "candles",
        "cashier_payments",
        "proposal",
        "proposal_open_contract",
        "ticks",
        "transaction"
      ]
    }
  }
}
