;examples:csv: add Interactive Brokers example CSV rules files (#2508)

This commit is contained in:
Ilja Kocken 2025-12-24 16:51:05 -10:00 committed by GitHub
parent 64af3a9d11
commit ed94e7f174
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,22 @@
if
! ^Deposits . Withdrawals,Data,[A-Z]{3},
skip
# Deposits & Withdrawals,Header,Currency,Settle Date,Description,Amount
fields deposits_withdrawals,header,currency_,settle_date,description_,amount_
date %settle_date
date-format %F
decimal-mark .
description IBKR | %description_
account1 assets:IBKR:checking
amount1 %amount_
account2 assets:transfers:ABNAIBKR
; optional currency cleanup
if %currency_ EUR
currency €
if %currency_ USD
currency $

View File

@ -0,0 +1,21 @@
if
! ^Trades,Data,Order,Stocks,
skip
# Trades,Header,DataDiscriminator,Asset Category,Currency,Symbol,Date/Time,Quantity,T. Price,C. Price,Proceeds,Comm/Fee,Basis,Realized P/L,MTM P/L,Code
fields trades,header,datadiscriminator,asset,currency_, symbol,date_time,quantity,t_price,c_price,proceeds,comm_fee,basis,realized_pl,mtm_pl,code_
date %date_time
date-format %F, %T
decimal-mark .
description IBKR | %symbol
account1 assets:IBKR:investing:%symbol
amount1 %quantity %symbol @ €%t_price
account2 assets:IBKR:checking
amount2 -€%basis
account3 expenses:banking:IBKR:investing:transferfees
amount3 -€%Comm_Fee
account9 equity:rounding