s-ttp commited on
Commit
191f5e8
·
verified ·
1 Parent(s): 45fdbed

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-312.pyc +0 -0
  2. app.py +1 -1
__pycache__/app.cpython-312.pyc CHANGED
Binary files a/__pycache__/app.cpython-312.pyc and b/__pycache__/app.cpython-312.pyc differ
 
app.py CHANGED
@@ -65,7 +65,7 @@ def fetch_spy_intraday():
65
  def build_curve():
66
  """Returns (dataframe_or_None, note). Daily fund-vs-SPY once there's history; intraday today (both lines) for a young account."""
67
  try:
68
- daily = _curve_pts(ac.get_portfolio_history("1M", "1D"))
69
  except Exception:
70
  daily = []
71
  if len(daily) >= 4: # enough daily history → daily fund vs SPY
 
65
  def build_curve():
66
  """Returns (dataframe_or_None, note). Daily fund-vs-SPY once there's history; intraday today (both lines) for a young account."""
67
  try:
68
+ daily = _curve_pts(ac.get_portfolio_history("1A", "1D")) # full history since inception, not a trailing window
69
  except Exception:
70
  daily = []
71
  if len(daily) >= 4: # enough daily history → daily fund vs SPY