refactor: integrate dashboard into server.py :8899, remove standalone dashboard
This commit is contained in:
@@ -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')}")
|
||||
Reference in New Issue
Block a user