{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-set-amr-schema.json",
  "title": "Set AMR",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-futures-accounts-api-openapi.yml#/components/schemas/trading_SetAmr",
  "type": "object",
  "required": [
    "margin_mode",
    "amr"
  ],
  "properties": {
    "margin_mode": {
      "$ref": "#/$defs/trading_MarginModeCommon"
    },
    "symbol": {
      "type": "string",
      "description": "Symbol code of the isolated margin account.\n\nConditions: `margin_mode` is `isolated`\n"
    },
    "currency": {
      "type": "string",
      "description": "Currency code of the cross-margin account.\n\nConditions: `margin_mode` is `cross`\n"
    },
    "amr": {
      "type": "boolean",
      "description": "Current value of the AMR (auto margin replenishment) flag of the\n margin account.\n"
    }
  },
  "$defs": {
    "trading_MarginModeCommon": {
      "title": "Margin mode",
      "type": "string",
      "enum": [
        "cross",
        "Cross",
        "isolated",
        "Isolated"
      ],
      "description": "Margin mode."
    }
  }
}