Veli · JSON Structure

Veli Create Portfolio Request Structure

Request body to create a new portfolio

Type: object Properties: 4 Required: 4
CryptoDeFiFinanceInvestmentPortfolio Management

CreatePortfolioRequest is a JSON Structure definition published by Veli, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

userId strategyId initialAmount currency

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-create-portfolio-request-structure.json",
  "name": "CreatePortfolioRequest",
  "description": "Request body to create a new portfolio",
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "description": "End-user identifier",
      "example": "user-xyz789"
    },
    "strategyId": {
      "type": "string",
      "description": "Strategy to assign to portfolio",
      "example": "strat-btc-eth-index"
    },
    "initialAmount": {
      "type": "double",
      "description": "Initial investment amount",
      "example": 1000.0
    },
    "currency": {
      "type": "string",
      "description": "Currency of the initial investment",
      "example": "USD"
    }
  },
  "required": [
    "userId",
    "strategyId",
    "initialAmount",
    "currency"
  ]
}