Browse Source

market_stats: show percentages out of 100 instead of 1

raylu 1 tuần trước cách đây
mục cha
commit
16d1d9412e
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  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: