This commit is contained in:
2026-01-18 12:23:01 +01:00
parent ef3d0ed970
commit bb1263edb8
86 changed files with 90289 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from __future__ import annotations
def price_trend(prices: list[float]) -> str:
if not prices:
return "stable"
first, last = prices[0], prices[-1]
if last > first:
return "up"
if last < first:
return "down"
return "stable"