Authorization: ********************{
"modelPublicId": "string",
"availableCash": 0,
"maxCgtBudget": 0,
"preferLossHarvesting": true,
"preferDiscountEligibleParcels": true,
"excludeHoldingIds": [
0
],
"minTradeValue": 0,
"brokeragePerTrade": 0,
"calculationDate": "2019-08-24T14:15:22.123Z"
}curl --location '/v1/portfolios//calculate-rebalance' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--data '{
"modelPublicId": "string",
"availableCash": 0,
"maxCgtBudget": 0,
"preferLossHarvesting": true,
"preferDiscountEligibleParcels": true,
"excludeHoldingIds": [
0
],
"minTradeValue": 0,
"brokeragePerTrade": 0,
"calculationDate": "2019-08-24T14:15:22.123Z"
}'{
"legs": [
{
"holdingId": 0,
"symbol": "string",
"exchange": "string",
"tradeTypeId": 0,
"tradeDate": "2019-08-24T14:15:22.123Z",
"quantity": 0,
"price": 0,
"brokerage": 0,
"currencyCode": "string"
}
],
"warnings": [
"string"
],
"driftBefore": {
"dimension": "string",
"modelName": "string",
"modelPublicId": "string",
"entries": [
{
"bucketLabel": "string",
"currentPct": 0,
"targetPct": 0,
"afterPct": 0,
"tolerancePct": 0,
"currentValue": 0,
"afterValue": 0,
"status": "string"
}
]
}
}