Skip to content

Portfolio

Retrieves metadata about a specific portfolio including the vaults that the portfolio controls.

Request URL

https://ddp.definitive.fi/v1/portfolio

Response

{
  portfolioId: "00000000-0000-0000-0000-000000000001",
  portfolioName: "Example Portfolio",
  organizationId: "00000000-0000-0000-0000-000000000002",
  createdAt: "2024-08-05 20:48:11.584827",
  vaults: [
    {
      vaultId: "00000000-0000-0000-0000-000000000003",
      address: "0x0000000000000000000000000000000000000001",
      name: "Trading",
      status: "VAULT_STATUS_ACTIVE",
      chain: {
        name: "Ethereum",
        id: "1",
        namespace: "eip:155"
      }
    }
    // ... additional vaults
  ]
}

Example

const json = await AuthHelpers.signAndSend({
  path: "/v1/portfolio",
  method: "GET",
  apiKey: process.env.API_KEY,
  apiSecret: process.env.API_SECRET,
});
console.log(json);