Skip to content

Add research market universe and runtime coverage - #14

Merged
OlympusCore merged 4 commits into
mainfrom
codex/research-market-universe
Sep 26, 2026
Merged

OlympusCore merged 4 commits into
mainfrom
codex/research-market-universe

Conversation

@OlympusCore

Copy link
Copy Markdown
Owner

Summary

  • add research-only market-universe discovery, retention, and Binance provider integration
  • expand continuous market-history, runtime, reporting, and dashboard coverage
  • add deterministic tests for the new data and runtime paths

Safety

  • preserves RESEARCH_ONLY behavior
  • preserves LIVE_ORDER_BLOCKED and does not authorize live execution

Validation

  • repository-required status checks will run on this pull request
  • local tests were not rerun as part of this Git publication repair

Copilot AI lite review requested due to automatic review settings September 26, 2026 08:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

futures_multitf._eligible_symbols can raise a TypeError for naive observed_at timestamps because it subtracts before verifying timezone-awareness.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

This PR expands AI4Binance’s research-only market “universe” selection and uses it to drive broader runtime/collection coverage, including retention pruning of out-of-scope symbol data, richer dashboard readiness reporting, and additional deterministic tests across the new universe/runtime paths.

Changes:

  • Add a research-only universe provider that unions wallet holdings (bounded, stale-safe) with public market-cap leaders and integrates it into market-history sync/monitoring.
  • Add retention/pruning for symbol-scoped market datasets plus expanded continuous market-history staging/enrichment behavior and dashboard readiness projections.
  • Extend runtime/accounting robustness (portfolio cost-basis reconciliation; websocket failure containment) and add/adjust deterministic tests covering these new paths.
File Description
tests/​test_service_manifest.py Updates service expectations and validates new report/lock/pid health fields.
tests/​test_runtime_cycle.py Adds multi-asset cost-basis reconciliation coverage in runtime cycle tests.
tests/​test_research_market_universe.py New deterministic tests for wallet+market-cap universe selection and retention pruning.
tests/​test_opportunity_monitor.py Adjusts monkeypatch signature compatibility for universe reader.
tests/​test_market_history_continuous.py Adds tests for staged screening stream interleaving and history horizon behavior.
tests/​test_market_depth.py Adds tests for depth journal retention-by-universe and identity validation.
tests/​test_local_dashboard_source.py Adds tests for readiness projections and futures research classification logic.
tests/​test_futures_multitf.py Expands universe validation/retention behavior expectations in futures multitf tests.
tests/​test_data_acquisition.py Adds coverage for canonical resident runtime symbol selection.
tests/​test_continuous_skill_discovery.py Ensures deterministic filter rejection doesn’t degrade overall blockers.
tests/​test_config_reporting.py Updates defaults expectations for bounded research history horizons/settings.
tests/​test_accounting_collectors.py Adds deterministic test for websocket open failure containment and blocker formatting.
src/​ai4binance/​skills/​discovery_pipeline.py Prevents FILTER-stage rejections from degrading global blockers.
src/​ai4binance/​local_dashboard/​server.py.in Adds readiness projection helper and refines “COLLECTING vs DEGRADED” classifications.
src/​ai4binance/​integrations/​research_market_universe.py Introduces wallet + CoinGecko market-cap universe provider and bounded transport.
src/​ai4binance/​integrations/​binance/​market_universe_provider.py Extends snapshot schema with selected/wallet/market-cap asset sets + validation helpers.
src/​ai4binance/​integrations/​__init__.py Re-exports new research market-universe integration types.
src/​ai4binance/​domain/​universe.py Expands stablecoin-like identifiers to filter universe assets.
src/​ai4binance/​data/​market_universe_retention.py Adds bounded retention pruning for generated symbol-scoped data across roots.
src/​ai4binance/​data/​market_history_sync.py Adds expected-source validation + supports provider-specific cache naming and priority snapshots.
src/​ai4binance/​data/​market_history_continuous.py Adds enrichment horizon, staged screening ordering, and optional universe retention pruning.
src/​ai4binance/​data/​market_depth.py Adds depth journal retention cleanup and records retention results in health output.
src/​ai4binance/​config.py Narrows default history horizons; disables coin-m by default; adds new universe-related settings/validators.
src/​ai4binance/​compatibility/​opportunity_monitor.py Requires research-universe source when reading cached universe for UI monitoring.
src/​ai4binance/​cli/​runtime.py Selects a deterministic resident runtime symbol based on ranked universe priorities.
src/​ai4binance/​cli/​market_data.py Switches market-history synchronizer to research universe provider + wires retention and coin-m flag.
src/​ai4binance/​cli/​futures_multitf.py Adds strict cached-universe freshness/source validation and retains only state relevant to current universe.
src/​ai4binance/​application/​runtime.py Reconciles cost basis for multiple wallet assets and feeds portfolio analytics with per-asset average costs.
src/​ai4binance/​accounting/​user_stream.py Treats websocket exceptions as contained collection failures with explicit blockers.
scripts/​ykb_daily_report.ps1 Adds report status/blockers fields and improves operational vs report mismatch detection.
scripts/​primary_local_reasoning_agent.ps1 Adds PID reporting and a lock file for resident primary reasoning agent process.
config/​operations/​services.json Enables futures-multitf service in the operations manifest.
.gitignore Ensures src/ai4binance/data/ is not ignored by the top-level data/ rule.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/ai4binance/cli/futures_multitf.py
@OlympusCore
OlympusCore requested a review from hscicek September 26, 2026 08:49
@hscicek hscicek self-assigned this Sep 26, 2026
@OlympusCore
OlympusCore merged commit b1d29ae into main Sep 26, 2026
2 checks passed
@OlympusCore
OlympusCore deleted the codex/research-market-universe branch September 26, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants