{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-close-position-request-schema.json",
  "title": "Close position request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-margin-positions-api-openapi.yml#/components/schemas/trading_ClosePositionRequest",
  "type": "object",
  "properties": {
    "price": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Position close price."
    },
    "strict_validate": {
      "$ref": "#/$defs/trading_StrictValidateCommon"
    }
  },
  "$defs": {
    "trading_StrictValidateCommon": {
      "title": "Strict validate",
      "type": "boolean",
      "default": false,
      "description": "Price and quantity will be checked for incrementation within the symbol tick size and quantity step (see the symbol `tick_size` and `quantity_increment`)."
    }
  }
}