A comprehensive guide to integrating with the Glider API
name
: The display name of the portfolio (optional)description
: A description of the portfolio (optional)entry
: The portfolio structure (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)
{ blockType: "asset", assetId: "0xTokenAddress:chainId" }
0xTokenAddress:chainId
tradingSettings
: 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.
1d
, 7d
, 30d
, 90d
, 180d
, 1y
, all
.
userAddress
: Filter by owner addressportfolioId
: Filter by portfolio IDportfolioAddress
: Filter by portfolio vault addressportfolioChainId
: Filter by chain IDisArchived
: Filter for archived or active portfolioshasAutomation
: Filter for portfolios with automation enabledlimit
, offset
: For paginationsort
, order
: For sorting resultssearch
: Text searchchainId
: Filter by chain IDtag
: Filter by portfolio tagincludeAssets
: Include detailed asset datarealtime
: Use real-time blockchain data instead of cached data2xx
: Success4xx
: Client error (invalid request, authentication error, etc.)5xx
: Server errorINVALID_API_KEY
: The API key is missing or invalidINVALID_REQUEST
: The request is malformedPORTFOLIO_NOT_FOUND
: The specified portfolio doesn’t existPORTFOLIO_TEMPLATE_VALIDATION_ERROR
: The template data is invalidUNAUTHORIZED
: The user doesn’t have permission to perform this action429 Too Many Requests
response. Consider implementing:
includeAssets=false
parameter when listing portfolios if you don’t need asset detailsrealtime=false
parameter (default) for faster response times