From add0e92335b509c6556c20106ae95514b10158df Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 8 Jun 2022 12:37:12 -0400 Subject: [PATCH] Drop old trade log config writing code --- piker/brokers/ib/broker.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/piker/brokers/ib/broker.py b/piker/brokers/ib/broker.py index bfde22f8..f9fab51d 100644 --- a/piker/brokers/ib/broker.py +++ b/piker/brokers/ib/broker.py @@ -579,20 +579,10 @@ def load_flex_trades( ln = len(trades_by_account.values()) log.info(f'Loaded {ln} trades from flex query') - # section = {'ib': trades_by_account} for acctid, trades_by_id in trades_by_account.items(): with config.open_trade_ledger('ib', acctid) as ledger: ledger.update({'ib': trades_by_id}) - # pprint(section) - - # TODO: load the config first and append in - # the new trades loaded here.. - # try: - # config.write(section, 'trades') - # except KeyError: - # import pdbpp; pdbpp.set_trace() # noqa - if __name__ == '__main__': import sys