> ## 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.core.structures

> Premade resolvers for option structures. Each function returns a NamedTuple with one attribute per leg.

Premade resolvers for option structures. Each function returns a NamedTuple with one attribute per leg.

## `StructureDegeneracyError`

Bases: `ValueError`

Two or more legs of a structure resolved to the same contract.

Delta targets snap to the listed strike ladder, so two deltas that differ on paper can land on
one strike: a grid carrying 69.0 for everything from 0.45 to 0.50 delta collapses a butterfly
onto three identical contracts. Every width derived from that gap is then 0, and the position is
worth nothing while still paying entry and exit fees on every leg. Nothing downstream can detect
it, so the resolvers refuse to build it.

## `Option`

Bases: `NamedTuple`

A single option leg, returned by `option_by_delta`.

### `Option.option`

`instance-attribute`

```python theme={null}
Option.option: OptionInstrument
```

Resolved via delta.

## `Spread`

Bases: `NamedTuple`

Two legs of one instrument type at different strikes on one expiry.

Returned by `spread_by_delta`.

### `Spread.long_option`

`instance-attribute`

```python theme={null}
Spread.long_option: OptionInstrument
```

Resolved via long\_delta.

### `Spread.short_option`

`instance-attribute`

```python theme={null}
Spread.short_option: OptionInstrument
```

Resolved via short\_delta.

## `Straddle`

Bases: `NamedTuple`

A call and a put on one expiry, returned by `straddle_by_delta`.

### `Straddle.call`

`instance-attribute`

```python theme={null}
Straddle.call: OptionInstrument
```

ATM call. Resolved via delta.

### `Straddle.put`

`instance-attribute`

```python theme={null}
Straddle.put: OptionInstrument
```

ATM put. Same strike as call.

## `Strangle`

Bases: `NamedTuple`

An out-of-the-money put and call at different strikes, returned by `strangle_by_delta`.

### `Strangle.put`

`instance-attribute`

```python theme={null}
Strangle.put: OptionInstrument
```

Resolved via put\_delta.

### `Strangle.call`

`instance-attribute`

```python theme={null}
Strangle.call: OptionInstrument
```

Resolved via call\_delta.

## `Butterfly`

Bases: `NamedTuple`

Three legs of one instrument type: a body and two wings, on one expiry.

Returned by `butterfly_by_delta` and `broken_wing_butterfly_by_delta`.

### `Butterfly.lower_wing`

`instance-attribute`

```python theme={null}
Butterfly.lower_wing: OptionInstrument
```

Resolved via wing\_delta (or lower\_wing\_delta).

### `Butterfly.body`

`instance-attribute`

```python theme={null}
Butterfly.body: OptionInstrument
```

Resolved via body\_delta.

### `Butterfly.upper_wing`

`instance-attribute`

```python theme={null}
Butterfly.upper_wing: OptionInstrument
```

Equidistant from body (or resolved via upper\_wing\_delta).

## `Ladder`

Bases: `NamedTuple`

Three legs of one instrument type on one expiry.

Returned by `ladder_by_delta` and `broken_ladder_by_delta`.

### `Ladder.near`

`instance-attribute`

```python theme={null}
Ladder.near: OptionInstrument
```

Resolved via near\_delta.

### `Ladder.mid`

`instance-attribute`

```python theme={null}
Ladder.mid: OptionInstrument
```

Resolved via mid\_delta.

### `Ladder.far`

`instance-attribute`

```python theme={null}
Ladder.far: OptionInstrument
```

Equidistant from mid (or resolved via far\_delta).

## `JadeLizard`

Bases: `NamedTuple`

A put plus a call spread on one expiry, returned by `jade_lizard_by_delta`.

### `JadeLizard.put`

`instance-attribute`

```python theme={null}
JadeLizard.put: OptionInstrument
```

Resolved via put\_delta.

### `JadeLizard.short_call`

`instance-attribute`

```python theme={null}
JadeLizard.short_call: OptionInstrument
```

Resolved via short\_call\_delta.

### `JadeLizard.long_call`

`instance-attribute`

```python theme={null}
JadeLizard.long_call: OptionInstrument
```

Resolved via long\_call\_delta.

## `Condor`

Bases: `NamedTuple`

Four legs of one instrument type on one expiry, in ascending strike order for calls and puts.

Returned by `condor_by_delta`, `broken_condor_by_delta`, `albatross_by_delta` and
`pterodactyl_by_delta`. Which legs are delta-resolved and which are placed by arithmetic
differs per producer and per instrument type: see the producing function's own `Returns`.

### `Condor.lower_wing`

`instance-attribute`

```python theme={null}
Condor.lower_wing: OptionInstrument
```

Resolved via outer\_delta (or delta\_1).

### `Condor.lower_body`

`instance-attribute`

```python theme={null}
Condor.lower_body: OptionInstrument
```

Resolved via inner\_delta (or delta\_2). Equidistant anchor for upper side.

### `Condor.upper_body`

`instance-attribute`

```python theme={null}
Condor.upper_body: OptionInstrument
```

Equidistant from lower\_body (or resolved via delta\_3).

### `Condor.upper_wing`

`instance-attribute`

```python theme={null}
Condor.upper_wing: OptionInstrument
```

Equidistant from upper\_body (or resolved via delta\_4).

## `IronCondor`

Bases: `NamedTuple`

A put spread below the money and a call spread above it, on one expiry.

Returned by `iron_condor_by_delta`, `broken_iron_condor_by_delta`, `iron_pterodactyl_by_delta`
and `iron_albatross_by_delta`.

### `IronCondor.long_put`

`instance-attribute`

```python theme={null}
IronCondor.long_put: OptionInstrument
```

Equidistant below short\_put (or resolved via long\_put\_delta).

### `IronCondor.short_put`

`instance-attribute`

```python theme={null}
IronCondor.short_put: OptionInstrument
```

Resolved via short\_put\_delta.

### `IronCondor.short_call`

`instance-attribute`

```python theme={null}
IronCondor.short_call: OptionInstrument
```

Resolved via short\_call\_delta.

### `IronCondor.long_call`

`instance-attribute`

```python theme={null}
IronCondor.long_call: OptionInstrument
```

Equidistant above short\_call (or resolved via long\_call\_delta).

## `IronButterfly`

Bases: `NamedTuple`

A put spread and a call spread on one expiry, sharing one ATM body strike.

Returned by `iron_butterfly_by_delta` and `broken_iron_butterfly_by_delta`. Both resolve the
body strike on the call surface and give the short put that same strike.

### `IronButterfly.long_put`

`instance-attribute`

```python theme={null}
IronButterfly.long_put: OptionInstrument
```

Resolved via wing\_delta (or long\_put\_delta).

### `IronButterfly.short_put`

`instance-attribute`

```python theme={null}
IronButterfly.short_put: OptionInstrument
```

ATM body. Resolved via body\_delta. Same strike as short\_call.

### `IronButterfly.short_call`

`instance-attribute`

```python theme={null}
IronButterfly.short_call: OptionInstrument
```

ATM body. Resolved via body\_delta. Same strike as short\_put.

### `IronButterfly.long_call`

`instance-attribute`

```python theme={null}
IronButterfly.long_call: OptionInstrument
```

Equidistant above body (or resolved via long\_call\_delta).

## `CalendarSpread`

Bases: `NamedTuple`

Two legs of one instrument type on a near and a far expiry.

Returned by `calendar_spread_by_delta`.

### `CalendarSpread.near_option`

`instance-attribute`

```python theme={null}
CalendarSpread.near_option: OptionInstrument
```

Near expiry. Strike resolved via delta.

### `CalendarSpread.far_option`

`instance-attribute`

```python theme={null}
CalendarSpread.far_option: OptionInstrument
```

Far expiry. The near strike, snapped to the closest one the far expiry lists.

## `DiagonalSpread`

Bases: `NamedTuple`

Two legs of one instrument type on a near and a far expiry, each strike resolved by its own delta.

Returned by `diagonal_spread_by_delta`.

### `DiagonalSpread.near_option`

`instance-attribute`

```python theme={null}
DiagonalSpread.near_option: OptionInstrument
```

Near expiry. Strike resolved via delta.

### `DiagonalSpread.far_option`

`instance-attribute`

```python theme={null}
DiagonalSpread.far_option: OptionInstrument
```

Far expiry. Strike resolved via far\_delta on that expiry.

## `Structure`

Bases: `StrEnum`

Name of a premade structure, accepted by `get_structure_resolver` and `resolve_structure`.

## `option_by_delta`

```python theme={null}
option_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Option
```

Resolve a single option strike by delta on a monthly expiry.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `delta` | `float` | Strike delta (e.g. 0.25). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Option` | `NamedTuple` | - option (pulse.Option): Resolved via delta. |

## `spread_by_delta`

```python theme={null}
spread_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    long_delta: float,
    short_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Spread
```

Resolve two option strikes by delta on the same monthly expiry.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `long_delta` | `float` | Long strike delta (e.g. 0.40). | *required* |
| `short_delta` | `float` | Short strike delta (e.g. 0.20). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Spread` | `NamedTuple` | - long\_option (pulse.Option): Resolved via long\_delta. - short\_option (pulse.Option): Resolved via short\_delta. |

## `straddle_by_delta`

```python theme={null}
straddle_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Straddle
```

Resolve ATM call and put at the same strike on a monthly expiry.

Covers straddle, strip, and strap (contract quantities are strategy-level).

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `delta` | `float` | ATM delta for the call leg (e.g. 0.50). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Straddle` | `NamedTuple` | - call (pulse.Option): ATM call. Resolved via delta. - put (pulse.Option): ATM put. Same strike as call. |

## `strangle_by_delta`

```python theme={null}
strangle_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    call_delta: float,
    put_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Strangle
```

Resolve OTM call and put at different strikes on a monthly expiry.

Covers strangle and risk\_reversal.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `call_delta` | `float` | Call strike delta (e.g. 0.25). | *required* |
| `put_delta` | `float` | Put strike delta (e.g. 0.25). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Strangle` | `NamedTuple` | - put (pulse.Option): Resolved via put\_delta. - call (pulse.Option): Resolved via call\_delta. |

## `butterfly_by_delta`

```python theme={null}
butterfly_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    body_delta: float,
    wing_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Butterfly
```

Resolve an equidistant butterfly on a monthly expiry (K2-K1 = K3-K2).

Covers call\_butterfly and put\_butterfly.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `body_delta` | `float` | Body (short) strike delta (e.g. 0.50). | *required* |
| `wing_delta` | `float` | Lower wing delta (e.g. 0.25). Upper wing placed equidistantly. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Butterfly` | `NamedTuple` | - lower\_wing (pulse.Option): Resolved via wing\_delta. - body (pulse.Option): Resolved via body\_delta. - upper\_wing (pulse.Option): Placed equidistantly above body via absolute resolver. |

## `broken_wing_butterfly_by_delta`

```python theme={null}
broken_wing_butterfly_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    body_delta: float,
    lower_wing_delta: float,
    upper_wing_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Butterfly
```

Resolve a broken-wing butterfly on a monthly expiry (wings not equidistant).

Covers broken\_wing\_call\_butterfly and broken\_wing\_put\_butterfly.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `body_delta` | `float` | Body (short) strike delta (e.g. 0.50). | *required* |
| `lower_wing_delta` | `float` | One wing's delta. It must sit on the opposite side of `body_delta` from `upper_wing_delta` (e.g. 0.25 against a 0.50 body), or the two wings land on one side of the body and the structure is a ladder. | *required* |
| `upper_wing_delta` | `float` | The other wing's delta (e.g. 0.70 against a 0.50 body). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Butterfly` | `NamedTuple` | The wings are labelled by strike whichever delta resolved them, so `lower_wing.strike < body.strike < upper_wing.strike` holds for calls and puts alike. |

**Raises**

| Type | Description |
| - | - |
| [`StructureDegeneracyError`](https://docs.allasso.ch/dev/pulse/api/core/structures#structuredegeneracyerror) | If two legs resolve to the same strike, or if the body does not end up between the wings. |

## `ladder_by_delta`

```python theme={null}
ladder_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    near_delta: float,
    mid_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Ladder
```

Resolve an equidistant ladder on a monthly expiry (K2-K1 = K3-K2).

Covers call\_ladder and put\_ladder.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `near_delta` | `float` | Near (closest to money) leg delta (e.g. 0.50). | *required* |
| `mid_delta` | `float` | Mid leg delta (e.g. 0.30). Far leg placed equidistantly. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Ladder` | `NamedTuple` | - near (pulse.Option): Resolved via near\_delta. - mid (pulse.Option): Resolved via mid\_delta. - far (pulse.Option): Placed equidistantly beyond mid, further out of the money, via the absolute resolver. |

## `broken_ladder_by_delta`

```python theme={null}
broken_ladder_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    near_delta: float,
    mid_delta: float,
    far_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Ladder
```

Resolve a broken ladder on a monthly expiry (strikes not equidistant).

Covers broken\_call\_ladder and broken\_put\_ladder.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `near_delta` | `float` | Near leg delta (e.g. 0.50). | *required* |
| `mid_delta` | `float` | Mid leg delta (e.g. 0.30). | *required* |
| `far_delta` | `float` | Far leg delta (e.g. 0.10). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `Ladder` | `NamedTuple` | - near (pulse.Option): Resolved via near\_delta. - mid (pulse.Option): Resolved via mid\_delta. - far (pulse.Option): Resolved via far\_delta. |

## `jade_lizard_by_delta`

```python theme={null}
jade_lizard_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    put_delta: float,
    short_call_delta: float,
    long_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> JadeLizard
```

Resolve a jade lizard (short put, short call spread) on a monthly expiry.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `put_delta` | `float` | Put strike delta (e.g. 0.30). | *required* |
| `short_call_delta` | `float` | Short call strike delta (e.g. 0.30). | *required* |
| `long_call_delta` | `float` | Long call strike delta (e.g. 0.15). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `JadeLizard` | `NamedTuple` | - put (pulse.Option): Resolved via put\_delta. - short\_call (pulse.Option): Resolved via short\_call\_delta. - long\_call (pulse.Option): Resolved via long\_call\_delta. |

## `condor_by_delta`

```python theme={null}
condor_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    outer_delta: float,
    inner_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Condor
```

Resolve an equidistant single-type condor on a monthly expiry (K2-K1 = K3-K2 = K4-K3).

Covers call\_condor and put\_condor: all four legs share one instrument type, which is what
separates this from `iron_condor_by_delta` and its put/put/call/call legs.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put), shared by all four legs. | *required* |
| `outer_delta` | `float` | Outer wing delta (e.g. 0.15). Sets the resolved wing and the spacing. | *required* |
| `inner_delta` | `float` | Inner body delta (e.g. 0.30). The remaining two legs are placed one spacing apart each, continuing across the money. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Type | Description |
| - | - |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | Condor (NamedTuple), fields in ascending strike order for both calls and puts. The two |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | delta-resolved legs are the lower pair for puts and the upper pair for calls: - lower\_wing (pulse.Option): Lowest strike. - lower\_body (pulse.Option): Second lowest. - upper\_body (pulse.Option): Second highest. - upper\_wing (pulse.Option): Highest strike. |

## `broken_condor_by_delta`

```python theme={null}
broken_condor_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    delta_1: float,
    delta_2: float,
    delta_3: float,
    delta_4: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Condor
```

Resolve a broken single-type condor on a monthly expiry (strikes not equidistant).

Covers broken\_call\_condor and broken\_put\_condor.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `delta_1` | `float` | Outermost leg delta (e.g. 0.10). | *required* |
| `delta_2` | `float` | Second leg delta (e.g. 0.25). | *required* |
| `delta_3` | `float` | Third leg delta (e.g. 0.40). | *required* |
| `delta_4` | `float` | Innermost leg delta (e.g. 0.60). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Type | Description |
| - | - |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | Condor (NamedTuple), fields in ascending strike order for both calls and puts. Ascending |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | delta means ascending strike for puts and descending for calls, so delta\_1 is the lowest |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | strike for a put condor and the highest for a call condor: - lower\_wing (pulse.Option): Lowest strike. - lower\_body (pulse.Option): Second lowest. - upper\_body (pulse.Option): Second highest. - upper\_wing (pulse.Option): Highest strike. |

## `albatross_by_delta`

```python theme={null}
albatross_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    outer_delta: float,
    inner_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Condor
```

Resolve an albatross on a monthly expiry (K2-K1 = K4-K3, K3-K2 = 2xwing\_width).

Covers call\_albatross and put\_albatross.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `outer_delta` | `float` | Outer wing delta (e.g. 0.10). Sets the resolved wing and the wing width. | *required* |
| `inner_delta` | `float` | Inner body delta (e.g. 0.25). Sets the resolved body; the other two legs are placed across the money, the near one at a 2x gap. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Type | Description |
| - | - |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | Condor (NamedTuple), fields in ascending strike order for both calls and puts. The two |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | delta-resolved legs are the lower pair for puts and the upper pair for calls: - lower\_wing (pulse.Option): Lowest strike. - lower\_body (pulse.Option): Second lowest. - upper\_body (pulse.Option): Second highest. - upper\_wing (pulse.Option): Highest strike. |

## `pterodactyl_by_delta`

```python theme={null}
pterodactyl_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    outer_delta: float,
    inner_lower_delta: float,
    inner_upper_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> Condor
```

Resolve a pterodactyl on a monthly expiry (K2-K1 = K4-K3, body gap free).

Covers call\_pterodactyl and put\_pterodactyl.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `outer_delta` | `float` | Outer wing delta (e.g. 0.10). Sets the resolved wing and the wing width. | *required* |
| `inner_lower_delta` | `float` | Body delta nearer the wing (e.g. 0.25). | *required* |
| `inner_upper_delta` | `float` | Body delta nearer the money (e.g. 0.40). The remaining wing is placed one wing\_width beyond it, across the money from the resolved wing. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Type | Description |
| - | - |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | Condor (NamedTuple), fields in ascending strike order for both calls and puts. The three |
| [`Condor`](https://docs.allasso.ch/dev/pulse/api/core/structures#condor) | delta-resolved legs are the lower ones for puts and the upper ones for calls: - lower\_wing (pulse.Option): Lowest strike. - lower\_body (pulse.Option): Second lowest. - upper\_body (pulse.Option): Second highest. - upper\_wing (pulse.Option): Highest strike. |

## `iron_condor_by_delta`

```python theme={null}
iron_condor_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    short_put_delta: float,
    short_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronCondor
```

Resolve an equidistant iron condor on a monthly expiry (wing widths equal the body gap).

Covers iron\_condor.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `short_put_delta` | `float` | Short put strike delta (e.g. 0.30). | *required* |
| `short_call_delta` | `float` | Short call strike delta (e.g. 0.30). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronCondor` | `NamedTuple` | - long\_put (pulse.Option): Placed equidistantly below short\_put via absolute resolver. - short\_put (pulse.Option): Resolved via short\_put\_delta. - short\_call (pulse.Option): Resolved via short\_call\_delta. - long\_call (pulse.Option): Placed equidistantly above short\_call via absolute resolver. |

## `broken_iron_condor_by_delta`

```python theme={null}
broken_iron_condor_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    long_put_delta: float,
    short_put_delta: float,
    short_call_delta: float,
    long_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronCondor
```

Resolve a broken iron condor on a monthly expiry (all 4 strikes resolved independently).

Covers broken\_iron\_condor.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `long_put_delta` | `float` | Long put strike delta (e.g. 0.10). | *required* |
| `short_put_delta` | `float` | Short put strike delta (e.g. 0.30). | *required* |
| `short_call_delta` | `float` | Short call strike delta (e.g. 0.30). | *required* |
| `long_call_delta` | `float` | Long call strike delta (e.g. 0.10). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronCondor` | `NamedTuple` | - long\_put (pulse.Option): Resolved via long\_put\_delta. - short\_put (pulse.Option): Resolved via short\_put\_delta. - short\_call (pulse.Option): Resolved via short\_call\_delta. - long\_call (pulse.Option): Resolved via long\_call\_delta. |

## `iron_butterfly_by_delta`

```python theme={null}
iron_butterfly_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    body_delta: float,
    wing_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronButterfly
```

Resolve an iron butterfly on a monthly expiry (ATM body, equal wing widths).

Covers iron\_butterfly.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `body_delta` | `float` | ATM body delta for the call leg (e.g. 0.50). Short put and short call share this strike. | *required* |
| `wing_delta` | `float` | Long put delta (e.g. 0.20). Long call placed equidistantly above body. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronButterfly` | `NamedTuple` | - long\_put (pulse.Option): Resolved via wing\_delta. - short\_put (pulse.Option): ATM body. Same strike as short\_call. - short\_call (pulse.Option): ATM body. Resolved via body\_delta. - long\_call (pulse.Option): Placed equidistantly above body via absolute resolver. |

## `broken_iron_butterfly_by_delta`

```python theme={null}
broken_iron_butterfly_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    long_put_delta: float,
    body_delta: float,
    long_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronButterfly
```

Resolve a broken iron butterfly on a monthly expiry (ATM body, asymmetric wings).

Covers broken\_iron\_butterfly.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `long_put_delta` | `float` | Long put strike delta (e.g. 0.15). | *required* |
| `body_delta` | `float` | ATM body delta for the call leg (e.g. 0.50). Short put and short call share this strike. | *required* |
| `long_call_delta` | `float` | Long call strike delta (e.g. 0.10). | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronButterfly` | `NamedTuple` | - long\_put (pulse.Option): Resolved via long\_put\_delta. - short\_put (pulse.Option): ATM body. Same strike as short\_call. - short\_call (pulse.Option): ATM body. Resolved via body\_delta. - long\_call (pulse.Option): Resolved via long\_call\_delta. |

## `iron_pterodactyl_by_delta`

```python theme={null}
iron_pterodactyl_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    long_put_delta: float,
    short_put_delta: float,
    short_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronCondor
```

Resolve an iron pterodactyl on a monthly expiry (K2-K1 = K4-K3, body gap free).

Covers iron\_pterodactyl.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `long_put_delta` | `float` | Long put delta (e.g. 0.10). Sets wing width. | *required* |
| `short_put_delta` | `float` | Short put delta (e.g. 0.30). | *required* |
| `short_call_delta` | `float` | Short call delta (e.g. 0.30). Long call placed equidistantly above. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronCondor` | `NamedTuple` | - long\_put (pulse.Option): Resolved via long\_put\_delta. - short\_put (pulse.Option): Resolved via short\_put\_delta. - short\_call (pulse.Option): Resolved via short\_call\_delta. - long\_call (pulse.Option): Placed equidistantly (K2-K1) above short\_call via absolute resolver. |

## `iron_albatross_by_delta`

```python theme={null}
iron_albatross_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    short_put_delta: float,
    short_call_delta: float,
    min_dte: int,
    nth: int = 1,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> IronCondor
```

Resolve an iron albatross on a monthly expiry (wing widths = half the body gap).

Covers iron\_albatross.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `short_put_delta` | `float` | Short put delta (e.g. 0.30). Long put placed at half body-gap below. | *required* |
| `short_call_delta` | `float` | Short call delta (e.g. 0.30). Long call placed at half body-gap above. | *required* |
| `min_dte` | `int` | Minimum days to expiration. | *required* |
| `nth` | `int` | Which expiration to pick (1 = front month, 2 = second etc). Defaults to 1. | `1` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `IronCondor` | `NamedTuple` | - long\_put (pulse.Option): Placed half body-gap below short\_put via absolute resolver. - short\_put (pulse.Option): Resolved via short\_put\_delta. - short\_call (pulse.Option): Resolved via short\_call\_delta. - long\_call (pulse.Option): Placed half body-gap above short\_call via absolute resolver. |

## `calendar_spread_by_delta`

```python theme={null}
calendar_spread_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    delta: float,
    near_min_dte: int,
    far_min_dte: int,
    near_nth: int = 1,
    far_nth: int = 2,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> CalendarSpread
```

Resolve a calendar spread across two monthly expiries (one strike, different expiries).

Covers calendar\_call\_spread and calendar\_put\_spread. The far leg reuses the near strike through
the absolute resolver, which returns the closest strike that expiry actually lists, so on a
sparse far expiry the result is the nearest available strike rather than an error.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `delta` | `float` | Strike delta resolved on near expiry (e.g. 0.50). Reused on the far expiry. | *required* |
| `near_min_dte` | `int` | Minimum days to expiration for the near leg. | *required* |
| `far_min_dte` | `int` | Minimum days to expiration for the far leg. | *required* |
| `near_nth` | `int` | Which expiration to pick for near leg (1 = front month). Defaults to 1. | `1` |
| `far_nth` | `int` | Which expiration to pick for far leg. Defaults to 2. | `2` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `CalendarSpread` | `NamedTuple` | - near\_option (pulse.Option): Near expiry. Strike resolved via delta. - far\_option (pulse.Option): Far expiry. The near strike, snapped to the closest one that expiry lists. |

## `diagonal_spread_by_delta`

```python theme={null}
diagonal_spread_by_delta(
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    instrument_type: InstrumentTypeComb,
    delta: float,
    far_delta: float,
    near_min_dte: int,
    far_min_dte: int,
    near_nth: int = 1,
    far_nth: int = 2,
    period_id: PeriodIDComb | list[PeriodIDComb] = PeriodID.ALL,
) -> DiagonalSpread
```

Resolve a diagonal spread across two monthly expiries (different strike, different expiry).

Covers diagonal\_call\_spread and diagonal\_put\_spread. Each leg is resolved by delta on its own
expiry, which is what makes it a diagonal: pass the same value for both deltas and you have
asked for a calendar, so use `calendar_spread_by_delta` instead.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `instrument_type` | `InstrumentTypeComb` | Option type (call or put). | *required* |
| `delta` | `float` | Strike delta resolved on the near expiry (e.g. 0.50). | *required* |
| `far_delta` | `float` | Strike delta resolved on the far expiry (e.g. 0.30). | *required* |
| `near_min_dte` | `int` | Minimum days to expiration for the near leg. | *required* |
| `far_min_dte` | `int` | Minimum days to expiration for the far leg. | *required* |
| `near_nth` | `int` | Which expiration to pick for near leg (1 = front month). Defaults to 1. | `1` |
| `far_nth` | `int` | Which expiration to pick for far leg. Defaults to 2. | `2` |
| `period_id` | `PeriodIDComb \| list[PeriodIDComb]` | Period filter for the expiry resolver. Defaults to PeriodID.ALL. | `ALL` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `DiagonalSpread` | `NamedTuple` | - near\_option (pulse.Option): Near expiry. Strike resolved via delta. - far\_option (pulse.Option): Far expiry. Strike resolved via far\_delta on that expiry. |

## `get_structure_resolver`

```python theme={null}
get_structure_resolver(
    structure: Structure | _StructureName,
) -> Callable[..., StructureResult]
```

Return the resolver function for the given structure.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `structure` | [`Structure \| _StructureName`](https://docs.allasso.ch/dev/pulse/api/core/structures#structure) | Structure name (e.g. Structure.IRON\_CONDOR or "iron\_condor"). | *required* |

**Returns**

| Type | Description |
| - | - |
| `Callable[..., StructureResult]` | Callable\[..., StructureResult]: Resolver function for the structure. |

## `resolve_structure`

```python theme={null}
resolve_structure(
    structure: Structure | _StructureName,
    resolver: ResolverRegistry,
    underlying_id: UnderlyingID,
    as_of_time: datetime,
    **kwargs,
) -> StructureResult
```

Resolve an option structure by name, dispatching to the appropriate resolver function.

**Parameters**

| Name | Type | Description | Default |
| - | - | - | - |
| `structure` | [`Structure \| _StructureName`](https://docs.allasso.ch/dev/pulse/api/core/structures#structure) | Structure name (e.g. Structure.IRON\_CONDOR or "iron\_condor"). | *required* |
| `resolver` | `ResolverRegistry` | ResolverRegistry instance. | *required* |
| `underlying_id` | `UnderlyingID` | Underlying ID identifier. | *required* |
| `as_of_time` | `datetime` | Settlement date for which data we use for resolving. | *required* |
| `**kwargs` | | Arguments forwarded to the structure resolver function. | `{}` |

**Returns**

| Name | Type | Description |
| - | - | - |
| `StructureResult` | `StructureResult` | Resolved structure NamedTuple. |


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