curl --request POST \
--url https://api.copper.co/platform/portfolios \
--header 'Content-Type: application/json' \
--data '{
"isDefiVault": true,
"organizationId": "<string>",
"parentPortfolioId": "<string>",
"portfolioDescription": "My portfolio description",
"portfolioId": "<string>",
"portfolioName": "My portfolio",
"portfolioType": "custody"
}'
{
"createdAt": "1617235200000",
"createdBy": "<string>",
"extra": {
"baseCurrency": "<string>",
"clearLoopDelegationsBlocked": true,
"clearLoopPortfolioId": "<string>",
"clearLoopUnDelegationsBlocked": true,
"clientAccountId": "<string>",
"customerId": "<string>",
"exchange": "okex",
"externalAccountId": "<string>",
"parentPortfolioId": "<string>",
"quoteCurrency": "<string>",
"showWalletBalance": "real",
"usdWithdrawalLimit": "<string>"
},
"isActive": true,
"organizationId": "1fa95ae7-5f74-4258-a4c6-687b39d7941d",
"portfolioDescription": "My portfolio description",
"portfolioId": "<string>",
"portfolioName": "My portfolio",
"portfolioType": "custody",
"status": "active",
"updatedAt": "1617235200000",
"updatedBy": "<string>"
}
Create a new portfolio
curl --request POST \
--url https://api.copper.co/platform/portfolios \
--header 'Content-Type: application/json' \
--data '{
"isDefiVault": true,
"organizationId": "<string>",
"parentPortfolioId": "<string>",
"portfolioDescription": "My portfolio description",
"portfolioId": "<string>",
"portfolioName": "My portfolio",
"portfolioType": "custody"
}'
{
"createdAt": "1617235200000",
"createdBy": "<string>",
"extra": {
"baseCurrency": "<string>",
"clearLoopDelegationsBlocked": true,
"clearLoopPortfolioId": "<string>",
"clearLoopUnDelegationsBlocked": true,
"clientAccountId": "<string>",
"customerId": "<string>",
"exchange": "okex",
"externalAccountId": "<string>",
"parentPortfolioId": "<string>",
"quoteCurrency": "<string>",
"showWalletBalance": "real",
"usdWithdrawalLimit": "<string>"
},
"isActive": true,
"organizationId": "1fa95ae7-5f74-4258-a4c6-687b39d7941d",
"portfolioDescription": "My portfolio description",
"portfolioId": "<string>",
"portfolioName": "My portfolio",
"portfolioType": "custody",
"status": "active",
"updatedAt": "1617235200000",
"updatedBy": "<string>"
}
OK
The response is of type object
.