Expand model tag support: add GLM-5.1, simplify Anthropic IDs, scan tags anywhere in message

- Flink update_bars debouncing
- update_bars subscription idempotency bugfix
- Price decimal correction bugfix of previous commit
- Add GLM-5.1 model tag alongside renamed GLM-5
- Use short Anthropic model IDs (sonnet/haiku/opus) instead of full version strings
- Allow @tags anywhere in message content, not just at start
- Return hasOtherContent flag instead of trimmed rest string
- Only trigger greeting stream when tag has no other content
- Update workspace knowledge base references to platform/workspace and platform/shapes
- Hierarchical knowledge base catalog
- 151 Trading Strategies knowledge base articles
- Shapes knowledge base article
- MutateShapes tool instead of workspace patch
This commit is contained in:
2026-04-28 15:05:15 -04:00
parent d41fcd0499
commit 47471b7700
184 changed files with 9044 additions and 170 deletions

View File

@@ -0,0 +1,33 @@
---
description: "A diagonal spread buying a deep ITM call at K1 with TTM T' and selling an OTM call at K2 with shorter TTM T < T', combining directional and time decay benefits."
tags: [options, income, bullish, diagonal-spread]
---
# Diagonal Call Spread
**Section**: 2.20 | **Asset Class**: Options | **Type**: Income
## Overview
The diagonal call spread consists of a long position in a deep ITM call option with strike K1 and TTM T', and a short position in an OTM call option with strike K2 and shorter TTM T < T' (K2 > K1). This is a net debit trade. The trader's outlook is bullish. At t = T let V be the value of the long call (expiring at T') assuming S_T = K2.
## Construction
- Buy 1 deep ITM call option at strike K1, TTM T' (longer expiry)
- Sell 1 OTM call option at strike K2, TTM T < T' (shorter expiry, K2 > K1)
Net debit: D
## Payoff Profile
At t = T (expiry of short call), let V = value of the long call (expiring at T') assuming S_T = K2:
- P_max = V - D (if S_T = K2 at short expiry)
- L_max = D (net debit paid)
If S_stop-loss <= S_T <= K2, the trader can write another OTM call with TTM T1 < T'.
## Key Conditions / Signals
- Bullish outlook; expects stock to rise toward K2 by the short expiry
- Low volatility environment after entry is ideal for maximizing time decay income
- The deep ITM long call more closely mimics the underlying stock than an ATM call
## Notes
Similar to the calendar call spread but the deep ITM long call (unlike the close to ATM call in the calendar spread) more closely mimics the underlying stock, providing better protection against a sharp rise in the stock price. The trader can generate income by periodically selling OTM call options with shorter maturities.