Veli · JSON Structure

Veli Portfolio Structure

User investment portfolio

Type: object Properties: 8
CryptoDeFiFinanceInvestmentPortfolio Management

Portfolio is a JSON Structure definition published by Veli, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id userId strategyId status totalValue currency createdAt updatedAt

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-structure/veli-portfolio-structure.json",
  "name": "Portfolio",
  "description": "User investment portfolio",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Portfolio identifier",
      "example": "port-abc123"
    },
    "userId": {
      "type": "string",
      "description": "End-user identifier from partner platform",
      "example": "user-xyz789"
    },
    "strategyId": {
      "type": "string",
      "description": "Assigned investment strategy",
      "example": "strat-btc-eth-index"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused",
        "closed"
      ],
      "description": "Portfolio status",
      "example": "active"
    },
    "totalValue": {
      "type": "double",
      "description": "Current total portfolio value",
      "example": 5250.75
    },
    "currency": {
      "type": "string",
      "description": "Base currency for valuation",
      "example": "USD"
    },
    "createdAt": {
      "type": "datetime",
      "description": "Portfolio creation timestamp"
    },
    "updatedAt": {
      "type": "datetime",
      "description": "Last update timestamp"
    }
  }
}