Veli · Schema
CreatePortfolioRequest
Request body to create a new portfolio
CryptoDeFiFinanceInvestmentPortfolio Management
Properties
| Name | Type | Description |
|---|---|---|
| userId | string | End-user identifier |
| strategyId | string | Strategy to assign to portfolio |
| initialAmount | number | Initial investment amount |
| currency | string | Currency of the initial investment |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/veli/refs/heads/main/json-schema/veli-create-portfolio-request-schema.json",
"title": "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": "number",
"description": "Initial investment amount",
"example": 1000.0
},
"currency": {
"type": "string",
"description": "Currency of the initial investment",
"example": "USD"
}
},
"required": [
"userId",
"strategyId",
"initialAmount",
"currency"
]
}