;examples:csv: add Interactive Brokers example CSV rules files (#2508)
This commit is contained in:
parent
64af3a9d11
commit
ed94e7f174
@ -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 $
|
||||||
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user