Not all accounts will have API trade transactions this session..
parent
e348968113
commit
0a959c1c74
|
@ -575,8 +575,9 @@ async def trades_dialogue(
|
||||||
# if new trades are detected from the API, prepare
|
# if new trades are detected from the API, prepare
|
||||||
# them for the ledger file and update the pptable.
|
# them for the ledger file and update the pptable.
|
||||||
if api_to_ledger_entries:
|
if api_to_ledger_entries:
|
||||||
trade_entries = api_to_ledger_entries[acctid]
|
trade_entries = api_to_ledger_entries.get(acctid)
|
||||||
|
|
||||||
|
if trade_entries:
|
||||||
# write ledger with all new trades **AFTER**
|
# write ledger with all new trades **AFTER**
|
||||||
# we've updated the `pps.toml` from the
|
# we've updated the `pps.toml` from the
|
||||||
# original ledger state! (i.e. this is
|
# original ledger state! (i.e. this is
|
||||||
|
|
Loading…
Reference in New Issue