Create Portfolio
Creates a new portfolio within the organization. This endpoint allows organizations to programmatically create portfolios for their trading activities.
Request URL
POST https://ddp.definitive.fi/v2/organization/create-portfolio
Path Parameters
None
Request Body
Field | Type | Required | Description |
---|---|---|---|
portfolioName | string | Yes | Name for the new portfolio |
Example
const json = await AuthHelpers.signAndSend({
path: "/v2/organization/create-portfolio",
method: "POST",
body: {
portfolioName: "New Trading Portfolio"
},
organizationId: "00000000-0000-0000-0000-000000000000",
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"
}