Create Portfolio
Creates a new portfolio within the organization. This endpoint allows organizations to programmatically create portfolios for their trading activities.
Endpoint
Organization API only — this endpoint requires an organization-level API key.
POST https://ddp.definitive.fi/v2/organization/create-portfolioRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| portfolioName | string | Yes | Name for the new portfolio |
Request Body Examples
const json = await AuthHelpers.signAndSend({
path: "/v2/organization/create-portfolio",
method: "POST",
body: {
portfolioName: "New Trading Portfolio",
},
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
});
console.log(json);Response
{
portfolioId: "00000000-0000-0000-0000-000000000001",
portfolioName: "New Trading Portfolio",
createdAt: "2024-08-05 20:48:11.584827"
}