- Generate a signature request that the user must sign with their wallet
- Submit the signed message to create the portfolio
Step 1: Generate a Signature Request
First, you need to request a signable message that will be used to create the portfolio:Step 2: Sign the Message
Have the user sign the message using their wallet:Step 3: Submit the Signature to Create the Portfolio
Once you have the signature, submit it along with the original request data to create the portfolio:Step 4: Configure the Portfolio Template
After creating the portfolio, you need to configure its template with assets and settings:Alternative: Create from Template
You can also create a portfolio directly from a template:Template Data Structure
The template data defines how your portfolio is structured:name: The display name of the portfoliodescription: A description of the portfolioentry: The portfolio structureblockType: The type of portfolio structure (e.g., “weight” for weighted allocation)weightType: For weighted portfolios, specifies how weights are calculated (e.g., “specified-percentage”)weightings: Array of string percentages for each assetchildren: Array of assets or nested structures- For assets:
{ blockType: "asset", assetId: "0xTokenAddress:chainId" }
- For assets:
tradingSettings: Rebalancing settingstype: “threshold” or “calendar”triggerPercentage: For threshold type, the deviation percentage that triggers rebalancingfrequency: For calendar type, how often to rebalance (e.g., “daily”, “weekly”, “monthly”)
Session Key Resignation
If a portfolio’s session keys need to be refreshed, you can resign the portfolio:Next Steps
After creating a portfolio, you can:- Deposit assets into the portfolio
- Start automation to enable automatic rebalancing
- Update the portfolio structure or settings as needed