Skip to content

Commit

Permalink
kraken: fix trades2pps() type sig
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 9, 2023
1 parent c9052a2 commit d1f1693
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions piker/brokers/kraken/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,7 @@ def trades2pps(

write_storage: bool = True,

) -> tuple[
list[BrokerdPosition],
list[Transaction],
]:
) -> list[BrokerdPosition]:
if new_trans:
updated = table.update_from_trans(
new_trans,
Expand Down Expand Up @@ -645,7 +642,7 @@ def has_pp(
# stage a first reqid of `0`
reqids2txids[0] = last_trade_dict['ordertxid']

ppmsgs = trades2pps(
ppmsgs: list[BrokerdPosition] = trades2pps(
table,
acctid,
)
Expand Down

0 comments on commit d1f1693

Please sign in to comment.