{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whitebit/json-schema/whitebit-flex-investment-history-schema.json",
  "title": "FlexInvestmentHistory",
  "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/FlexInvestmentHistory",
  "type": "object",
  "properties": {
    "createdAt": {
      "type": "integer",
      "description": "Transaction creation timestamp"
    },
    "planId": {
      "type": "string",
      "description": "Flex plan identifier"
    },
    "investmentId": {
      "type": "string",
      "description": "Flex investment identifier"
    },
    "currency": {
      "type": "string",
      "description": "Transaction currency"
    },
    "amount": {
      "type": "string",
      "description": "Transaction amount"
    },
    "transaction_id": {
      "type": "string",
      "description": "Transaction identifier"
    },
    "actionType": {
      "type": "integer",
      "description": "Action type: 1-INVEST, 2-REINVEST, 3-WITHDRAW_FROM_INVESTMENT, 4-DAILY_EARNING, 5-CLOSE_INVESTMENT, 6-OPEN_INVESTMENT"
    }
  }
}