|
|
@@ -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'}
|