@livefolio/sdk / TargetWeights
Type Alias: TargetWeights
TargetWeights =
ReadonlyMap<AssetId,number>
Defined in: strategy/reconcile.ts:11
Maps each asset ID to its desired portfolio weight as a fraction of total portfolio value (e.g. 0.6 means 60 %). Weights need not sum to 1; any residual becomes cash. Passing a weight of 0 or omitting an asset entirely will generate a full exit order for any existing long position in that asset.