Skip to content

Commit d1f1693

Browse files
committed
kraken: fix trades2pps() type sig
1 parent c9052a2 commit d1f1693

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

piker/brokers/kraken/broker.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,7 @@ def trades2pps(
372372

373373
write_storage: bool = True,
374374

375-
) -> tuple[
376-
list[BrokerdPosition],
377-
list[Transaction],
378-
]:
375+
) -> list[BrokerdPosition]:
379376
if new_trans:
380377
updated = table.update_from_trans(
381378
new_trans,
@@ -645,7 +642,7 @@ def has_pp(
645642
# stage a first reqid of `0`
646643
reqids2txids[0] = last_trade_dict['ordertxid']
647644

648-
ppmsgs = trades2pps(
645+
ppmsgs: list[BrokerdPosition] = trades2pps(
649646
table,
650647
acctid,
651648
)

0 commit comments

Comments
 (0)