The pipeline’s callable surface is the zrb Python package — shared data, backtest, beta, and alpha layers used by every strategy replication.
zrb is currently an internal library. B2B customers can get access scoped through an engagement — contact support@zentradings.com.

Setup

zrb.data — price data

Adjusted price history for a list of tickers, backed by a local cache. Pass refresh=True to re-download.

zrb.backtest — portfolio simulation

  • run turns a weight matrix into portfolio returns net of transaction costs (cost_bps).
  • long_short builds a dollar-neutral portfolio from a cross-sectional signal: top/bottom frac of names, requiring at least min_names per side.
  • summary annualizes (Sharpe, vol, etc.); drawdown gives the drawdown series.

zrb.beta — is there alpha left?

spanning_regression regresses strategy returns on known factor returns. A statistically insignificant intercept means the “strategy” is repackaged beta — you could have held the factors directly.

zrb.alpha — does the ranking predict?

  • ic — per-period rank information coefficient between signal and forward returns.
  • quantiles — forward returns by signal quantile; a real signal shows a monotone ladder.
  • report — the full verdict: mean IC, the quantile ladder, and gross-vs-net after turnover costs, side by side.

Worked example