Skip to content

Commit a6aabb9

Browse files
committed
Drop old reversed order idea for rt-pp msg testing
1 parent bcc23db commit a6aabb9

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

piker/brokers/kraken/broker.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -445,22 +445,6 @@ def has_pp(dst: str) -> Position | bool:
445445
# stage a first reqid of `0`
446446
reqids2txids[0] = last_trade_dict['ordertxid']
447447

448-
# reverse the volume on the last trade record so that we can
449-
# use it to update the pptable and thus reverse the last
450-
# trade's effect on the position size.
451-
# last_trade_dict['vol'] = str(float(last_trade_dict['vol']) * -1)
452-
453-
# convert the reversed trade into transaction format
454-
# fake_tid = ''.join(reversed(tid))
455-
# reversed_last_tran = norm_trade_records(
456-
# {fake_tid: last_trade_dict})[fake_tid]
457-
# assert reversed_last_tran.size == -1 * (
458-
# list(api_trans.values())[0].size)
459-
460-
# update the pp table with the reversed trade thus taking
461-
# the sizing back to "one trade prior" to the last one.
462-
# table.update_from_trans({tid: reversed_last_tran})
463-
464448
ppmsgs = trades2pps(
465449
table,
466450
acctid,

0 commit comments

Comments
 (0)