소스 검색

market: ignore filled CXOS

don't show undercut/outbid for filled orders
raylu 2 주 전
부모
커밋
442c8d25dd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      market.py

+ 2 - 0
market.py

@@ -55,6 +55,8 @@ def check_cxos() -> None:
 		for summary in cache.get('https://rest.fnar.net/exchange/all')
 	}
 	for order in orders:
+		if order['Status'] == 'FILLED':
+			continue
 		state = summary[order['MaterialTicker'], order['ExchangeCode']]
 		if order['OrderType'] == 'BUYING' and state['Bid'] is not None and state['Bid'] > order['Limit']:
 			print('outbid on', f'{order["MaterialTicker"]}.{order["ExchangeCode"]}')