mmex_stocks_create
Add a new stock holding to a Money Manager EX database, specifying purchase details, current price, and account.
Instructions
Create a new stock in the MMEX database.
Args:
held_at: Account ID where the stock is held.
purchase_date: Purchase date (YYYY-MM-DD).
name: Stock name.
num_shares: Number of shares as decimal string.
purchase_price: Purchase price per share.
current_price: Current price per share.
value: Current total value.
commission: Commission paid.
symbol: Stock symbol (e.g., AAPL).
notes: Notes about the stock.
db_path: Path to the .mmb database file. Optional if MMEX_DB_PATH env var is set.
db_key: Encryption key for SQLCipher databases. Optional if MMEX_DB_KEY env var is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| held_at | Yes | ||
| purchase_date | Yes | ||
| name | Yes | ||
| num_shares | Yes | ||
| purchase_price | Yes | ||
| current_price | Yes | ||
| value | Yes | ||
| commission | Yes | ||
| symbol | No | ||
| notes | No | ||
| db_path | No | ||
| db_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |