Minor formatting, removing whitespace
							parent
							
								
									36f466fff8
								
							
						
					
					
						commit
						61296bbdfc
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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') | ||||
| 
 | ||||
|  |  | |||
|  | @ -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(): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue