Add GTL price-traffic chart diagnostic

This commit is contained in:
2026-07-13 12:08:10 +02:00
parent dc1570877c
commit 4730d19694
14 changed files with 433 additions and 44 deletions
+20
View File
@@ -40,3 +40,23 @@ class SRLevelResponse(BaseModel):
zones: list[SRZoneResult] = []
visible_levels: list[SRLevelResult] = []
count: int
class GateTargetLevelResult(BaseModel):
"""A transient Gate Target Ladder proposal for diagnostic display."""
price_level: float
type: Literal["support", "resistance"]
strength: int = Field(ge=0, le=100)
detection_method: str
sources: list[str] = Field(default_factory=list)
traffic_count: int = Field(ge=0)
class GateTargetLadderResponse(BaseModel):
"""Volume-free Gate Target Ladder computed from current OHLCV history."""
symbol: str
levels: list[GateTargetLevelResult]
count: int
lookback_bars: int