Portfolio tracker
Import your Ghostfolio activities
Ghostfolio exports your activities as a JSON file, not a CSV. Sonar reads that file directly, with no conversion and no spreadsheet in between.
Updated November 23, 2026
- dateDate
- typeType / label
- symbolSymbol / ticker
- quantityQuantity
- unitPricePrice
Whether your Ghostfolio is self-hosted or the hosted one, the export is the same file. For how the two products differ, see Sonar as a Ghostfolio alternative.
Where the export is in Ghostfolio
Ghostfolio lists importing and exporting transactions among its features, but its documentation doesn't spell out the menu. Look for the export option in the activities area of your instance. The download is a .json file.
Ghostfolio describes its export on its own help page. Menus change, so if a name here no longer matches, that page is the one to trust.
What the file contains
A JSON document with your accounts and a list of activities. Each activity has a date, a type (BUY, SELL, DIVIDEND, FEE, INTEREST or LIABILITY), a symbol with its dataSource, a quantity, a unitPrice, a fee and a currency.
Import it into Sonar
- Open Import and pick Ghostfolio, or just upload the
.jsonfile. Sonar recognizes it by its contents. - Check the matched fields. Any of them can be re-matched by hand.
- Read the preview: the positions the import will create, and every activity left out, with the reason.
- Name the import and save it.
What comes across, and what doesn't
Comes across:
BUYandSELLactivities, replayed into positions.- Account names, read from the file's list of accounts, so holdings stay grouped as they were.
- A cost where the currency is USD: quantity times unit price, plus the fee.
- Dividends in US dollars, as income.
Doesn't, or not fully:
- Activities in euros, francs or other currencies: quantities come across and the cost is left blank.
- Symbols come across as Ghostfolio stores them. A Yahoo pair such as
BTC-USDis read as BTC; a manual asset or a CoinGecko id may not match, and is then listed as not recognized. FEEandINTERESTactivities are cash and are passed over.LIABILITYand valuables aren't listed assets and are shown as unclassified.
What to check afterwards
- Compare the quantities in the preview with the holdings Ghostfolio shows.
- Look at the list of assets that weren't recognized after importing, and match or remove them.
- Look for positions with a blank cost. You can add a cost by hand, or leave it blank.
Try it with your own file
File import works during the 14-day free trial and stays available afterwards, with or without a plan. You see the preview before anything is saved, so trying your own file costs nothing. See pricing, or read how CSV import works and the full list of import sources.
FAQ
Do I have to convert the JSON to a CSV first?
No. Upload the .json file as it was downloaded.
Does it work with a self-hosted Ghostfolio?
Yes. The export file is the same wherever Ghostfolio runs, and nothing connects to your instance.
Does Sonar get access to my Ghostfolio account?
No. You export a file and upload it. Sonar never signs in to Ghostfolio and can't move anything. From each import it keeps the positions and transactions, and the row number for reference, not the original rows.
How do I update the import later?
Export a fresh file and import it under the same name. It replaces that import's positions.
Related pages
- Import sources, from exchanges, brokers and trackersEvery export file Sonar reads, by type: crypto exchanges, brokers, portfolio trackers and crypto tax tools. Each has a guide to exporting and importing it.
- Import a portfolio CSV from any broker or appImport holdings or full transaction histories from a CSV. Presets for Koinly, CoinTracker, Delta and Kubera, any broker's export, or rows pasted from a sheet.
- Ghostfolio alternative with wallet and broker syncGhostfolio is open source wealth software you can host yourself. Sonar is a hosted tracker that syncs wallets, exchanges and brokerages, with social data on holdings.
- Import a Kubera portfolio into a tracker (CSV)Export your Kubera portfolio as a spreadsheet and import it into Sonar. Every row with a ticker and a quantity becomes a holding, and the rest are listed.
- What is cost basis, and how do you track it across exchanges?Cost basis is what you paid for an investment, fees included. Learn how it is calculated, why transfers break it, and how to keep it right across accounts.