{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marginpad-io/json-schema/marginpad-io-close-request-schema.json",
  "title": "CloseRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marginpad-io-openapi.json#/components/schemas/CloseRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "pct": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "description": "Percent to close. Omit for the whole position."
    },
    "symbol": {
      "type": "string",
      "description": "The position symbol, copied from /positions. Optional but strongly recommended: it lets the server price exactly one feed and skip a lookup round trip, which is worth several hundred milliseconds from Asia. A wrong value costs nothing - the server falls back automatically."
    }
  },
  "required": [
    "id"
  ]
}