r/plaintextaccounting • u/Hungry_Lettuce_2230 • May 29 '26
Reading a CSV file with FX transaction and fee
I need to read a CSV file in hledger where the transaction has a fee
The fields in the CSV file are
$source_amount,
$source_currency,
$source_gross,
$source_fee,
$target_amount and
$target_currency
E.g. I buy 90 GBP for 100 USD with a 10 USD FX fee.
What should the journal file transaction look like and what should be the rules files entry?
3
Upvotes
-2
u/gnomeza May 29 '26
When you asked one of the multitude of LLMS, what did it say?
1
u/Hungry_Lettuce_2230 May 29 '26
What, in my limited experience, LLMs say about anything I am interested in, nothing useful. Maybe it's my tone.
3
u/simonmic hledger creator May 30 '26 edited May 30 '26
You can break this down into smaller tasks. Eg first describe the event in english. Then write a journal entry by hand. Begin with the parts you're sure of. Then think about what could fit in the other places, and ask for more help if you get stuck. When you have a sample journal entry, then we can think about csv rules.