optimizer
Rank every combo structure against a view on the underlying.
Examples
from openbb import obb
# Rank strategies for a move to 100,000 by year end.
obb.deribit.options.optimizer(symbol='BTC', target_price=100000, target_date='2026-12-25')
Parameters
- standard
symbol: str
Default: BTC
The underlying root, as it appears in the instrument name.
target_price: float
The price the underlying is expected to reach.
target_date: str
When it is expected to reach it.
budget: float
Default: 5000.0
The capital to put at risk, in the quote currency. Each position is sized so its worst loss across a threefold move either way is this much.
limit: int
Default: 40
How many structures to return, each at its best strikes.
legs: str
The strategy picked from the Legs column, shared with the payoff chart. It does not change the ranking.
Returns
results: Any
Serializable results.
provider: str
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.