kraken: fix `trades2pps()` type sig

basic_buy_bot
Tyler Goodlet 2023-06-09 15:09:49 -04:00
parent ef544ba55a
commit eaaf6e4cc1
1 changed files with 2 additions and 5 deletions

View File

@ -372,10 +372,7 @@ def trades2pps(
write_storage: bool = True, write_storage: bool = True,
) -> tuple[ ) -> list[BrokerdPosition]:
list[BrokerdPosition],
list[Transaction],
]:
if new_trans: if new_trans:
updated = table.update_from_trans( updated = table.update_from_trans(
new_trans, new_trans,
@ -644,7 +641,7 @@ async def trades_dialogue(
# stage a first reqid of `0` # stage a first reqid of `0`
reqids2txids[0] = last_trade_dict['ordertxid'] reqids2txids[0] = last_trade_dict['ordertxid']
ppmsgs = trades2pps( ppmsgs: list[BrokerdPosition] = trades2pps(
table, table,
acctid, acctid,
) )