{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algotradertools/json-schema/algotradertools-reconnect-account-schema.json",
  "title": "ReconnectAccount",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algotradertools-openapi.json#/components/schemas/ReconnectAccount",
  "type": "object",
  "properties": {
    "password": {
      "type": "string",
      "description": "The master (trading) or investor (read-only) password. It's stored encrypted with the account's terminal and never shown again.",
      "format": "password",
      "writeOnly": true
    },
    "credential_kind": {
      "type": "string",
      "enum": [
        "investor",
        "master"
      ],
      "description": "Which password this is. Followers need `master`; a master can be either."
    },
    "proxy_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "socks5",
        "socks4",
        "http",
        null
      ],
      "description": "Left out: the account's own, or `socks5` for a new proxy."
    },
    "proxy_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "Left out: the account keeps its proxy. A new `host:port` changes it; empty or null connects directly.",
      "maxLength": 255
    },
    "proxy_username": {
      "type": "string",
      "description": "The proxy's username, if it needs one. It wasn't stored, so send it again.",
      "maxLength": 255,
      "writeOnly": true
    },
    "proxy_password": {
      "type": "string",
      "description": "The proxy's password, if it needs one. It wasn't stored either.",
      "format": "password",
      "maxLength": 255,
      "writeOnly": true
    }
  },
  "required": [
    "password",
    "credential_kind"
  ]
}