Tools API
The SDK's built-in tools are the formulaic alpha operators (exposed on ctx.ops) and, for multi-file bundles, skill scripts.
Alpha Operators (ctx.ops)
40 registered operators across cross-sectional, time-series, statistics, price-volume, and technical-indicator categories. Call them via ctx.ops.<name> or import from podium_sdk.alpha_ops.
python
def signal(self, ctx):
returns = ctx.data.returns(lookback=126)
momentum = (1 + returns).prod() - 1
# Alpha operators are available on ctx.ops (same callables as
# podium_sdk.alpha_ops):
score = ctx.ops.rank(momentum) # cross-sectional rank
smooth = ctx.ops.decay_linear(score, 5) # time-series decay
top = smooth.nlargest(20)
w = 1.0 / len(top)
return {s: w for s in top.index}See also
- Alpha Operators — full operator catalog with signatures
- Skill Bundles — author and call skill scripts from
signal()