Drop old trade log config writing code

lifo_pps_ib
Tyler Goodlet 2022-06-08 12:37:12 -04:00
parent 1eb7e109e6
commit add0e92335
1 changed files with 0 additions and 10 deletions

View File

@ -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