Update Portfolio Lot
UpdatePortfolioLotCorrect a lot the USER already recorded: a mistyped quantity, price, trade date or note. Only the fields you pass change; the rest are left alone.
The instrument itself cannot be edited: a lot on the wrong stock or the wrong contract is a different holding, so remove it with RemovePortfolioLot and add the right one. To record a sale, use ClosePortfolioLot rather than editing the quantity down, because editing it away loses the realized profit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional. A replacement note, up to 256 characters. | |
| lotId | Yes | The lot id shown by GetMyPortfolio, e.g. a1b2c3d4. | |
| quantity | No | Optional. The corrected signed size. Negative is a short or written option. | |
| portfolio | Yes | The portfolio holding the lot, by name. | |
| costPerUnit | No | Optional. The corrected price per share, always positive. | |
| acquiredDate | No | Optional. The corrected trade date, as yyyy-MM-dd. |