Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f848171
feat(iteration-41): stage fail-closed SimNow certification cases
tianjixuetu Sep 28, 2026
aef34d1
feat(iteration-41): add sealed runtime and offline policy contracts
tianjixuetu Sep 28, 2026
358afdb
fix(iteration-41): include certification runtime dependencies
tianjixuetu Sep 28, 2026
ad93bea
fix(iteration-41): include F14 external admission seam
tianjixuetu Sep 28, 2026
fd5e321
docs(iteration-41): record SimNow acceptance gates and staging evidence
tianjixuetu Sep 28, 2026
4a81679
fix(iteration-41): include offline runtime dependency closure
tianjixuetu Sep 28, 2026
64661cf
style: satisfy broker lint in Iteration 41 PR
tianjixuetu Sep 28, 2026
08d3b05
style: format Iteration 41 runtime and broker files
tianjixuetu Sep 28, 2026
bae33d4
fix(iteration-41): re-export runtime facade without star imports
tianjixuetu Sep 28, 2026
a279e6f
build: keep core mypy scope separate from runtime package
tianjixuetu Sep 28, 2026
987a312
build: retain runtime type information in core mypy gate
tianjixuetu Sep 28, 2026
e4a0a25
ci: verify runtime package in release wheel
tianjixuetu Sep 28, 2026
b401eb3
test: defer optional PyTorch imports in FNN examples
tianjixuetu Sep 28, 2026
febea18
test: repair offline CI contracts for optional examples
tianjixuetu Sep 28, 2026
b32a00a
test: bind calibration checks to current test artifact
tianjixuetu Sep 28, 2026
b46df4f
ci: pin local candidate inputs to LF across platforms
tianjixuetu Sep 28, 2026
d6499b1
test: accept fail-closed SQLite lock contention
tianjixuetu Sep 28, 2026
58beef8
test: recognize 013_3 zoneinfo fallback on Python 3.8
tianjixuetu Sep 28, 2026
84d0e2a
test: make qualification fingerprint rejection deterministic
tianjixuetu Sep 28, 2026
3538b7e
test: require all 33 managed SimNow certification cases
tianjixuetu Sep 28, 2026
446c199
Add offline guardian request and durable journal contracts
tianjixuetu Sep 28, 2026
458d146
Make notification dedup expiry test deterministic
tianjixuetu Sep 28, 2026
6f277b0
Ignore case-local SimNow secret files
tianjixuetu Sep 28, 2026
03c9e0b
fix: persist notification anchors with owner-only Windows ACLs
tianjixuetu Sep 28, 2026
a3262b7
style: match CI Black version for Windows anchor
tianjixuetu Sep 28, 2026
5f0e9fa
fix: type Windows ctypes boundary for Linux CI
tianjixuetu Sep 28, 2026
be43afb
Accept verified Owner Rights ACE in Windows notification anchor
tianjixuetu Sep 28, 2026
33d2a3f
Record revised CTP supervisor deadline acceptance
tianjixuetu Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
examples/012_1_midfreq_cross_exchange/run.py text eol=lf
examples/012_1_midfreq_cross_exchange/strategy.py text eol=lf
examples/012_1_midfreq_cross_exchange/config.yaml text eol=lf
examples/012_2_event_driven_cross_exchange/run.py text eol=lf
examples/012_2_event_driven_cross_exchange/strategy.py text eol=lf
examples/012_2_event_driven_cross_exchange/config.yaml text eol=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ docs/_internal/opts/requirements/迭代3-宏源期货完成穿透式认证/
examples/007_ctp/live_certification/hongyuan_penetration/reports/
examples/003_hft_notebook_examples/data/
examples/007_ctp/live_certification/simnow_penetration/reports/
examples/007_ctp/live_certification/simnow_penetration/config.yaml
examples/007_ctp/live_certification/simnow_penetration/secrets.yaml
examples/007_ctp/live_certification/simnow_penetration/cases/**/secrets.yaml
examples/007_ctp/live_certification/hongyuan_penetration/*.docx

# Generated visualizations and reports from runnable examples
Expand Down
1,691 changes: 1,687 additions & 4 deletions AGENTS.md

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions backtrader/brokers/btapibroker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2464,9 +2464,7 @@ def _account_risk_snapshot_incomplete(snapshot, error_code):

result = deepcopy(snapshot)
errors = result.get("evidence_errors")
if isinstance(errors, Mapping):
existing = [item for item in errors if isinstance(item, str)]
elif isinstance(errors, (list, tuple, set, frozenset)):
if isinstance(errors, (Mapping, list, tuple, set, frozenset)):
existing = [item for item in errors if isinstance(item, str)]
elif isinstance(errors, str) and errors:
existing = [errors]
Expand Down Expand Up @@ -2540,9 +2538,7 @@ def get_account_risk_snapshot(self):
)

if has_refresh_marker:
return self._account_risk_snapshot_incomplete(
safe_snapshot, refresh_marker
)
return self._account_risk_snapshot_incomplete(safe_snapshot, refresh_marker)
return safe_snapshot

routes_method = getattr(self.store, "get_symbol_routes", None)
Expand Down
Loading
Loading