Record buy or sell
record_lotRecord a buy or sell of a holding: quantity, total amount paid/received (before fee), optional fee, and optionally the bank account the cash moved through (writes the cash row too).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | ||
| date | No | ISO; default now | |
| kind | Yes | ||
| note | No | ||
| amount | Yes | Total consideration in the holding's currency, before fee | |
| holding | Yes | Holding id, symbol or name | |
| quantity | Yes | Units (fractional allowed) | |
| account_id | No | Bank account for the cash side, same currency |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||