Jelajahi Sumber

buy: stop showing current bids

raylu 3 minggu lalu
induk
melakukan
7d28c40b7a
1 mengubah file dengan 0 tambahan dan 8 penghapusan
  1. 0 8
      buy.py

+ 0 - 8
buy.py

@@ -66,14 +66,6 @@ def main() -> None:
 		'groups': [{'type': 'Manual', 'name': 'A1', 'materials': to_buy}],
 	}))
 
-	# deposits of current bids
-	bid_deposits: dict[str, float] = collections.defaultdict(float)
-	for order in orders:
-		bid_deposits[order['MaterialTicker']] += order['Limit'] * order['Amount']
-	print('\ncurrent bid deposits:')
-	for mat, deposit in sorted(bid_deposits.items(), key=lambda kv: kv[1], reverse=True):
-		print(f"{mat:4} {deposit:7,.0f}")
-
 def get_raw_prices() -> typing.Mapping[str, market.RawPrice]:
 	return {p['MaterialTicker']: p
 			for p in cache.get('https://refined-prun.github.io/refined-prices/all.json') if p['ExchangeCode'] == 'IC1'}