Import Transactions
import_transactionsImport a batch of buy and sell transactions into your Ghostfolio portfolio to load historical data or migrate from other platforms.
Instructions
Import transactions into your portfolio. This is a write operation.
Imports a batch of transactions (buy/sell orders) into your Ghostfolio portfolio. This is useful for bulk importing historical data or transactions from other platforms.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "import_transactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Transaction data in the format expected by Ghostfolio API. Should contain an 'activities' list. Each activity must have: 'currency', 'dataSource', 'date' (ISO-8601, e.g. 2021-09-15T00:00:00.000Z), 'quantity', 'symbol', 'type' (BUY, SELL, etc), 'unitPrice', and usually 'fee' (can be 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||