Category: Execution Strategy (SIMULATE)
Builds and executes multi-leg options strategies (straddle, strangle, iron condor) using the Futu options API. All legs are placed together with market orders and monitored for fills.
| Strategy | Legs | Profit When |
|---|---|---|
| Straddle | Long 1 ATM Call + Long 1 ATM Put | Large move in either direction |
| Strangle | Long 1 OTM Call + Long 1 OTM Put | Large move (cheaper than straddle) |
| Iron Condor | Short call spread + Short put spread | Price stays within inner strikes |
- Fetches current price for the underlying stock.
- Searches option chain for matching contracts via
get_option_chain. - Builds strategy legs with hedge ratios.
- Places all legs simultaneously with market orders.
- Monitors fill status until all legs filled or timeout.
cancel_all_orderinfinally.
python3 main.py --strategy straddle --stock HK.00700
python3 main.py --strategy iron_condor --stock HK.00700 --expiry 202606get_option_chainwith pagination- Multi-leg order placement
- Strategy pattern (register/dispatch)
- Market order execution on options
- SIMULATE-only with proper cleanup
| Flag | Default | Description |
|---|---|---|
--strategy |
straddle |
Strategy: straddle, strangle, iron_condor |
--stock |
HK.00700 |
Underlying stock |
--expiry |
"" (first available) |
Expiry in YYYYMM format |
--max-minutes |
10 |
Safety timeout |