A guide to updating portfolios using the Glider API
name
: The name of the portfolio (optional)description
: A description of the portfolio (optional)entry
: The portfolio structure defining asset allocations (required)
blockType
: Type of portfolio structure (required, must be “weight” for weighted allocation)weightType
: For weighted portfolios, specifies how weights are calculated (required, must be “specified-percentage”)weightings
: Array of string percentages for each asset (required, must match the number of children)children
: Array of assets or nested structures (required, at least 1 child required)
{ blockType: "asset", assetId: "0xTokenAddress:chainId" }
0xTokenAddress:chainId
where chainId is a numbertradingSettings
: Rebalancing configuration (optional)
type
: Type of rebalancing - “threshold” or “calendar” (required if tradingSettings is provided)triggerPercentage
: Deviation percentage to trigger rebalancing (required if type is “threshold”)frequency
: Rebalance frequency (required if type is “calendar”): “daily”, “weekly”, “biweekly”, “monthly”weightings
must equal 100, and the number of weightings must match the number of children in the template. Each percentage should be provided as a string like “60” (not a number).
INVALID_ASSET_ID
0xTokenAddress:chainId
WEIGHT_MISMATCH
INVALID_WEIGHT_SUM
MISSING_REQUIRED_FIELDS
UNSUPPORTED_ASSET