create_commodity
Create a new stock, mutual fund, or other financial commodity in GnuCash by providing its symbol and full name, with configurable namespace, fraction, and optional CUSIP.
Instructions
Create a new commodity (stock, mutual fund, etc.).
Args: mnemonic: Symbol (e.g., "VTSAX"). Unique within namespace. fullname: Human-readable name. namespace: "FUND" (default) for mutual funds, "NASDAQ"/"NYSE"/ "AMEX" for stocks, or any custom string. fraction: Smallest fractional unit. 1 = whole units, 100 = 2 decimals, 10000 = 4 decimals (default, shares), 1000000 = 6 decimals (crypto). cusip: Optional CUSIP/ISIN identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cusip | No | ||
| fraction | No | ||
| fullname | Yes | ||
| mnemonic | Yes | ||
| namespace | No | FUND |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |