{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Portfolio (request)",
  "description": "Receive information about my current portfolio of outstanding options",
  "type": "object",
  "auth_required": 1,
  "auth_scopes": ["trade"],
  "additionalProperties": false,
  "required": ["portfolio"],
  "properties": {
    "portfolio": {
      "description": "Must be `1`",
      "type": "integer",
      "enum": [1]
    },
    "contract_type": {
      "description": "Return only contracts of the specified types",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "HIGHER",
          "LOWER",
          "ACCU",
          "ASIAND",
          "ASIANU",
          "CALL",
          "CALLE",
          "DIGITDIFF",
          "DIGITEVEN",
          "DIGITMATCH",
          "DIGITODD",
          "DIGITOVER",
          "DIGITUNDER",
          "EXPIRYMISSE",
          "EXPIRYMISS",
          "EXPIRYRANGE",
          "EXPIRYRANGEE",
          "MULTDOWN",
          "MULTUP",
          "NOTOUCH",
          "ONETOUCH",
          "PUT",
          "PUTE",
          "RANGE",
          "RESETCALL",
          "RESETPUT",
          "RUNHIGH",
          "RUNLOW",
          "TICKHIGH",
          "TICKLOW",
          "UPORDOWN",
          "VANILLALONGCALL",
          "VANILLALONGPUT",
          "TURBOSLONG",
          "TURBOSSHORT"
        ],
        "uniqueItems": true
      }
    },
    "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"
    }
  }
}
