{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-get-v1-defi-response-schema.json",
  "title": "GetV1DefiResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-api-openapi-generated.yml#/components/schemas/GetV1DefiResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "owner": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "providerPublicName": {
                "type": "string"
              },
              "publicAddress": {
                "type": "string"
              },
              "walletId": {
                "type": "string"
              },
              "logoUrl": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              }
            }
          },
          "protocolId": {
            "type": "string"
          },
          "protocolName": {
            "type": "string"
          },
          "protocolLogoUrl": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "positionName": {
            "type": "string"
          },
          "detailTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "positionIndex": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "pool": {
            "type": "object"
          },
          "portfolio": {
            "type": "object"
          },
          "totalValue": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer"
              },
              "baseCurrency": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              }
            }
          },
          "debtValue": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer"
              },
              "baseCurrency": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              }
            }
          },
          "netValue": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer"
              },
              "baseCurrency": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              }
            }
          },
          "positionTimestamp": {
            "type": "integer"
          },
          "isActive": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {}
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "totalCount": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    }
  }
}