Portfolios
Records a sale. Closing part of a lot splits it: the closed quantity becomes its own closed row and the remainder stays open on its original cost basis, so a later close of the rest is still priced against what was actually paid for it. The response carries the CLOSED lot, whose id differs from the original one after a partial close.
post/v1/portfolios/{id}/lots/{lotId}/close
Request
- Base URLhttps://api.equibles.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
The portfolio holding the lot.
lotIdstring uuid required
The open lot to close.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.