Make Live workflows and book links verifiable - #106
Merged
Merged
Conversation
Use the credential-free shadow example for first use, repair its shutdown, add a checked public OKX shadow path, and pin semantically reviewed companion links. Keep the book tree and documentation links under CI verification. Refs #105
Remove an exact-phrase assertion that forced awkward copy; the feed guide and API checks still cover the experimental boundary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #105.
Reader result
The Quickstart now completes a credential-free
LiveEngine+SafeBrokershadow run from the published package. The synthetic example requests orderly shutdown after its final bar, so it no longer reports a degraded feed as a successful run. A separate public OKX strategy file makes the bounded CLI shadow command match its feed symbols and emit observable bars without orders.The Book Guide now links 14 directly rendered notebooks at companion commit
d2edec54b1c7a6a9d7a97d8129eb05db4491e1eb. The three stale paths were replaced:14_backtest->13_backtest,17_risk_management->15_risk_management, and the removedokx_funding_rate_demo-> the current09_crypto_funding_deployment_loop. Each entry says whether it calls Live, teaches a method manually, or shows a related workflow. Major task guides link to matching files and the Book Guide links back.Capability inventory
LiveEngine,ThreadSafeBrokerWrappershadow_mode_demo.pySafeBroker,LiveRiskConfig,VirtualPortfolioshadow_mode_demo.py,risk_guard_demo.pyIBBroker,AlpacaBrokerib_paper_equity.py,alpaca_paper_equity.py; preflight is read-onlyOKXFundingFeedokx_shadow_strategy.pywithml4t-live shadowAlpacaBroker; stable feed, network dependentBarAggregator, provider feed classesSafeBroker.reconciliation_report,LiveEngine.runtime_statusstartup_reconciliation_demo.pyLiveEngine, canonical order and runtime typesruntime_error_contextstatus,preflight, boundedshadowUnsupported order behaviors fail against declared broker capabilities. Experimental feeds require
experimental=Trueand cannot claim stable reconnect continuity. No provider account, paper order, live order, or hardware-dependent path was exercised in this PR.Verification
shadow_mode_demo.py,risk_guard_demo.py, andstartup_reconciliation_demo.pywithpython -I; each exited 0 with the documented output markers. The shadow demo ended atfinal_positions=DEMO:10without a degraded-runtime message. Also ran the documenteduv run --no-project --with ml4t-livecommand against the published package.final_health=stoppedandorders=0. This checks the public data path at one moment, not provider continuity.d2edec54b1c7a6a9d7a97d8129eb05db4491e1eb; all paths exist. Inspected the corresponding companion scripts for imports and stated workflow. CI now checks the pinned tree.uv run mkdocs build --strict: pass.uv run ruff check --no-fix src tests examples scripts/qualification: pass.uv run ruff format --check src tests examples scripts/qualification: pass.uv run ty check: pass.uv run pytest -q: 1,051 passed, 29 skipped.Remaining limits
The Alpaca and IB paper examples need accounts, credentials or TWS/IB Gateway, and market-data access. Experimental feed service behavior requires separate provider qualification. The five-second OKX observation does not establish sustained availability. Live-order examples were reviewed and left unrun. The companion book itself and other repositories are unchanged.
PR checks
At head
588b2d595718e04ea7426e8311afcdc5fbb0a397, all triggered checks completed: 26 passed and the Python 3.15 exception check was skipped as designed. The exact installed-artifact qualification passed.