refactor: integrate dashboard into server.py :8899, remove standalone dashboard

This commit is contained in:
hmo
2026-07-19 11:06:50 +08:00
parent 782a914a3c
commit b08bfa5d03
19 changed files with 300 additions and 330 deletions
+6
View File
@@ -0,0 +1,6 @@
import urllib.request, json
r = urllib.request.urlopen("http://localhost:8899/api/portfolio")
d = json.loads(r.read())
for h in d.get('holdings', []):
if h['code'] in ('01888', '00700', '000657'):
print(f"{h['code']} {h['name']}: price={h['price']} curr={h.get('currency')}")