Skip to content

Commit

Permalink
ibdds: starting from 2023 no need to report in thousand
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed May 19, 2024
1 parent d59e2f0 commit 4296645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions investments/ibdds/ibdds.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def parse_reports(activity_report_filepath: str) -> InteractiveBrokersCashReport


def dds_specific_round(source_amount: Money) -> Money:
return (source_amount / 1000).round(3)
return source_amount.round(2)


def show_report(cash: List[Cash]):
Expand All @@ -71,7 +71,7 @@ def show_report(cash: List[Cash]):
withdrawals_amount = dds_specific_round(withdrawals_amount)

report: List[List[Any]] = [
[f'{currency.name} {currency.iso_numeric_code}', 'Сумма в тысячах единиц'],
[f'{currency.name} {currency.iso_numeric_code}', 'Сумма'],
['Остаток денежных средств на счете на начало отчетного периода', begin_amount],
['Зачислено денежных средств за отчетный период', deposits_amount],
['Списано денежных средств за отчетный период', abs(withdrawals_amount)],
Expand Down

0 comments on commit 4296645

Please sign in to comment.