Start here

How AlphaLens hosting works

Understand the relationship between alphalens-core, local strategy execution, hosted sync, and Strategy Center.

alphalens-core is the local Python runtime. AlphaLens is the hosted product surface for sync, dashboards, telemetry, and monitoring.

That split is deliberate. Your strategy code, broker credentials, and order routing stay on your machine. AlphaLens receives normalized results and telemetry so you can inspect backtests and live deployments in the web app.

The model

LayerRuns whereResponsibility
Strategy codeYour machineSignals, sizing, schedules, orders
alphalens-coreYour machineBacktest engine, live runner, broker integration, local cache
AlphaLens APIHostedAPI-key auth, run ingestion, market data proxy, telemetry ingestion
Strategy CenterHostedStandard Portfolio dashboard for backtests, paper deployments, and live deployments

What AlphaLens hosts

AlphaLens hosts the parts that should be shared, searchable, and visual:

  • API keys created from Settings.
  • Backtest result sync.
  • Strategy and run lists.
  • Standard Portfolio dashboards.
  • AlphaLens-authenticated market data endpoints.
  • Live deployment telemetry.
  • Heartbeat, signal, order, fill, and log views.

AlphaLens does not run your strategy process in v1. Start the local process with the CLI or Python API.

Standard Portfolio contract

Strategy Center renders strategies through the same Standard Portfolio model used by broker accounts.

Source keyMeaning
backtest:<run_id>Historical backtest synced by alphalens-core
deployment:<deployment_id>Local paper/live runner emitting telemetry
alpaca:<connection_id>Direct broker account source
snaptrade:<account_id>SnapTrade account source

This means the strategy dashboard should use the same concepts as the portfolio dashboard: NAV, returns, benchmark, positions, trades, orders, allocation, drawdown, rolling Sharpe, warnings, and reconciliation state.

Developer flow

  1. Build an Algorithm subclass.
  2. Run local backtests.
  3. Sync promising runs to Strategy Center.
  4. Compare runs against benchmark and risk metrics.
  5. Start an Alpaca paper deployment.
  6. Monitor heartbeat, signals, orders, fills, and live equity.
  7. Move to live routing only after paper behavior is understood.

Choose your next guide

GoalRead
Run the first synced backtestQuickstart
Understand strategy componentsBuild a strategy
Sync historical runsSync backtests
Start paper or live AlpacaLive deployments
Use Python instead of the CLIPython API
Configure env varsEnvironment setup