{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whitebit/json-schema/whitebit-flex-investment-schema.json",
  "title": "FlexInvestment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whitebit-crypto-lending-flex-api-openapi.yml#/components/schemas/FlexInvestment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Flex investment identifier"
    },
    "planId": {
      "type": "string",
      "description": "Flex plan identifier"
    },
    "currency": {
      "type": "string",
      "description": "Investment currency"
    },
    "invested": {
      "type": "string",
      "description": "Invested amount"
    },
    "withAutoReinvest": {
      "type": "boolean",
      "description": "Auto-reinvestment enabled"
    },
    "status": {
      "type": "integer",
      "description": "Investment status (1=ACTIVE, 0=CLOSED)"
    },
    "createdAt": {
      "type": "integer",
      "description": "Investment creation timestamp"
    },
    "updatedAt": {
      "type": "integer",
      "description": "Investment last update timestamp"
    }
  }
}