Parcourir la source

market_stats: show percentages out of 100 instead of 1

raylu il y a 1 semaine
Parent
commit
16d1d9412e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      market_stats.py

+ 2 - 2
market_stats.py

@@ -76,9 +76,9 @@ def analyze_markets(prices: typing.Sequence[market.RawPrice], date: datetime.dat
 	return {
 		'date': date.isoformat(),
 		'ranking': ranking / markets_with_trades,
-		'ic1_lowest': ic1_lowest / markets_with_trades,
+		'ic1_lowest': ic1_lowest / markets_with_trades * 100,
 		'ic1_zero': ic1_zero,
-		'gap': gap / markets_with_trades,
+		'gap': gap / markets_with_trades * 100,
 	}
 
 def render_chart(base: altair.Chart, y: str, y_label: str, title: str) -> None: