portfolio_management / backgroundTask.py
huggingface112's picture
added daily update script
2fa926a
raw
history blame
379 Bytes
import sys
sys.path.append('/Users/lamonkey/Desktop/portfolio_management')
from pipeline import daily_update
import panel as pn
from datetime import timedelta
pn.state.schedule_task(
'daily_update', daily_update, period=timedelta(hours=24)
)
# pn.state.schedule_task(
# 'task', run, period=timedelta(seconds=3)
# )
# update stock price and benchmark profile
# update()