Paper-first control surface for the Phase 0-6 cloud-native roadmap. Strategy signals, risk checks, OMS state, and broker gateway boundaries stay decoupled.
TRADING_MODE=paperLive disabledBroker: paper
Backend Health
Fallback Mode
fetch failed
offline-safe
Safety Mode
Paper Only
Fallback paper-safe status. Backend is unavailable.
ENABLE_LIVE_TRADING=false
Risk Defaults
TX-equivalent limit
Max daily loss and stale quote limits are visible before any future OMS workflow.
MAX_TX_EQUIVALENT_EXPOSURE=0.25
Product Positioning
Taiwan index futures data analysis and Paper Trading research platform
This Web App turns the website promise into an interactive research workflow: users can inspect mock TX / MTX / TMF data, validate a strategy hypothesis, simulate a Paper Only order, review OMS events, and copy evidence without broker connectivity or real-money exposure.
Market Data Lab
Understand TX / MTX / TMF data before trading decisions
Feature
Deterministic quote snapshots, bid / ask / last, quote age, spread, and contract exposure context.
User benefit
Users can learn how market data flows through the platform and compare contract sizing before testing a strategy.
Strategy Research
Validate signal logic without creating orders
Feature
A mock strategy emits a standardized StrategySignal with signals_only=true.
User benefit
Users can separate research judgment from execution and quickly see what a strategy would request before any paper order simulation.
Paper Trading Simulator
Experience order workflow without broker risk
Feature
PaperOrderIntent, paper risk checks, simulated OMS lifecycle, and browser-local paper fill outcomes.
User benefit
Users can practice the end-to-end workflow and understand why a simulated order is accepted, rejected, partially filled, or filled.
Portfolio Review
See simulated position and PnL impact
Feature
Paper-only position, average price, unrealized PnL, paper equity, and resettable session state.
User benefit
Users can connect each simulated action to position changes while keeping the output clearly marked as demo metrics, not performance claims.
Users and reviewers can reproduce the browser-local scenario, share feedback, and audit what was shown in the demo.
Research Workflow
From analysis to paper decision review
Market data preview
StrategySignal generation
Paper Only order simulation
OMS timeline review
Simulated position / PnL review
Evidence JSON handoff
Safety Boundary
What this platform deliberately does not do
No real broker connection
No real order submission
No credential collection
No investment advice
No performance claim
Production Trading Platform remains NOT READY
Workflow Standardization
How the demo maps to the quant operating workflow
This learning layer connects the browser demo to the standardized method in docs/quant-workflow-standardization.md. It shows how data, strategy, backtest, rollover, Paper Trading, Risk Engine, OMS, and audit evidence fit together before any production trading path exists.
1
Data
Data standardization
TX / MTX / TMF quote snapshots use a common exposure language before strategy logic runs.
Demo action
Generate market tick
Standardized control
Market data should carry symbol, bid, ask, last, quote age, session context, and TX-equivalent exposure meaning.
2
Signal
StrategySignal standardization
The strategy emits a signal only; the platform owns all order-like workflow steps.
Demo action
Run mock strategy
Standardized control
StrategySignal stays signals_only=true and never calls broker, Risk Engine, OMS, or Broker Gateway directly.
3
Backtest
Backtest reproducibility
Research outputs should be tied to data versions, code versions, parameters, costs, and review notes.
Demo action
Inspect session id, seed, and evidence JSON
Standardized control
Backtest and demo artifacts must remain reproducible metadata and must not be treated as performance claims.
4
Rollover
Rollover data separation
Research can use adjusted continuous data, but paper and future execution mapping must reference real contracts.
Demo action
Review TX / MTX / TMF contract context
Standardized control
Rollover metadata separates research-only continuous futures from executable contract symbols and prices.
5
Paper intent
PaperOrderIntent flow
Only the platform converts a StrategySignal into a Paper Only order intent.
Demo action
Simulate Paper Only order
Standardized control
PaperOrderIntent is platform-owned and cannot approve live trading, collect credentials, or create real orders.
6
Risk
Risk Engine checks
Paper risk checks explain why a simulated workflow can proceed or must be rejected.
Demo action
Review risk approval result
Standardized control
Risk checks cover paper mode, live-disabled status, stale quotes, exposure, size, duplicate keys, and safety flags.
7
OMS
OMS lifecycle
The simulated OMS timeline makes lifecycle transitions visible instead of hiding them in strategy code.
Demo action
Review OMS timeline
Standardized control
OMS owns order state, idempotency, terminal status, and future reconciliation boundaries.
8
Audit
Audit evidence
Reviewer handoff requires a small evidence artifact that describes what happened and what stayed simulated.
Demo action
Copy demo summary or evidence JSON
Standardized control
Audit evidence must preserve safety flags and remain local/browser-only unless a future reviewed data layer exists.
Safety Boundary
Learning layer only, not an execution path
This panel is read-only product education. It does not fetch backend data, upload evidence, write databases, call brokers, create orders, collect credentials, or provide investment advice.
Paper Only
Browser-only / mock demo where applicable
No broker
No real order
No credentials
Not investment advice
Production Trading Platform: NOT READY
Demo Tour
Customer Demo Guided Flow
A read-only walkthrough for understanding release level, safety defaults, paper OMS records, research packets, and contract specs. The tour changes only local UI state.
Read-only tour
Step 1/7Open tab: Release
Confirm Release Level
Start with the release baseline and confirm the customer understands the current level before discussing any workflow.
What to verify
Marketing Website is an external presentation candidate, Web Command Center is an internal demo candidate, Paper Research Preview is an internal technical preview, and Production Trading Platform is NOT READY.
Safety boundary
This confirms the platform is available for evaluation only and is not positioned as production trading ready.
Prohibited actions
This release is not a production trading product
No live trading
No broker login
No real orders
No credential upload
No customer account onboarding
No trading recommendation
Interaction Layer
Read-only Command Center tools
The Paper OMS tab opens first so customers immediately enter the Browser-only Mock Demo stepper. Safe controls remain available for refreshing status, switching views, inspecting local samples, selecting paper audit records, and copying IDs. These controls do not submit real orders, write production databases, or connect brokers.
Read-only
Backend unavailable
Safe fallback is active
The production frontend can still show checked-in paper-safe data when the backend is unavailable. For a local demo, start the backend or create one local paper audit sample with the command below.
Data platform is based on local fixtures, dry-run validation, and schema scaffolding.
Backtest outputs are simulated research artifacts, not performance reports.
Web Command Center is read-only for research review packet inspection.
Data Access Boundary
Where actual paper records can be read
Production Vercel, local backend demo mode, and a future hosted API have different data access boundaries. This panel keeps the reviewer path explicit before they inspect OMS or audit records.
Production Vercel
Read-only UI and fallback
Can show
Release status, safety defaults, checked fallback data, and explicit local JSON evidence selected in the browser.
Requires
No backend is required for fallback UI. Local evidence viewing requires the user to choose a local JSON file.
Cannot do
Cannot directly read local SQLite, call local FastAPI, write databases, create orders, collect credentials, or call brokers.
Local Backend
Actual local paper records
Can show
Paper approval requests, paper workflow runs, OMS timelines, audit timelines, risk state, and audit integrity records stored in local SQLite.
Requires
Run FastAPI and Next.js locally with the same PAPER_EXECUTION_AUDIT_DB_PATH, then seed or create Paper Only records.
Cannot do
Cannot be treated as production OMS, production audit, real broker connectivity, or live readiness.
Future Hosted API
Governed cloud data path
Can show
Potential future paper records through an authenticated backend/API and controlled data layer after architecture review.
Requires
Separate work for authentication, RBAC/ABAC, retention, audit integrity, monitoring, and data governance.
Cannot do
Cannot bypass paper/live separation, cannot expose broker credentials to strategies, and cannot claim production trading readiness.
Reviewer rule
Use local backend for actual SQLite records
If a customer must see real seeded paper OMS or audit records, use local backend demo mode. Production Vercel should be treated as a read-only presentation surface unless a future controlled backend/API is deployed.
Production Vercel can be configured to read a future hosted paper backend through a public API base URL. The current view displays mock login, tenant, role, and permission context only; it does not enable real login, hosted mutations, broker access, or live trading.
Hosted Web Command Center readiness unavailable. Rendering safe fallback: fetch failed; fetch failed
Read-only endpoint
GET /api/hosted-paper/web-command-center/readiness
Fallback Web Command Center hosted backend connectivity metadata. The UI can use NEXT_PUBLIC_HOSTED_BACKEND_API_BASE_URL for a future hosted paper backend, but no real hosted auth, hosted datastore, broker access, or live trading is enabled.
Connection state: Local or fallback API path
Environment-aware API base URL
Resolved API base URL
http://localhost:8000
Base URL source
local default http://localhost:8000
Command Center API mode
local
Hosted backend configured
false
Uses local default
true
Public frontend environment variables
NEXT_PUBLIC_HOSTED_BACKEND_API_BASE_URL
not configured
NEXT_PUBLIC_BACKEND_URL
not configured
NEXT_PUBLIC_COMMAND_CENTER_API_MODE
local
Login status and role display
Authenticated
false
Authentication provider
none
Authentication mode
mock_contract_only
Roles
viewer
Session endpoint available
false
Tenant context display
Tenant ID
mock-tenant-paper-evaluation
Tenant mode
paper_only_mock
Tenant isolation required
true
Hosted datastore enabled
false
Tenant endpoint available
false
Granted read permissions
Read hosted readiness
Read mock session
Read current tenant
Denied mutation permissions
Create paper approval request
Record paper reviewer decision
Submit approved paper workflow
Live trading permission
Upload broker credentials
Hosted read endpoints
/health: Backend health and paper-safe runtime status.
/api/hosted-paper/session: Mock session contract for login status, role, and permission display.
/api/hosted-paper/tenants/current: Mock tenant context for tenant boundary display.
/api/hosted-paper/web-command-center/readiness: Web Command Center hosted backend connectivity contract.
Deploy a reviewed hosted backend runtime for paper-only staging.
Configure NEXT_PUBLIC_HOSTED_BACKEND_API_BASE_URL for the frontend deployment.
Add real login, logout, session validation, and reviewer/customer identity.
Enforce tenant isolation on every hosted request and hosted record.
Enforce RBAC/ABAC before any hosted mutation or paper workflow submit.
Boundary warnings
Fallback hosted Web Command Center metadata. Backend is unavailable.
A public API base URL is configuration, not authentication.
No real login, session cookie, customer account, or tenant record is created.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
SaaS Foundation
Hosted Paper API Environment Contract
Read-only deployment boundary for the future SaaS paper product. It separates Local Demo Mode, Hosted Paper Mode, and Production Trading Platform readiness without enabling hosted accounts or execution.
Hosted paper environment unavailable. Rendering safe fallback: fetch failed
This endpoint is read-only environment contract metadata only.
Hosted Paper Mode is not enabled for customer SaaS operation.
Production Vercel cannot read local SQLite paper records.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Managed Datastore
Hosted Paper Managed Datastore Readiness
Read-only schema contract for future tenant-scoped hosted paper records. It defines models, tenant key, migration boundary, retention, and audit requirements without connecting to a database.
Hosted paper datastore readiness unavailable. Rendering safe fallback: fetch failed
Read-only endpoint
GET /api/hosted-paper/datastore-readiness
Hosted paper managed datastore is not enabled. This response defines future tenant-scoped paper record models, migration boundary, retention requirements, and audit requirements as read-only metadata.
Tenant key: tenant_id
Readiness state: SCHEMA ONLY - NO HOSTED DATASTORE
Capability flags
Managed datastore enabledfalseHosted records writablefalseHosted records readablefalseTenant key enforcedfalseMigration apply enabledfalseRetention policy enforcedfalseAudit append-only enforcedfalseLocal SQLite replacement requiredtrue
Migration boundary
Migration mode
schema_contract_only
Dry-run only
true
Apply enabled
false
Connection attempted
false
Required controls before apply
Approved managed datastore selection
tenant_id required on every hosted paper table
Migration dry-run output reviewed
Backup and restore plan documented
Retention policy approved
Security review completed
Future hosted paper record models
Paper approval request
Table: hosted_paper_approval_requests
Tenant key required: true
Retention class: paper_approval_governance
Future hosted approval requests must be tenant-scoped.
Primary identifiers
tenant_id
approval_request_id
Audit requirements
append-only request creation event
hash-chain reference
Paper workflow run
Table: hosted_paper_workflow_runs
Tenant key required: true
Retention class: paper_execution_workflow
Future hosted paper workflow runs remain Paper Only.
Primary identifiers
tenant_id
workflow_run_id
Audit requirements
risk evaluation reference
OMS event sequence reference
Paper audit event
Table: hosted_paper_audit_events
Tenant key required: true
Retention class: paper_audit_trail
Future hosted audit events must support integrity verification.
Primary identifiers
tenant_id
audit_event_id
Audit requirements
append-only write path
hash-chain continuity
Retention requirements
approval_records Retain through customer evaluation window plus review hold
paper_workflow_records Retain through paper evaluation and audit review period
audit_events Append-only retention policy required before hosted use
This endpoint is a schema-only datastore readiness contract.
No hosted database connection is configured or attempted.
No hosted records are read or written.
Local SQLite remains for local demo mode only.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Production Datastore
Hosted Paper Production Datastore Readiness
Read-only boundary for the future production datastore. It defines paper approval, paper order, OMS event, audit event, migration, backup, retention, and restore requirements without connecting to a database.
Hosted paper production datastore readiness unavailable. Rendering safe fallback: fetch failed
Read-only endpoint
GET /api/hosted-paper/production-datastore/readiness
Production datastore is not enabled. This contract defines the future managed database, migration, backup, retention, restore, and tenant boundary required before hosted paper records can move beyond local SQLite demo mode.
This endpoint is read-only production datastore readiness metadata.
No production database is selected, provisioned, connected, or written.
No DATABASE_URL is read by this contract.
Local SQLite remains for demo and development only.
Backup, retention, and restore controls are required before hosted use.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Hosted Paper API
Hosted Paper API Readiness
Read-only status from the backend readiness endpoint. It explains that hosted paper backend/API mode is not enabled yet, so actual paper workflow records still require local backend + local SQLite.
Hosted paper readiness unavailable. Rendering safe fallback: fetch failed
Read-only endpoint
GET /api/hosted-paper/readiness
Hosted paper backend/API is not enabled. The local backend + local SQLite path remains primary for actual paper workflow records; Production Vercel remains read-only for UI, fallback samples, and explicit local JSON evidence.
Use the Production Vercel Web Command Center for read-only UI and fallback samples.
Use local backend + local SQLite to create and inspect actual paper workflow records.
Use explicit local evidence export/import for customer review artifacts.
Unavailable until hosted backend exists
Customer login to an online paper workspace.
Tenant-scoped hosted paper records.
Hosted approval queue and decision persistence.
Hosted paper OMS/audit query APIs backed by a managed datastore.
Future requirements
Authenticated session context.
Tenant-scoped managed hosted datastore.
RBAC/ABAC checks for reviewer and operator actions.
Paper-only approval workflow backed by hosted persistence.
Paper-only workflow submit that references a persisted approval_request_id.
Append-only hosted paper audit events with integrity verification.
Security and operations review before any customer pilot.
Boundary warnings
This endpoint is read-only readiness metadata, not a hosted paper backend.
It does not authenticate users, write records, call brokers, create orders, or turn live trading on.
Production Trading Platform remains NOT READY.
Customer Onboarding
Hosted Paper Sandbox Tenant Onboarding
Read-only contract for the future browser-only customer sandbox tenant. It shows the gap between local demo setup and a SaaS onboarding flow without creating accounts, tenants, sessions, records, orders, or broker connections.
Hosted paper sandbox onboarding unavailable. Rendering safe fallback: fetch failed
Read-only endpoint
GET /api/hosted-paper/sandbox-tenant/onboarding-readiness
Fallback sandbox onboarding readiness metadata. Customer self-service should eventually use a browser-only Paper Only sandbox tenant with guided demo data, but no online sandbox tenant, login, hosted datastore, broker call, or live trading path is enabled.
Target customer experience: Provide an online Paper Only sandbox tenant with guided demo data, visible safety boundaries, and no live-trading controls.
No tenant-isolated managed datastore is connected.
No hosted paper approval, OMS, audit, or evidence records are written.
Production Vercel remains a read-only UI surface unless connected to a reviewed hosted backend.
Guided demo data contract
hosted-paper-guided-demo-contract-v1
Dataset status: contract_only_not_hosted
Future guided customer demo data for paper approval requests, paper-only reviewer decisions, controlled paper submit, OMS timeline, audit timeline, risk evidence, and broker simulation evidence.
Guided demo data is a contract only and is not hosted by this release.
Future demo records must remain simulated, Paper Only, and clearly labeled.
Future demo records must not contain broker credentials, real account data, or investment advice.
Boundary warnings
Fallback sandbox onboarding metadata. Backend is unavailable.
No online sandbox tenant is created.
No customer account, reviewer account, login, or session is created.
No hosted datastore is written.
No broker API is called and no broker credentials are collected.
No order is created and no live trading approval exists.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Hosted Paper Identity
Identity, RBAC, and tenant readiness
Read-only status for future reviewer login, customer accounts, RBAC/ABAC, and tenant isolation. These controls are schema-only and are not enabled.
Hosted paper identity readiness unavailable. Rendering safe fallback: fetch failed
Read-only endpoint
GET /api/hosted-paper/identity-readiness
Hosted paper identity, reviewer login, customer accounts, formal RBAC/ABAC, and tenant isolation are schema-only readiness metadata. They are not enabled and do not create hosted sessions or tenant records.
This endpoint is read-only identity readiness metadata only.
It does not create reviewer login, customer accounts, sessions, tenant records, or RBAC/ABAC enforcement.
It does not enable live trading, write databases, collect credentials, call brokers, or create orders.
Production Trading Platform remains NOT READY.
Hosted Paper Identity
Identity access contract
Read-only contract for future real login, sessions, customer accounts, tenant boundary, and RBAC/ABAC role separation. This release does not authenticate users or issue sessions.
Read-only contract for the future hosted paper identity layer. It separates customer, reviewer, operator, and admin roles, but does not enable real login, sessions, RBAC/ABAC enforcement, tenant writes, credentials, broker access, or live trading.
tenant_id required on every requesttruetenant_id required on every recordtrueTenant membership requiredtrueCross-tenant access allowedfalseTenant isolation enforcedfalseTenant admin required for membership changestrueLocal SQLite allowed for hosted tenant recordsfalse
Separated future role
Customer
Future tenant member who can read the customer's own paper workspace, paper evidence, and demo status.
This is a read-only identity access contract, not a login system.
No customer account, reviewer login, admin login, operator login, or session is created.
RBAC and ABAC are required for hosted SaaS but are not enforced by this slice.
No credentials are collected, no hosted datastore is written, no broker is called, and no order is created.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Hosted Paper Auth
Auth provider selection matrix
Read-only comparison of Clerk, Auth0, Descope, and Vercel OIDC / Sign in with Vercel for future hosted paper SaaS identity. No provider is selected, installed, or enabled.
Read-only provider selection matrix for future hosted paper identity. It compares Clerk, Auth0, Descope, and Vercel OIDC / Sign in with Vercel against paper-only SaaS needs without selecting, installing, or enabling any provider.
Selection state: selection_matrix_only
Clerk
Clerk
Strong candidate for a fast hosted paper SaaS pilot on Vercel when prebuilt UI, session management, and lower integration overhead are more important than deep enterprise identity customization.
CategoryVercel Marketplace auth platformPaper SaaS fitStrong pilot candidateIntegration enabledfalseSecrets addedfalse
Recommended use
Shortlist for first hosted paper customer pilot evaluation.
Auth0
Auth0
Strong candidate when enterprise SSO, mature identity governance, custom claims, and large organization requirements dominate.
This is a read-only selection matrix, not an authentication integration.
No provider is selected or enabled by this slice.
No credentials, secrets, customer accounts, sessions, hosted records, broker calls, or orders are created.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Security / Operations
Hosted Paper security operations readiness
Read-only security and operations boundary for a future hosted paper SaaS product. It documents secrets management, rate limiting, audit monitoring, observability, CI/CD gates, staging smoke tests, load/abuse tests, and auth boundary tests without enabling those systems.
GET /api/hosted-paper/security-operations/readiness
Fallback security and operations readiness metadata. Required controls are documented for future hosted paper SaaS, but no secret store, rate limiter, audit monitor, observability pipeline, staging smoke gate, load test, abuse test, or auth boundary test is enabled.
Store hosted credentials and signing material outside source code.
Current statusContract only; no secret store connectedEnabledfalseRequired before hosted customer usetrue
Control
Rate limiting
Protect hosted paper endpoints from accidental or abusive traffic.
Current statusNot enabled; rate limit policy requiredEnabledfalseRequired before hosted customer usetrue
Control
Audit monitoring
Alert on suspicious approval, OMS, audit, and integrity events.
Current statusNot enabled; monitoring rules requiredEnabledfalseRequired before hosted customer usetrue
Control
Observability
Trace paper request flow and collect logs/metrics safely.
Current statusPlaceholder only; no hosted pipelineEnabledfalseRequired before hosted customer usetrue
Control
CI/CD deployment gates
Block unsafe releases and verify production-facing safety copy.
Current statusRelease readiness and production smoke gate enabledEnabledtrueRequired before hosted customer usefalse
Control
Staging smoke test
Verify a staging hosted backend before customer-facing rollout.
Current statusNot enabled; staging backend requiredEnabledfalseRequired before hosted customer usetrue
Control
Basic load / abuse testing
Exercise rate limits, denial paths, and read-only endpoint resilience.
Current statusNot executed; test plan requiredEnabledfalseRequired before hosted customer usetrue
Control
Auth boundary testing
Verify unauthenticated, cross-tenant, and role-denied paths.
Current statusNot enabled; real auth requiredEnabledfalseRequired before hosted customer usetrue
Required next slices
Select managed secrets store and define rotation policy.
Add non-production rate limit middleware and denial evidence.
Define audit monitoring alerts for paper approval and OMS events.
Wire OpenTelemetry/log drain preview in staging only.
Add staging smoke test against a non-production hosted backend.
Add basic load and abuse tests against read-only endpoints.
Add auth boundary negative tests before any real login provider.
Create incident response and rollback runbooks.
Boundary warnings
Fallback security operations metadata. Backend is unavailable.
No real secret store, rate limiter, hosted audit monitor, or log drain is enabled.
No load, abuse, or real auth boundary test was executed by this endpoint.
Hosted paper SaaS remains NOT READY for customer production use.
Production Trading Platform remains NOT READY.
Live trading remains disabled by default.
Hosted Paper Session
Mock session and tenant contract
Read-only view of the future hosted paper session, tenant, roles, and permissions schema. It does not authenticate users, issue session cookies, write hosted records, collect credentials, call brokers, and does not enable live trading.
Research reviewer: Future paper-only role for research review decisions.
Risk reviewer: Future paper-only role for risk review decisions.
Paper operator: Future paper-only role for submitting approved paper workflows.
Tenant admin: Future paper-only role for tenant workspace administration.
Granted in mock session
Read hosted readiness
Read mock session
Read current tenant
Denied mutation permissions
Create paper approval request
Record paper reviewer decision
Submit approved paper workflow
Live trading permission denied
Upload broker credentials
Boundary warnings
This endpoint is a mock contract only; no hosted authentication provider is enabled.
No credentials are collected, no session cookie is issued, and no hosted datastore is written.
Mock permissions do not authorize paper workflow mutations or live trading.
Production Trading Platform remains NOT READY.
Hosted Paper Evidence
Tenant boundary evidence viewer
Read-only local JSON viewer for hosted paper mock session, tenant, roles, permissions, denied mutation permissions, and safety flags. The file is parsed client-side only and is not uploaded.
Current source: No local hosted paper tenant boundary evidence selected
Select local evidence exported by make hosted-paper-tenant-boundary-evidence-export.
Export local evidence, then select the .json file to inspect hosted paper boundary status.
Deployment Boundary
Local Backend Demo Mode
The production Vercel frontend cannot directly read your local SQLite paper audit store. It can show read-only UI, checked fallback data, and explicitly selected local JSON evidence. To inspect actual paper records, run the backend and frontend locally against the same local SQLite file.
Production Vercel
Read-only presentation surface
Shows safety copy, release status, fallback data, and local JSON viewers. It does not access local SQLite, write databases, call brokers, or create orders.
Local Demo
Backend + local SQLite required
Start the FastAPI backend and Next.js frontend locally, then seed a paper demo record. The Web Command Center can query the local backend for actual paper OMS and audit records.
Future Cloud
Controlled hosted API and data layer
A future deployment may use a controlled backend/API and governed data layer. That is separate from local SQLite and still must preserve paper/live boundaries.
Local setup
Commands for actual paper records
Run the one-command launcher locally when a reviewer needs to see persisted paper records in the Command Center. The manual fallback remains available. These commands do not enable live trading or connect brokers.
make launch-self-service-paper-demo
# Manual fallback:
make backend
make frontend
make seed-paper-execution-demo
make paper-execution-persistence-check
A lower-friction local launcher for customer evaluation. It validates safety defaults, uses local SQLite, can seed a paper workflow record, and starts local backend/frontend services without hosted accounts or broker connectivity.
Step 1
Check prerequisites
Run the environment check first. It verifies backend Python, frontend dependencies, local ports, and paper-only defaults before any service starts.
Step 2
Start the local demo
Start FastAPI and Next.js locally with one command. The launcher prints the Web Command Center URL, backend health URL, SQLite path, and log files.
Step 3
Review paper records
Use the local Web Command Center to inspect seeded paper approval, OMS, audit, risk, and evidence surfaces. Production Vercel remains a read-only presentation surface.
Recommended commands
Customer-ready local demo path
Use these commands when a reviewer needs actual local paper records without reading the full engineering runbook.
make customer-demo-env-check
make start-customer-demo
Windows helper
PowerShell wrapper
Windows reviewers can use the PowerShell wrapper from the repo root. It delegates to the same paper-only Bash launcher and does not collect credentials.
Runs deterministic TX / MTX / TMF market data with market regime, spread, liquidity, quote age, and slippage estimates, plus signal-only strategy simulation, PaperOrderIntent risk checks, OMS timeline, paper broker fill simulation, and simulated portfolio metrics entirely in the browser. It requires no local backend, no broker, no database, no real money, and no live trading.
Paper OnlyBrowser-onlyNo backend requiredNo brokerNo real moneyNo live tradingNot investment advice
Guided Demo
Complete browser-only walkthrough
Follow these steps to operate the demo from market tick to signal, Paper Only order, simulated OMS, and paper-only metrics. Every step stays inside this browser.
Create the next deterministic TX / MTX / TMF quote snapshot in this browser.
Expected result
Bid, ask, last, quote age, quote size, and liquidity score update without external market data.
Result explanation
The tick also shows a deterministic market regime such as normal, trending, volatile, illiquid, or stale_quote, so spread and liquidity can change without live data.
Safety boundary
No backend, broker, external market feed, database write, or live trading path is used.
Next step
Run the signal-only mock strategy against the selected symbol.
Visualization Layer
Market path, microstructure, order outcome, and paper PnL
Turns the browser-only demo into visual evidence: deterministic price path, bid / ask band, market regime strip, spread, liquidity, quote age, slippage estimate, paper order outcome, and simulated PnL.
Price Path
Deterministic TX / MTX / TMF market path
Current tick: 0
0
Latest visual snapshot: TMF 19998 · Market regime: normal
Microstructure
Spread / liquidity / quote age / slippage
Spread0.2
Liquidity score0.82
Quote age1
Slippage estimate0.01
These bars are deterministic mock data only. They are not external market data and do not represent live liquidity.
Order Outcome
Paper fill / partial / reject visual
Simulate a Paper Only order to visualize fill quantity, remaining quantity, and fill reason.
Paper Portfolio
Position and simulated PnL snapshot
Position
0
Unrealized PnL
0
Paper equity
1000000
Browser-onlyNo external market dataNo brokerNo real order
Market Realism Visualization
Regime, spread, liquidity, slippage, and fill reason
Shows how deterministic browser-only market conditions affect the Paper Only workflow. The panel explains quote quality, liquidity, stale quotes, simulated fill / partial / reject outcomes, and paper-only PnL context without external market data.
Regime Timeline
Deterministic market state sequence
normal
0normal
Normal
Narrower spread, healthier quote size, and lower quote age.
Trending
Directional deterministic price movement with moderate liquidity.
Volatile
Wider spread, larger price movement, and lower liquidity score.
Illiquid
Limited bid / ask size can cause partial fill or reject outcomes.
Stale quote
Older quote snapshots are rejected by paper risk guardrails.
Quote Quality
Spread, liquidity, quote age, and slippage meters
Spread0.2
Liquidity score0.82
Quote age1
Slippage estimate0.01
Bid size
7
Ask size
9
Volatility path
4
Fill Explanation
Why the simulated paper order filled, partially filled, or rejected
Simulate a Paper Only order to see the fill outcome and market-condition explanation.
Fill reason
No order has been simulated yet. Generate a tick, run the mock strategy, then simulate a Paper Only order.
Paper PnL Context
Position and mark-to-market context
Position
0
Average price
N/A
Mark price
19998
Unrealized PnL
0
PnL values are simulated browser-only workflow output. They are not investment advice or a performance claim.
This runtime uses only browser local state and localStorage. It does not upload data, write a database, call a broker, or create a real order. Live trading stays disabled.
Feedback Capture
Interactive Demo feedback
After completing the browser-only walkthrough, copy a structured feedback pack for manual review. Nothing is submitted, uploaded, stored in a database, or sent to a broker.
Browser-onlyNo backend submitNo DB writeNo email or phoneNo broker accountNo credentialsNo trading recordNot investment adviceNo live trading
Complete Generate market tick, Run mock strategy, and Simulate Paper Only order to unlock the feedback pack.
Suggested feedback questions
Which step did you complete?
Which operation was unclear?
Which information was most useful?
Which screen was hardest to understand?
What feature should be added next?
Do you understand this is a Paper Only / Mock Demo?
Manual feedback pack
Use this copy-paste pack when reporting UX issues, unclear steps, product questions, or browser-only runtime problems.
This panel only prepares text for manual feedback. Do not include broker account details, passwords, API keys, credential files, real orders, real balances, real positions, or private trading records.
Warnings
Demo boundaries
Browser-only mock demo uses deterministic local state in this browser.
No backend, broker SDK, external market data, database write, credentials, real order, or live trading path is used.
Simulated PnL is for product workflow demonstration only and is not investment advice or a performance claim.
Paper Execution
Paper simulation approval workflow
Read-only view of the controlled path from StrategySignal to PaperOrderIntent, Risk Engine, OMS, Paper Broker Gateway, and audit events. This UI does not submit simulations or expose live controls.
Backend paper execution status unavailable. Rendering safe fallback: fetch failed
Approval States
Allowed review outcomes
Research approved
Approved for paper simulation
Rejected
Needs data review
Paper Path
Required simulation route
StrategySignal
Platform PaperOrderIntent
Risk Engine
OMS
Paper Broker Gateway
Audit Event
Safety State
Paper Only, no live controls
A platform-created PaperOrderIntent may be simulated only after paper review. It remains separate from live trading and never calls a real broker.
Read-only guardrail surface. It does not submit orders, approve execution, write databases, call brokers, collect credentials, turn live trading on, or provide investment advice.
Paper Risk Boundary
Paper risk cross-account readiness
Read-only boundary showing that current Risk Engine guardrails use local paper state only. They are not a formal cross-account risk system, account hierarchy, margin feed, or centralized risk limit service.
Read-only readiness surface. It does not create orders, write databases, load real account data, call brokers, collect credentials, grant production risk approval, or provide investment advice.
Mock Backend
Mock Backend Demo MVP
Runs deterministic mock market data, signal-only strategy simulation, PaperOrderIntent risk checks, OMS lifecycle, paper broker simulation, and a paper-only portfolio summary. It uses no broker, no real money, no external market data, and no live trading.
Paper OnlyMock BackendNo brokerNo real moneyNo live tradingNot investment advice
Mock Backend is ready for a Paper Only demo.
Market Data
Deterministic TX / MTX / TMF price path
Symbol
Bid
Ask
Last
Change
Quote age
Strategy
Signal-only strategy output
Run the mock strategy to generate a StrategySignal.
Paper Order
Paper workflow result
Simulate a paper order to inspect OMS and portfolio output.
This panel calls only /api/mock-backend/* endpoints. It does not collect credentials, write production data, call a real broker, create a real order, or provide investment advice.
Warnings
Demo boundaries
Paper Approval Queue
Paper-only approval queue and history
Read-only view of persisted paper approval requests, reviewer history, required review sequence, hash-chain references, and safety flags. This panel does not submit decisions, approve execution, collect credentials, or call brokers.
Backend paper approval data unavailable. Rendering safe fallback: fetch failed; fetch failed; fetch failed
Approval Status
Local paper governance state
Fallback paper approval status. Approval UI remains read-only and paper-only while backend is unavailable.
Append-only local SQLite records with hash chaining. This is not a production WORM ledger or production identity system.
Pending Queue
Pending approval requests
No pending paper approval requests are available.
Reviewer History
Approval history and hash-chain references
No paper approval history is available.
Read-only approval surface. It does not create approval requests, submit reviewer decisions, write databases, call brokers, collect credentials, create orders, or grant live-trading access.
Compliance Approval Boundary
Local paper scaffolding, not formal compliance approval
Read-only readiness view showing that the current approval workflow is local Paper Only scaffolding. It is not a formal compliance approval system and does not grant paper execution or live approval by itself.
GET /api/paper-execution/approvals/compliance-readiness
The current approval workflow is local Paper Only scaffolding for technical demos. It is not a formal compliance approval system, does not verify reviewer identity, and does not grant live or production trading approval.
This endpoint is read-only compliance approval readiness metadata only.
The local paper approval workflow is not formal compliance approval, not legal approval, and not live trading approval.
It does not enable live trading, write databases, collect credentials, call brokers, or create orders.
Production Trading Platform remains NOT READY.
Paper Approval Request
Create a paper-only approval request
Creates one local approval request for a StrategySignal. This is the paper-only starting point for reviewer workflow and does not create orders, call Risk Engine, call OMS, collect credentials, or connect brokers.
Paper Approval Decision
Record a paper-only reviewer decision
Creates one reviewer decision for an existing local approval request. This form is paper-only, writes only the local approval decision record, and does not create orders, collect credentials, or call brokers.
Controlled Paper Submit
Create a paper simulation record
Creates one Paper Only simulation through the backend workflow record API only when the selected persisted approval_request_id has completed the required review sequence. It cannot approve live trading, collect credentials, or call a real broker.
Paper Broker Simulation
Local quote-based simulation preview
Preview how a Paper Broker Gateway outcome can be derived from caller-provided local quote and liquidity inputs. This does not submit orders, download market data, write databases, or call a broker.
Broker Simulation Readiness
Paper broker simulation is not market matching
Read-only boundary for deterministic and local quote-based paper simulation. Paper fills are simulated metadata only, not real market fills, broker execution reports, or production execution modeling.
Backend paper broker simulation readiness data unavailable. Rendering safe fallback: fetch failed
Readiness Status
Current broker simulation boundary
Fallback Paper Broker simulation readiness metadata. Local paper fills are not real market fills or broker execution reports.
Read-only broker simulation readiness surface. It does not create orders, call Risk Engine, call OMS, call Broker Gateway execution paths, write databases, download market data, call brokers, collect credentials, or claim real fill accuracy.
Broker Simulation Evidence
Paper broker simulation evidence viewer
Read-only local JSON viewer for evidence exported by make paper-broker-simulation-evidence-export. Files are parsed in this browser only and are not uploaded, persisted, or sent to backend APIs.
Current source: No local broker simulation evidence loaded
Select an explicit local paper broker simulation evidence JSON to inspect it in this browser.
No local broker simulation evidence is loaded. Export one with make paper-broker-simulation-evidence-export and select the JSON file explicitly.
Paper OMS / Audit
Persisted paper workflow records
Read-only local SQLite audit view for paper workflow runs, OMS events, and audit events. This view does not create records, submit simulations, connect brokers, or grant live-trading approval.
Backend paper record query unavailable. Rendering safe empty state: fetch failed
Paper Runs
Latest persisted workflows
No local paper workflow records are available yet.
Selected Run
Audit context
No workflow run is selected.
Timeline ready
OMS Timeline
Paper order lifecycle
No OMS events are available for the selected paper workflow.
Audit Timeline
Paper workflow audit events
No audit events are available for the selected paper workflow.
Read-only audit surface. It does not write databases, alter persisted records, call brokers, create orders, escalate approvals, or provide trading advice.
Paper OMS Reliability
Paper OMS reliability metadata
Read-only reliability view for local paper OMS metadata: outbox records, idempotency keys, execution reports, timeout candidates, and explicit non-production gaps. It does not process orders, write records, or contact brokers.
Backend paper OMS reliability data unavailable. Rendering safe fallback: fetch failed; fetch failed; fetch failed
Reliability Status
Local paper OMS foundation
Fallback Paper OMS reliability metadata. The production OMS path is not ready and remains paper-only.
No distributed durable queue or outbox worker exists.
No amend or replace workflow exists.
No production reconciliation loop exists.
Local SQLite reliability metadata is not a production WORM ledger.
Outbox Metadata
Latest local outbox records
No local outbox metadata is available.
Execution Reports
Latest selected-order execution reports
Latest selected order: None
No execution reports are available for the selected order.
Timeout Scan
Paper timeout candidates
Timeout handling is an explicit paper-only action. Preview validates the local EXPIRE metadata first; Mark writes only local SQLite OMS, audit, and execution-report metadata.
No paper timeout candidates are available.
Read-only reliability surface. It does not mutate OMS state, submit orders, process outbox workers, approve execution, write databases, call brokers, collect credentials, or provide investment advice.
Paper OMS Readiness
Paper OMS is not a production OMS
Read-only production readiness boundary for the local Paper OMS. The current system has deterministic paper state transitions and local metadata, but not durable async processing, production timeout workers, amend/replace, broker execution report ingestion, or formal reconciliation.
Backend Paper OMS production readiness data unavailable. Rendering safe fallback: fetch failed
Readiness Status
Current production OMS boundary
Fallback Paper OMS production readiness metadata. Local paper OMS scaffolding is not a production OMS.
Read-only production OMS readiness surface. It does not submit orders, process queues, mutate OMS state, approve execution, write databases, call brokers, collect credentials, or turn on live trading.
Paper Audit Integrity
Local audit hash-chain verification
Read-only verification preview for local SQLite paper audit events. It checks stored previous_hash and event_hash metadata, but it is not WORM storage, centralized audit, signing, or production compliance.
Backend paper audit integrity data unavailable. Rendering safe fallback: fetch failed; fetch failed
Integrity Status
Local audit verification preview
Fallback paper audit integrity verification. No local audit events are loaded.
No local paper audit events are available to verify.
Known Gaps
Non-production audit posture
Local SQLite is not WORM storage.
No centralized audit service is enabled.
No external timestamping, signing, or notarization is enabled.
No retention policy enforcement is enabled.
Warnings
Verification notes
Fallback paper audit integrity verification. Backend is unavailable.
Local SQLite audit records are not WORM storage or production compliance.
Read-only audit integrity surface. It does not write databases, repair chains, upload records, call brokers, collect credentials, create orders, grant live approval, or claim WORM / immutable audit compliance.
Paper Audit WORM Readiness
SQLite audit is not a production WORM ledger
Read-only readiness boundary for the audit storage posture. Local SQLite with hash-chain metadata is useful for paper demos, but it is not WORM storage, an immutable ledger, centralized audit, signing, or production compliance.
Backend WORM readiness data unavailable. Rendering safe fallback: fetch failed
Readiness Status
Current audit storage boundary
Fallback WORM readiness metadata. Local SQLite audit records are not a production WORM or immutable audit ledger.
Fallback WORM readiness metadata. Backend is unavailable.
Local SQLite audit persistence is not production WORM storage.
Production Trading Platform remains NOT READY.
Read-only WORM readiness surface. It does not write databases, upload audit records, repair chains, call brokers, collect credentials, create orders, grant live approval, or claim WORM / immutable audit compliance.
Audit Integrity Evidence
Paper audit integrity evidence viewer
Read-only local JSON viewer for evidence exported by scripts/verify-paper-audit-integrity.py. Files are parsed in this browser only and are not uploaded, persisted, or sent to backend APIs.
Current source: No local audit integrity evidence loaded
Select an explicit local paper audit integrity verification JSON to inspect it in this browser.
No local audit integrity evidence loaded. Run scripts/verify-paper-audit-integrity.py with --output, then explicitly select the JSON file.
Demo Evidence
Paper demo evidence viewer
Read-only local JSON viewer for evidence exported by make paper-demo-evidence-export. Files are parsed in this browser only and are not uploaded, persisted, or sent to backend APIs.
Current source: No local evidence loaded
Select an explicit local paper demo evidence JSON to inspect it in this browser.
No local demo evidence is loaded. Export one with make paper-demo-evidence-export and select the JSON file explicitly.
Local JSON
Research packet source
Current source: Fallback sample
Select an explicit local .json packet to inspect it in this browser.