Pass sync code flag in flex report processor

account_tests
Tyler Goodlet 2023-08-01 09:12:52 -04:00
parent 85ae180f8f
commit 29bab02c64
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ def load_flex_trades(
for acctid in trades_by_account:
trades_by_id = trades_by_account[acctid]
with open_trade_ledger('ib', acctid) as ledger_dict:
with open_trade_ledger(
'ib',
acctid,
allow_from_sync_code=True,
) as ledger_dict:
tid_delta = set(trades_by_id) - set(ledger_dict)
log.info(
'New trades detected\n'