Skip to content

Get Portfolio Fees

Retrieve fee data for a specific portfolio within a given time range.

Request URL

GET https://ddp.definitive.fi/v2/organization/portfolios/{portfolioId}/fees

Path Parameters

ParameterTypeRequiredDescription
portfolioIdstringYesUUID of the portfolio

Query Parameters

ParameterTypeRequiredDescription
startTimestampstringNoStart date for fee calculation (ISO 8601 format)
endTimestampstringNoEnd date for fee calculation (ISO 8601 format)

Examples

const result1 = await AuthHelpers.signAndSend({
  path: "/v2/organization/portfolios/00000000-0000-0000-0000-000000000001/fees",
  method: "GET",
  organizationId: "00000000-0000-0000-0000-000000000000",
  queryParams: {
    startTimestamp: "2025-08-12T16:29:20.000Z",
    endTimestamp: "2025-08-14T16:29:20.000Z",
  },
  apiKey: process.env.API_KEY,
  apiSecret: process.env.API_SECRET,
});
 
const result2 = await AuthHelpers.signAndSend({
  path: "/v2/organization/portfolios/00000000-0000-0000-0000-000000000001/fees",
  method: "GET",
  organizationId: "00000000-0000-0000-0000-000000000000",
  queryParams: {
    startTimestamp: "2023-07-21T05:19:18.000Z",
  },
  apiKey: process.env.API_KEY,
  apiSecret: process.env.API_SECRET,
});

Response

{
  portfolioId: "00000000-0000-0000-0000-000000000003",
  portfolioName: "examplePortfolio",
  organizationName: "exampleOrganization",
  netNotionalVolume: "1000",
  netNotionalFees: "20.03",
  netBaseFees: "19.3",
  netGasFees: "1",
  period: {
    start: "2025-08-12T16:29:20.000Z",
    end: "2025-08-14T16:29:20.000Z",
  },
}