Get Portfolio Details
Retrieves detailed metadata about a specific portfolio, including the vaults it controls.
Endpoint
Portfolio API: GET https://ddp.definitive.fi/v2/portfolio
Organization API: Replace
/v2/portfoliowith/v2/organization/portfolios/{portfolioId}. See Portfolio vs. Organization API.
Examples
const json = await AuthHelpers.signAndSend({
path: "/v2/portfolio",
method: "GET",
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
});
console.log(json);Response
{
portfolioId: "00000000-0000-0000-0000-000000000001",
portfolioName: "Example Portfolio",
organizationId: "00000000-0000-0000-0000-000000000002",
createdAt: "2024-08-05T20:48:11.584Z",
vaults: [
{
vaultId: "00000000-0000-0000-0000-000000000003",
address: "0x0000000000000000000000000000000000000001",
name: "Trading Vault",
status: "VAULT_STATUS_ACTIVE",
chain: {
name: "Ethereum",
id: "1",
namespace: "eip155"
},
signers: [
"0x0000000000000000000000000000000000000099"
]
}
// ... additional vaults
]
}Notes
addressis the primary deposit address for this vault.signersis an array of wallet addresses authorized to sign transactions for this vault.statusrepresents the vault's lifecycle state and may include:VAULT_STATUS_ACTIVE: Vault is ready and usableVAULT_STATUS_INACTIVE: Vault is deprecated or disabledVAULT_STATUS_UNDEPLOYED: Vault has not yet been deployed on-chainVAULT_STATUS_UNSPECIFIED: Status has not been set