Skip to content

Commit 8378e93

Browse files
Pigbibiclaudecursoragent
authored
chore: bump QPK_PIN to 0af622a (#200)
* chore: bump QPK_PIN after platform execution recorder merge Align canonical pin with main after #199 squash merge. Co-Authored-By: Claude <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com> * feat(notifications): add shared renderer_base module Consolidate ~29 duplicated functions from IBKR, Schwab, LongBridge, and Firstrade platform renderers into a single shared module. Includes: - Formatting primitives (format_percent, format_percentile, etc.) - Text splitting utilities (split_detail_segment, split_labeled_text) - Price source / timing contract localisation - Volatility-delever helpers and TQQQ risk-control builder - Timing audit and signal snapshot line builders - Dashboard cash label relabeling - resolve_execution adapter for IBKR's nested execution_annotations - format_dashboard_from_sources structured dashboard generator - i18n key aliases (resolve_i18n_key) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0af622a commit 8378e93

4 files changed

Lines changed: 747 additions & 1 deletion

File tree

QPK_PIN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f1d2c323b2a96383acec83a07bbf1816938c4650
1+
0af622ac9d47f7ef93f9379f9ded314c27a344ff

src/quant_platform_kit.egg-info/SOURCES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ README.md
33
pyproject.toml
44
setup.py
55
src/quant_platform_kit/__init__.py
6+
src/quant_platform_kit/position_sizing.py
67
src/quant_platform_kit/strategy_contracts.py
78
src/quant_platform_kit.egg-info/PKG-INFO
89
src/quant_platform_kit.egg-info/SOURCES.txt
@@ -99,6 +100,8 @@ src/quant_platform_kit/quantconnect/models.py
99100
src/quant_platform_kit/risk/__init__.py
100101
src/quant_platform_kit/risk/contracts.py
101102
src/quant_platform_kit/risk/engine.py
103+
src/quant_platform_kit/risk/gate.py
104+
src/quant_platform_kit/risk/portfolio_diagnostics.py
102105
src/quant_platform_kit/schwab/__init__.py
103106
src/quant_platform_kit/schwab/auth.py
104107
src/quant_platform_kit/schwab/execution.py
@@ -132,6 +135,7 @@ src/quant_platform_kit/strategy_lifecycle/shadow_validator.py
132135
src/quant_platform_kit/strategy_lifecycle/strategy_health_score.py
133136
src/quant_platform_kit/strategy_lifecycle/update_orchestrator.py
134137
src/quant_platform_kit/strategy_lifecycle/update_policy.py
138+
tests/test_backtest_orchestrator.py
135139
tests/test_binance_account.py
136140
tests/test_binance_client.py
137141
tests/test_binance_execution.py
@@ -173,9 +177,12 @@ tests/test_notification_events.py
173177
tests/test_notification_localization.py
174178
tests/test_notification_redaction.py
175179
tests/test_package_version.py
180+
tests/test_portfolio_diagnostics.py
181+
tests/test_position_sizing.py
176182
tests/test_qsl_compat_metadata.py
177183
tests/test_qsl_pin_manifests.py
178184
tests/test_quantconnect.py
185+
tests/test_risk_gate.py
179186
tests/test_runtime_assembly.py
180187
tests/test_runtime_config.py
181188
tests/test_runtime_logging.py

src/quant_platform_kit/notifications/__init__.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
"""Notification integrations."""
22

3+
from .renderer_base import ( # noqa: F401 — shared renderer primitives
4+
as_float_or_none,
5+
build_timing_audit_lines,
6+
build_tqqq_risk_control_lines,
7+
compact_dashboard_lines,
8+
effective_volatility_delever_threshold,
9+
format_percent,
10+
format_percentile,
11+
format_sample_count,
12+
format_signal_snapshot_line,
13+
format_tqqq_volatility_delever_allocation_detail,
14+
format_volatility_delever_threshold_detail,
15+
is_compact_dashboard_audit_line,
16+
is_truthy,
17+
localize_price_source_label,
18+
localize_timing_contract,
19+
present,
20+
relabel_dashboard_cash_labels,
21+
resolve_execution,
22+
split_detail_segment,
23+
split_labeled_text,
24+
translator_uses_zh,
25+
)
26+
327
from .cycle_channel import (
428
CYCLE_CHANNEL_DINGTALK,
529
CYCLE_CHANNEL_FEISHU,
@@ -86,6 +110,29 @@
86110
)
87111

88112
__all__ = [
113+
# renderer_base
114+
"as_float_or_none",
115+
"build_timing_audit_lines",
116+
"build_tqqq_risk_control_lines",
117+
"compact_dashboard_lines",
118+
"effective_volatility_delever_threshold",
119+
"format_percent",
120+
"format_percentile",
121+
"format_sample_count",
122+
"format_signal_snapshot_line",
123+
"format_tqqq_volatility_delever_allocation_detail",
124+
"format_volatility_delever_threshold_detail",
125+
"is_compact_dashboard_audit_line",
126+
"is_truthy",
127+
"localize_price_source_label",
128+
"localize_timing_contract",
129+
"present",
130+
"relabel_dashboard_cash_labels",
131+
"resolve_execution",
132+
"split_detail_segment",
133+
"split_labeled_text",
134+
"translator_uses_zh",
135+
# channels
89136
"CYCLE_CHANNEL_DINGTALK",
90137
"CYCLE_CHANNEL_FEISHU",
91138
"CYCLE_CHANNEL_SERVERCHAN",

0 commit comments

Comments
 (0)