Skip to content

feat: disable paper trading UI - #530

Merged
FlyM1ss merged 1 commit into
mainfrom
feat/disable-paper-trading
Sep 25, 2026
Merged

FlyM1ss merged 1 commit into
mainfrom
feat/disable-paper-trading

Conversation

@FlyM1ss

@FlyM1ss FlyM1ss commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Turns off every paper-trading surface in the dashboard behind one flag, PAPER_TRADING_ENABLED = false (app.js). The paper inputs in app.html ship disabled to match, so re-enabling means flipping both.

  • My Agents: the Paper Trading subtab is greyed out, and ?view=paper / saved nav state now land on My Agents. Cards show only the Backtesting capital, with no Run Paper Trading button and no PAPER TRADING status. The My Portfolio overview and Capital Allocation pie are hidden.
  • Configure: the paper field is disabled, and the PATCH omits cash_allocation so existing sleeves are left untouched.
  • Create: the paper field is hidden and new agents post cash_allocation: 0. Otherwise each would quietly reserve $1,000 of a balance nobody can see, until creates start failing with "Insufficient unallocated cash". Backtests still default to $1,000.

UI-only: /paper/* routes and server-side starter provisioning ($1,000 sleeves) are unchanged.

Not covered: Home still shows the My Portfolio panel and the "Paper trades today" stat.

Tests: full backend suite 5456 passed / 122 skipped; node --check clean on app.js and agent-editor.js. Not checked in a browser.

🤖 Generated with Claude Code

Paper trading beside backtests is too much surface for now. One flag,
PAPER_TRADING_ENABLED = false in app.js (the paper inputs in app.html
ship disabled to match), turns off every paper surface in the dashboard:

- Paper Trading subtab greyed out; ?view=paper and saved nav state land
  on My Agents.
- Agent cards show only the Backtesting capital; no Run Paper Trading
  button, no PAPER TRADING status.
- My Portfolio overview + Capital Allocation pie hidden on My Agents.
- Configure: paper field disabled; the PATCH omits cash_allocation, so
  existing sleeves are left untouched.
- Create flows hide the paper field and post cash_allocation: 0, so new
  agents stop silently reserving $1,000 of an invisible balance.
- Copy no longer mentions paper trading in the backtest modal/auth.

Backend /paper/* routes are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentic-trading-lab Ready Ready Preview Sep 24, 2026 3:46am UTC

@FlyM1ss
FlyM1ss merged commit 08eb62f into main Sep 25, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 746a4fcf Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant