Portfolios
Records one purchase or sale as a lot. Pass `optionContract` with the OCC symbol to record an option contract, or omit it for shares. `quantity` is signed — negative for a short sale or a written option — and `costPerUnit` is always a positive price per share, because the direction is carried by the sign of the quantity alone. Repeating an identical request within a few minutes returns the lot already recorded with `deduplicated: true` and HTTP 200 instead of adding a second holding, so a retried timeout is safe.
post/v1/portfolios/{id}/lots
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 to add to, from the portfolio list.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.