{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trdefi-com/json-schema/trdefi-com-strategy-inventory-schema.json",
  "title": "StrategyInventory",
  "description": "One position as the Aqua registry sees it. Note: this endpoint answers a flat object with a top-level `requestId`, not the `{ data, meta }` wrapper the rest of the read surface uses.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trdefi-com-openapi.json#/components/schemas/StrategyInventory",
  "type": "object",
  "required": [
    "strategy_hash",
    "chain",
    "chain_id",
    "pair",
    "catalogue_status",
    "fillable",
    "partial",
    "tokens",
    "requestId"
  ],
  "properties": {
    "strategy_hash": {
      "type": "string",
      "description": "0x-prefixed 32-byte strategy hash."
    },
    "chain": {
      "type": "string"
    },
    "chain_id": {
      "type": "integer"
    },
    "pair": {
      "type": "string"
    },
    "catalogue_status": {
      "type": "string",
      "description": "Where the position stands in our catalogue."
    },
    "fillable": {
      "type": "boolean",
      "description": "True when the order bytes are stored and a taker can be priced against it."
    },
    "partial": {
      "type": "boolean",
      "description": "True when only part of the declared balance is actually available."
    },
    "tokens": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "address",
          "strategyBalance",
          "walletBalance",
          "allowance",
          "funded"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "strategyBalance": {
            "type": "string",
            "description": "Base units, as a string."
          },
          "walletBalance": {
            "type": "string",
            "description": "Base units, as a string."
          },
          "allowance": {
            "type": "string",
            "description": "Base units, as a string."
          },
          "funded": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    },
    "requestId": {
      "type": "string"
    }
  },
  "additionalProperties": true
}