File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments