{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blofin/json-schema/blofin-post-api-v1-account-set-leverage-request-schema.json",
  "title": "PostApiV1AccountSetLeverageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blofin-account-api-openapi.yml#/components/schemas/PostApiV1AccountSetLeverageRequest",
  "type": "object",
  "properties": {
    "instId": {
      "type": "string",
      "description": "Instrument ID, e.g. BTC-USDT"
    },
    "leverage": {
      "type": "string",
      "description": "Leverage"
    },
    "marginMode": {
      "type": "string",
      "description": "Margin mode cross isolated"
    },
    "positionSide": {
      "type": "string",
      "description": "Position side long short Only required when margin mode is isolated in long/short mode"
    },
    "positionId": {
      "type": "string",
      "description": "Position ID. Only applicable to Multi-Position mode. When passed, adjusts the leverage of the specified position and only that position's margin and liquidation price are recalculated. When omitted, sets the instrument-level leverage, which applies to newly opened positions only."
    }
  },
  "required": [
    "instId",
    "leverage",
    "marginMode"
  ]
}