REST API Endpoints
- GETPortfolio List
- GETPortfolio Get
- PUTPortfolio Update
- GETPortfolio List By Owner
- POSTPortfolio Create Signature
- POSTPortfolio Create
- POSTPortfolio Create From Template
- POSTPortfolio Resign
- POSTPortfolio Resubmit Signature
- GETPortfolio Get Assets
- GETPortfolio Get Performance
- GETPortfolio Get Transactions
- GETPortfolio Get Deposits Withdrawals
- POSTPortfolio Deposit
- POSTPortfolio Deposit with Simulation
- POSTPortfolio Withdraw
- POSTPortfolio Withdraw as ETH
- POSTPortfolio Automation Start
- POSTPortfolio Automation Pause
- POSTPortfolio Automation Resume
- POSTPortfolio Automation Trigger
- GETPortfolio Automation Status
- GETPortfolio Rebalance Status
- GETPortfolio Rebalance Execution
- POSTPortfolio Schedule Interval
- POSTPortfolio Execute
- POSTPortfolio Archive
REST API Endpoints
Portfolio Create From Template
Create a new portfolio from a pre-defined template
POST
/
v1
/
portfolios
/
create-from-template
curl --request POST \
--url '/v1/portfolios/create-from-template' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{
"templateId": "tmpl_xyz789",
"userAddress": "0xYourWalletAddress",
"chainIds": [8453],
"name": "My Custom Template Portfolio",
"description": "Created from a template with custom name",
"accountIndex": 0
}'
{
"success": true,
"data": {
"portfolioId": "port_def456",
"message": "Portfolio created from template successfully",
"vaults": [
{
"chainId": "8453",
"address": "0xPortfolioVaultAddress"
}
],
"template": {
"blueprintId": "tmpl_xyz789",
"editId": "edit_def456",
"version": 1,
"name": "My Custom Template Portfolio"
}
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
Creates a new portfolio from a pre-defined template.
The ID of the template to use
The Ethereum address of the user who will own the portfolio
Array of chain IDs where the portfolio will operate
Custom name for the portfolio (overrides template name)
Custom description for the portfolio (overrides template description)
The account index
curl --request POST \
--url '/v1/portfolios/create-from-template' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{
"templateId": "tmpl_xyz789",
"userAddress": "0xYourWalletAddress",
"chainIds": [8453],
"name": "My Custom Template Portfolio",
"description": "Created from a template with custom name",
"accountIndex": 0
}'
{
"success": true,
"data": {
"portfolioId": "port_def456",
"message": "Portfolio created from template successfully",
"vaults": [
{
"chainId": "8453",
"address": "0xPortfolioVaultAddress"
}
],
"template": {
"blueprintId": "tmpl_xyz789",
"editId": "edit_def456",
"version": 1,
"name": "My Custom Template Portfolio"
}
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
curl --request POST \
--url '/v1/portfolios/create-from-template' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your_api_key_here' \
--data '{
"templateId": "tmpl_xyz789",
"userAddress": "0xYourWalletAddress",
"chainIds": [8453],
"name": "My Custom Template Portfolio",
"description": "Created from a template with custom name",
"accountIndex": 0
}'
{
"success": true,
"data": {
"portfolioId": "port_def456",
"message": "Portfolio created from template successfully",
"vaults": [
{
"chainId": "8453",
"address": "0xPortfolioVaultAddress"
}
],
"template": {
"blueprintId": "tmpl_xyz789",
"editId": "edit_def456",
"version": 1,
"name": "My Custom Template Portfolio"
}
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T12:34:56.789Z"
}
Assistant
Responses are generated using AI and may contain mistakes.