Skip to content

Generic CSV

The Generic CSV importer reads a CSV file you prepare yourself. Name its columns as in the column reference โ€” date and type at least โ€” and LibreFolio recognises them by their names: there is nothing to map by hand.

๐ŸŽฏ When to Use

  • Your broker is not in the supported list.
  • Your broker changed its export and its importer does not read it yet.
  • You keep your own spreadsheet, or a script writes the CSV for you.

โš™๏ธ How to Import It

  1. Prepare the file. Save it as .csv (from Excel, save a copy as CSV). Its first row names the columns, as in the column reference; other columns are ignored.
  2. Upload it in the Import Wizard and assign it to its broker.
  3. Check the plugin in Select Files: if Generic CSV is not already chosen, pick it in the file's Plugin column.
  4. Parse and review. Each row becomes a transaction.

One file per broker โ€” not one file per currency

Every row of a file is imported into the broker you assign to that file, so never mix two brokers in one CSV. Rows in different currencies can share the same file, as each row carries its own currency; you can also split a broker's history into several files, one per year for example, and import them together.

Several date columns? Use the operation date

LibreFolio reads one date column per file, never two. If the header holds several columns with an accepted date name (for example trade_date and settlement_date, see the column reference), it takes the first one, reading from left to right, and ignores the others. A column with another name, such as order date, is not read at all.

Put in the date column the operation date: the day the trade or the transaction was made, not the settlement or the booking day, which can come days later. This matters most when you write the CSV by hand or have another AI write it for you: tell it to use the operation date, and to leave the other dates out of the file.

๐Ÿงฏ If Something Goes Wrong

  • "required column 'date' not found" (or type): the first row lacks that column, or names it differently. Add it, or rename the column to an accepted name, and upload the file again.
  • A row is missing: rows LibreFolio cannot read โ€” an unknown type, a date in an unknown format, an empty currency โ€” are skipped and listed among the warnings of the Parse step; rows with a wrong sign appear as validation issues. Fix them in the file and upload it again.
  • The bulk workspace asks for a cost on an ADJUSTMENT row: enter the cost of one unit, not the total value of the position. Only a row that adds units asks for it: one that removes units (a negative quantity) has no value.

๐Ÿ“… Date format

A date such as 03/04/2025 can mean 3 April or 4 March, and a year can be written with two digits (03/04/26). LibreFolio lets you choose how the Generic CSV importer reads the dates of your files. The choice is yours alone: other people of the same LibreFolio keep their own.

Open Settings โ€บ Plugins, find Broker imports, and set Date format. Each option shows the shape of the date and a complete example:

Option Example
dd/mm/yyyy (the default) 03/04/2025 = 3 April 2025
mm/dd/yyyy 03/04/2025 = 4 March 2025, as written in the United States
dd/mm/yy 03/04/26 = 3 April 2026
mm/dd/yy 03/04/26 = 4 March 2026
yy/mm/dd 26/04/03 = 3 April 2026
yyyy-mm-dd 2026-04-03 = 3 April 2026

dd/mm/yyyy is how LibreFolio always read the dates, so nothing changes if you never open the setting. With dd/mm/yyyy and mm/dd/yyyy, a date that only one order can read is always read right: 25/12/2025 is 25 December, because there is no month 25. With the two-digit-year options the order you chose is the only one used, and yy follows the usual rule: 00โ€“68 are 2000โ€“2068, 69โ€“99 are 1969โ€“1999. Dates written like 2025-12-25, 20251225 or 25 Dec 2025 have a single meaning and never move.

A row whose date cannot be read in the chosen format is left out, and the analysis says so for each row (Row 4: 25/12/26 is not a valid date in the format mm/dd/yyโ€ฆ), with where to fix it: correct the date in the file, or change the Date format in Settings โ€บ Plugins and press Re-parse all. After the twentieth such row one note counts the rest.

Parse the file again after changing it

A file you already parsed keeps the dates it was read with. After you change the setting, the file shows the notice that it must be parsed again: parse it again, then review the rows.


๐Ÿ”„ Converting a Custom Report

If your data comes from another tool, a short script can turn it into a Generic CSV. The Generic CSV technical specification describes the format in full โ€” signs, which type to use when, worked examples. You can paste it into an AI assistant (ChatGPT, Claude, Geminiโ€ฆ) with a few sample rows of your file and ask for the script.


๐Ÿ“‹ Column Reference

These are the columns LibreFolio recognises in a Generic CSV file. Column names are case-insensitive, and spaces around them are ignored.

Column Required? Accepted aliases Description
date โœ… Always data, settlement_date, value_date, trade_date, fecha, datum, transaction_date, exec_date Transaction date
type โœ… Always tipo, transaction_type, operation, operazione, action, azione, trans_type, op_type Transaction type โ€” see values below
quantity Required for BUY/SELL/ADJUSTMENT quantitร , qty, shares, azioni, units, unitร , amount_shares, num_shares Number of units. Negative for SELL, positive for BUY.
amount Required for most types importo, value, cash, cash_amount, total, totale, net_amount, gross_amount, price Cash impact. Negative when cash leaves, positive when cash enters. Empty for ADJUSTMENT.
currency Optional (defaults to EUR) valuta, ccy, curr, currency_code, divisa, wรคhrung ISO 4217 currency code. EUR applies only when the file has no currency column: if it has one, fill it on every row with an amount, or that row is skipped.
asset Required for BUY/SELL/DIVIDEND/ADJUSTMENT symbol, ticker, isin, asset_id, instrument, strumento, security, titolo, name, nome Ticker, ISIN, or a consistent name string for unlisted assets
description Optional descrizione, notes, memo, note, details, dettagli, comment, commento Free text notes

๐Ÿท๏ธ Valid type values

BUY ยท SELL ยท DIVIDEND ยท INTEREST ยท DEPOSIT ยท WITHDRAWAL ยท FEE ยท TAX ยท ADJUSTMENT

Not supported: TRANSFER, FX_CONVERSION, CASH_TRANSFER

These need two linked rows, which a CSV cannot express: such rows are skipped with a warning. Enter them by hand from the Transactions page, or use your broker's own importer.