Minor formatting, removing whitespace

explicit_write_pps_on_exit
jaredgoldman 2023-02-26 16:05:02 -05:00
parent 36f466fff8
commit 61296bbdfc
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,6 @@ class PaperBoi(Struct):
_reqids: bidict
_positions: dict[str, Position]
_trade_ledger: dict[str, Any]
_txn_dict: dict[str, Transaction] = {}
# init edge case L1 spread
last_ask: tuple[float, float] = (float('inf'), 0) # price, size

View File

@ -71,6 +71,7 @@ def get_app_dir(app_name, roaming=True, force_posix=False):
dot instead of the XDG config home or darwin's
application support folder.
"""
def _posixify(name):
return "-".join(name.split()).lower()
@ -100,6 +101,7 @@ def get_app_dir(app_name, roaming=True, force_posix=False):
_posixify(app_name),
)
_config_dir = _click_config_dir = get_app_dir('piker')
_parent_user = os.environ.get('SUDO_USER')

View File

@ -544,7 +544,7 @@ class PpTable(Struct):
) -> dict[str, Position]:
pps = self.pps
updated: dict[str, Position] = {}
updated: dict[str, Position] = {}
# lifo update all pps from records
for tid, t in trans.items():
@ -583,8 +583,7 @@ class PpTable(Struct):
# update clearing table
pp.add_clear(t)
updated[t.bsuid] = pp
updated[t.bsuid] = pp
# minimize clears tables and update sizing.
for bsuid, pp in updated.items():