Minor formatting, removing whitespace

paper_trade_improvements_rebase
jaredgoldman 2023-02-26 16:05:02 -05:00
parent 5ccc72111b
commit 84fedf5153
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,6 @@ class PaperBoi(Struct):
_reqids: bidict _reqids: bidict
_positions: dict[str, Position] _positions: dict[str, Position]
_trade_ledger: dict[str, Any] _trade_ledger: dict[str, Any]
_txn_dict: dict[str, Transaction] = {}
# init edge case L1 spread # init edge case L1 spread
last_ask: tuple[float, float] = (float('inf'), 0) # price, size 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 dot instead of the XDG config home or darwin's
application support folder. application support folder.
""" """
def _posixify(name): def _posixify(name):
return "-".join(name.split()).lower() return "-".join(name.split()).lower()
@ -100,6 +101,7 @@ def get_app_dir(app_name, roaming=True, force_posix=False):
_posixify(app_name), _posixify(app_name),
) )
_config_dir = _click_config_dir = get_app_dir('piker') _config_dir = _click_config_dir = get_app_dir('piker')
_parent_user = os.environ.get('SUDO_USER') _parent_user = os.environ.get('SUDO_USER')

View File

@ -585,7 +585,6 @@ class PpTable(Struct):
pp.add_clear(t) pp.add_clear(t)
updated[t.bsuid] = pp updated[t.bsuid] = pp
# minimize clears tables and update sizing. # minimize clears tables and update sizing.
for bsuid, pp in updated.items(): for bsuid, pp in updated.items():
pp.ensure_state() pp.ensure_state()