create_activity
Record a financial activity like buy, sell, or dividend into a Ghostfolio account. Specify type, symbol, date, quantity, price, currency, data source, and account.
Instructions
Create a single new transaction/activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Optional fee amount | |
| date | Yes | Date in ISO 8601 format (e.g. 2026-05-09T00:00:00.000Z) | |
| type | Yes | Type of activity: BUY, SELL, DIVIDEND, INTEREST, FEE, ITEM, LIABILITY | |
| symbol | Yes | Symbol profile ID or actual ticker symbol | |
| comment | No | Optional comment | |
| currency | Yes | Currency code for the transaction | |
| quantity | Yes | Number of shares/units | |
| account_id | Yes | The account ID where this activity will be recorded | |
| unit_price | Yes | Price per unit | |
| data_source | Yes | Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||