kraken: fix `trades2pps()` type sig
parent
ef544ba55a
commit
eaaf6e4cc1
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue