quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage#

Linear-program helpers for multi-expiry static-arbitrage audits.

class quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.LocalMultiExpiryResult(action, training_pnl, training_band, training_minimum_pnl, training_statistics, training_candidate, active_constraints, constraint_generation_iterations)[source]#

Bases: object

Result of a return-fitted multi-expiry LP in one local state ball.

class quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.MultiExpiryStaticResult(action, lower_bound, numerical_band, witness_value, strict_lower_bound, strict_numerical_band, strict_certificate, static_arbitrage_candidate, tail_slope)[source]#

Bases: object

Result of the lexicographic complete-support LP at one entry state.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.multi_expiry_lower_bound(action, *, spot, option_price, delta, cash_strike, costs, hedge)[source]#

Return the exact complete-support lower bound of a frozen action.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.multi_expiry_numerical_band(action, *, spot, option_price, delta, cash_strike, costs, hedge, roundoff_multiplier=32.0)[source]#

Propagate float32 arithmetic scale through one multi-expiry action.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.multi_expiry_scenario_returns(terminal_spot, *, spot, option_price, delta, cash_strike, hedge)[source]#

Return pre-cost instrument returns for joint expiry-spot scenarios.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.multi_expiry_terminal_pnl(action, terminal_spot, *, spot, option_price, delta, cash_strike, costs, hedge)[source]#

Evaluate a frozen multi-expiry portfolio on joint terminal spots.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.observation_numerical_band(action, scenario_return, costs, *, roundoff_multiplier=32.0)[source]#

Return the propagated arithmetic band for each realized scenario.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.solve_local_multi_expiry_portfolio(scenario_return, costs, *, weights=None, initial_constraints=64)[source]#

Fit a zero-floor, maximum-mean portfolio on one empirical state ball.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.solve_multi_expiry_static_arbitrage_lp(*, spot, option_price, delta, cash_strike, costs, hedge)[source]#

Find strict and zero-floor static arbitrage across all expiries.

The first LP maximizes the complete-support lower P&L. The second permits only the propagated float32 non-loss band and maximizes a fixed positive linear functional of the payoff. The latter detects nonzero butterflies and other ordinary arbitrages whose exact lower bound is zero.

quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage.weighted_quantile(values, weights, probability)[source]#

Return a left-continuous weighted empirical quantile.