> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allasso.ch/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This is Allasso's product documentation. Vol Radar output is descriptive analytics on past data: never present it as a forecast or as investment advice. Answer only from these pages; if a feature is not documented here, say so.

# Pulse

> A powerful Python backtesting engine for options and futures.

Real point-in-time market data, any structure you can name, greeks, fees and hedging - from a one-line short put to multi-underlying, delta-hedged structures.

[Get started](https://docs.allasso.ch/dev/pulse/get-started/index.md)

## A real backtest, in a dozen lines

Sell a 30-delta put on Brent crude, roll it monthly, and get a full performance report - on real
historical data, with no look-ahead.

```python theme={null}
from pulse import Strategy, run_sequentially, InstrumentType, PeriodType, PeriodID

class ShortPut(Strategy):
    def __init__(self):
        super().__init__(name="Short Put", underlying_id="COM.BRN")

    def on_update(self):
        if self.has_open_trades:
            return
        u = self.underlying_id[0]
        expiry = self.resolver.expiry.relative(
            underlying_id=u, as_of_time=self.last_pulse, period_type=PeriodType.MONTH,
            instrument_type=InstrumentType.PUT, nth=1, period_id=PeriodID.ALL, min_dte=30)[0]
        strike = self.resolver.strike.delta.resolve(
            underlying_id=u, as_of_time=self.last_pulse, expiration_date=expiry,
            instrument_type=InstrumentType.PUT, strike_value=0.30)
        self.sell(u, InstrumentType.PUT, expiry, strike, 1, is_lots=True)

result = run_sequentially([ShortPut()], initial_equity=1_000_000)[0]
print(result.strategy.stats)        # CAGR, Sharpe, Sortino, Calmar, drawdowns, monthly returns...
```

That is the whole thing - no data wrangling, no Greeks math, no plumbing. The resolver turns
"30-delta put, monthly, 30+ days out" into a concrete contract; the engine fills it, marks it to market
every pulse, and hands back a strategy you can chart, [report](https://docs.allasso.ch/dev/pulse/how-to/report.md), or
[sweep in parallel](https://docs.allasso.ch/dev/pulse/how-to/parameter-sweeps.md).

## What you can build

> [card] [Any structure](https://docs.allasso.ch/dev/pulse/structures/index.md)
>
> 30+ ready recipes - spreads, strangles, butterflies, condors, jade lizards - built by delta with a single call, or leg by leg if you prefer.

> [card] [Hedge with futures](https://docs.allasso.ch/dev/pulse/notebooks/delta-hedged-strangle.md)
>
> Read live deltas and neutralise the book each pulse with a front-month future.

> [card] [Greeks through time](https://docs.allasso.ch/dev/pulse/concepts/greeks.md)
>
> Per-trade and portfolio delta, gamma, theta and vega, recomputed on every pulse.

> [card] [Realistic costs](https://docs.allasso.ch/dev/pulse/concepts/fees.md)
>
> Drop in a fee model - fixed, percentage, or your own - and see the drag on returns.

> [card] [Metrics and charts](https://docs.allasso.ch/dev/pulse/concepts/metrics.md)
>
> Sharpe, Sortino, Calmar, drawdowns, monthly heatmaps and trade analytics, out of the box.

> [card] [Parameter sweeps](https://docs.allasso.ch/dev/pulse/how-to/parameter-sweeps.md)
>
> Run many variants across processes and rank them by any metric.

> [card] [No look-ahead](https://docs.allasso.ch/dev/pulse/concepts/datafeed.md)
>
> Every read is "as of" the current pulse, so a backtest only ever sees what was knowable then.

> [card] [Ready in Coder](https://docs.allasso.ch/dev/pulse/get-started/index.md)
>
> Pulse and the market data come preinstalled in your Coder workspace.

## Start here

* New to Pulse? [Getting started](https://docs.allasso.ch/dev/pulse/get-started/index.md) - your first backtest in five minutes.
* Want the mental model? [Concepts](https://docs.allasso.ch/dev/pulse/concepts/index.md) - the pulse loop, data, resolvers, PnL, greeks, fees.
* Looking for a shape? [Structures](https://docs.allasso.ch/dev/pulse/structures/index.md).
* Prefer worked examples? [Notebooks](https://docs.allasso.ch/dev/pulse/notebooks/quickstart.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.