Run a research recipe
run_recipeReplay a saved multi-step routine over rows you fetched, with every step listed.
★ THREE ROUTINES: `momentum_scan` (rank by a return column), `earnings_surprise`
(actual versus estimate), `dividend_capture` (which ex-dates are still ahead).
★ A SAVED ROUTINE IS NOT A TRADING VIEW. The names are conventional labels for well-known
sequences; what runs is arithmetic over rows you supplied. `steps[]` spells out each operation
so you can disagree with the routine rather than trust it, and nothing here says any of these
sequences makes money.
★ SKIPPED SYMBOLS ARE LISTED, NEVER QUIETLY OMITTED. A symbol lacking the column a routine
needs lands in `skipped[]` with the reason. A silently shorter list reads as "these were
evaluated and did not qualify", when in fact they were never evaluated at all.
★ IT COMPOSES, IT DOES NOT FETCH. Rows come from `query_dataset`, so the routine inherits that
call's `as_of` rather than defining a second point-in-time story of its own.
⚠️ Missing inputs are never substituted with zero — a zero estimate turns any positive result
into an infinite surprise. Args: recipe, rows, as_of, today, top_n, min_yield.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| as_of | No | ||
| today | No | ||
| top_n | No | ||
| recipe | Yes | ||
| min_yield | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||