tradeagent 1.0.0b9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tradeagent-1.0.0b9/.gitignore +45 -0
- tradeagent-1.0.0b9/AGENTS.md +37 -0
- tradeagent-1.0.0b9/CHANGELOG.md +128 -0
- tradeagent-1.0.0b9/CONTRIBUTING.md +14 -0
- tradeagent-1.0.0b9/LICENSE +202 -0
- tradeagent-1.0.0b9/MANIFEST.in +8 -0
- tradeagent-1.0.0b9/PKG-INFO +306 -0
- tradeagent-1.0.0b9/README.md +274 -0
- tradeagent-1.0.0b9/README.zh-CN.md +255 -0
- tradeagent-1.0.0b9/SECURITY.md +13 -0
- tradeagent-1.0.0b9/THIRD_PARTY.md +12 -0
- tradeagent-1.0.0b9/config/canary-policy.template.json +47 -0
- tradeagent-1.0.0b9/config/canary.example.json +14 -0
- tradeagent-1.0.0b9/config/config.example.json +12 -0
- tradeagent-1.0.0b9/config/risk.example.json +13 -0
- tradeagent-1.0.0b9/config/small-balance-shadow.example.json +12 -0
- tradeagent-1.0.0b9/docs/MCP_CONTRACT_1_7_0_REVIEW.md +33 -0
- tradeagent-1.0.0b9/docs/UPSTREAM_PROVENANCE.json +21 -0
- tradeagent-1.0.0b9/docs/alpha-findings.md +98 -0
- tradeagent-1.0.0b9/docs/architecture.md +158 -0
- tradeagent-1.0.0b9/docs/canary-review.md +87 -0
- tradeagent-1.0.0b9/docs/commissioning.md +148 -0
- tradeagent-1.0.0b9/docs/continuous-v5.md +110 -0
- tradeagent-1.0.0b9/docs/deployment.md +54 -0
- tradeagent-1.0.0b9/docs/deployment_manifest.json +162 -0
- tradeagent-1.0.0b9/docs/event-driven-v6.md +184 -0
- tradeagent-1.0.0b9/docs/examples/commissioning-fixture-summary.json +869 -0
- tradeagent-1.0.0b9/docs/examples/rsi-demo-future.example.json +91 -0
- tradeagent-1.0.0b9/docs/examples/rsi-demo-snapshot.example.json +193 -0
- tradeagent-1.0.0b9/docs/examples/rsi-demo-summary.json +35 -0
- tradeagent-1.0.0b9/docs/examples/tradeplan-alpha-results.json +1458 -0
- tradeagent-1.0.0b9/docs/examples/tradeplan-protocol.json +53 -0
- tradeagent-1.0.0b9/docs/getting-started.md +101 -0
- tradeagent-1.0.0b9/docs/market-data.md +75 -0
- tradeagent-1.0.0b9/docs/one-shot.md +271 -0
- tradeagent-1.0.0b9/docs/opportunity-research-v2.md +109 -0
- tradeagent-1.0.0b9/docs/opportunity-workflow.md +347 -0
- tradeagent-1.0.0b9/docs/prospective-shadow.md +180 -0
- tradeagent-1.0.0b9/docs/releasing.md +47 -0
- tradeagent-1.0.0b9/docs/research-protocol.md +214 -0
- tradeagent-1.0.0b9/docs/safety.md +17 -0
- tradeagent-1.0.0b9/docs/tradeplan-engine.md +139 -0
- tradeagent-1.0.0b9/licenses/Oft3r-MIT.txt +21 -0
- tradeagent-1.0.0b9/licenses/abiemann-MIT.txt +21 -0
- tradeagent-1.0.0b9/licenses/cbangera2-MIT.txt +21 -0
- tradeagent-1.0.0b9/pyproject.toml +54 -0
- tradeagent-1.0.0b9/scripts/check_project.py +109 -0
- tradeagent-1.0.0b9/scripts/check_release.py +136 -0
- tradeagent-1.0.0b9/scripts/commissioning_fixture.py +67 -0
- tradeagent-1.0.0b9/scripts/install_continuous.py +96 -0
- tradeagent-1.0.0b9/scripts/install_events.py +144 -0
- tradeagent-1.0.0b9/scripts/install_shadow.py +244 -0
- tradeagent-1.0.0b9/setup.cfg +4 -0
- tradeagent-1.0.0b9/src/tradeagent/__init__.py +1 -0
- tradeagent-1.0.0b9/src/tradeagent/account_policy.py +49 -0
- tradeagent-1.0.0b9/src/tradeagent/accounting.py +127 -0
- tradeagent-1.0.0b9/src/tradeagent/broker.py +497 -0
- tradeagent-1.0.0b9/src/tradeagent/calendar.py +55 -0
- tradeagent-1.0.0b9/src/tradeagent/canary_review.py +457 -0
- tradeagent-1.0.0b9/src/tradeagent/canary_review_cli.py +95 -0
- tradeagent-1.0.0b9/src/tradeagent/cli.py +168 -0
- tradeagent-1.0.0b9/src/tradeagent/codex_bridge.py +320 -0
- tradeagent-1.0.0b9/src/tradeagent/contracts/market-data-1.7.0.json +334 -0
- tradeagent-1.0.0b9/src/tradeagent/contracts/official-1.6.2.json +3397 -0
- tradeagent-1.0.0b9/src/tradeagent/contracts/official-1.7.0.json +4704 -0
- tradeagent-1.0.0b9/src/tradeagent/contracts/official-1.7.3.json +4733 -0
- tradeagent-1.0.0b9/src/tradeagent/contracts/options-research-1.8.0.json +696 -0
- tradeagent-1.0.0b9/src/tradeagent/demo.py +145 -0
- tradeagent-1.0.0b9/src/tradeagent/doctor.py +179 -0
- tradeagent-1.0.0b9/src/tradeagent/execution.py +123 -0
- tradeagent-1.0.0b9/src/tradeagent/execution_policy.py +685 -0
- tradeagent-1.0.0b9/src/tradeagent/friendly.py +102 -0
- tradeagent-1.0.0b9/src/tradeagent/health.py +111 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/__init__.py +1 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/autonomous.py +270 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/canary.py +292 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/cli.py +79 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/policy.py +363 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/release.py +29 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/runner.py +152 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/standalone.py +201 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/standalone_cli.py +149 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/standalone_reference.py +211 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/strategy.py +118 -0
- tradeagent-1.0.0b9/src/tradeagent/legacy/supervised_cli.py +138 -0
- tradeagent-1.0.0b9/src/tradeagent/market_mcp.py +38 -0
- tradeagent-1.0.0b9/src/tradeagent/model.py +330 -0
- tradeagent-1.0.0b9/src/tradeagent/oneshot.py +1211 -0
- tradeagent-1.0.0b9/src/tradeagent/oneshot_cli.py +404 -0
- tradeagent-1.0.0b9/src/tradeagent/opportunity_cli.py +457 -0
- tradeagent-1.0.0b9/src/tradeagent/opportunity_live.py +486 -0
- tradeagent-1.0.0b9/src/tradeagent/options.py +463 -0
- tradeagent-1.0.0b9/src/tradeagent/owner.example.toml +37 -0
- tradeagent-1.0.0b9/src/tradeagent/paths.py +24 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/__init__.py +1 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/access.py +92 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/assessor.py +339 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/collector.py +211 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/continuous.py +741 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/daily.py +722 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/daily_reporting.py +698 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/event_assessor.py +137 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/event_reporting.py +246 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/event_store.py +124 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/events.py +764 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/providers.py +252 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/sec_events.py +381 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/service.py +379 -0
- tradeagent-1.0.0b9/src/tradeagent/prospective/v5_supplement.py +197 -0
- tradeagent-1.0.0b9/src/tradeagent/research/__init__.py +1 -0
- tradeagent-1.0.0b9/src/tradeagent/research/agent_market.py +17 -0
- tradeagent-1.0.0b9/src/tradeagent/research/alpha_data.py +113 -0
- tradeagent-1.0.0b9/src/tradeagent/research/alpha_experiment.py +486 -0
- tradeagent-1.0.0b9/src/tradeagent/research/alpha_signals.py +126 -0
- tradeagent-1.0.0b9/src/tradeagent/research/attribution.py +133 -0
- tradeagent-1.0.0b9/src/tradeagent/research/bidirectional.py +454 -0
- tradeagent-1.0.0b9/src/tradeagent/research/call_put.py +603 -0
- tradeagent-1.0.0b9/src/tradeagent/research/demo.py +234 -0
- tradeagent-1.0.0b9/src/tradeagent/research/domain.py +298 -0
- tradeagent-1.0.0b9/src/tradeagent/research/evidence_cohorts.py +212 -0
- tradeagent-1.0.0b9/src/tradeagent/research/evolution.py +265 -0
- tradeagent-1.0.0b9/src/tradeagent/research/expressions.py +167 -0
- tradeagent-1.0.0b9/src/tradeagent/research/feedback.py +98 -0
- tradeagent-1.0.0b9/src/tradeagent/research/history_data.py +182 -0
- tradeagent-1.0.0b9/src/tradeagent/research/lab.py +163 -0
- tradeagent-1.0.0b9/src/tradeagent/research/learning.py +264 -0
- tradeagent-1.0.0b9/src/tradeagent/research/market.py +58 -0
- tradeagent-1.0.0b9/src/tradeagent/research/opportunities.py +492 -0
- tradeagent-1.0.0b9/src/tradeagent/research/opportunity_workflow.py +1231 -0
- tradeagent-1.0.0b9/src/tradeagent/research/option_economics.py +55 -0
- tradeagent-1.0.0b9/src/tradeagent/research/outcomes.py +148 -0
- tradeagent-1.0.0b9/src/tradeagent/research/put_shadow.py +318 -0
- tradeagent-1.0.0b9/src/tradeagent/research/replay.py +550 -0
- tradeagent-1.0.0b9/src/tradeagent/research/reporting.py +73 -0
- tradeagent-1.0.0b9/src/tradeagent/research/research_universe.py +68 -0
- tradeagent-1.0.0b9/src/tradeagent/research/selector.py +87 -0
- tradeagent-1.0.0b9/src/tradeagent/research/store.py +425 -0
- tradeagent-1.0.0b9/src/tradeagent/research/tradeplan.py +390 -0
- tradeagent-1.0.0b9/src/tradeagent/risk.py +177 -0
- tradeagent-1.0.0b9/src/tradeagent/robinhood_login.py +497 -0
- tradeagent-1.0.0b9/src/tradeagent/schema.py +234 -0
- tradeagent-1.0.0b9/src/tradeagent/simulator.py +501 -0
- tradeagent-1.0.0b9/src/tradeagent/standalone_mcp.py +578 -0
- tradeagent-1.0.0b9/src/tradeagent/state.py +310 -0
- tradeagent-1.0.0b9/src/tradeagent/strategy.py +132 -0
- tradeagent-1.0.0b9/src/tradeagent/supervised.py +759 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/__init__.py +1 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/client.py +33 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/exceptions.py +21 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/indicators.py +23 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/run_lock.py +366 -0
- tradeagent-1.0.0b9/src/tradeagent/vendor/trend.py +24 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/PKG-INFO +306 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/SOURCES.txt +203 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/dependency_links.txt +1 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/entry_points.txt +2 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/requires.txt +8 -0
- tradeagent-1.0.0b9/src/tradeagent.egg-info/top_level.txt +1 -0
- tradeagent-1.0.0b9/tests/conftest.py +16 -0
- tradeagent-1.0.0b9/tests/test_account_and_market_rules.py +227 -0
- tradeagent-1.0.0b9/tests/test_bidirectional.py +718 -0
- tradeagent-1.0.0b9/tests/test_broker_contract.py +246 -0
- tradeagent-1.0.0b9/tests/test_call_put.py +611 -0
- tradeagent-1.0.0b9/tests/test_canary_execution.py +246 -0
- tradeagent-1.0.0b9/tests/test_canary_reference.py +154 -0
- tradeagent-1.0.0b9/tests/test_canary_review.py +404 -0
- tradeagent-1.0.0b9/tests/test_commissioning.py +306 -0
- tradeagent-1.0.0b9/tests/test_continuous.py +313 -0
- tradeagent-1.0.0b9/tests/test_contract_173.py +252 -0
- tradeagent-1.0.0b9/tests/test_contract_pins.py +180 -0
- tradeagent-1.0.0b9/tests/test_daily_excess.py +81 -0
- tradeagent-1.0.0b9/tests/test_daily_news.py +594 -0
- tradeagent-1.0.0b9/tests/test_daily_reporting.py +397 -0
- tradeagent-1.0.0b9/tests/test_daily_research.py +424 -0
- tradeagent-1.0.0b9/tests/test_daily_signal_timing.py +318 -0
- tradeagent-1.0.0b9/tests/test_doctor.py +52 -0
- tradeagent-1.0.0b9/tests/test_events_v6.py +626 -0
- tradeagent-1.0.0b9/tests/test_evidence_cohorts.py +355 -0
- tradeagent-1.0.0b9/tests/test_execution_lifecycle.py +894 -0
- tradeagent-1.0.0b9/tests/test_fractional_live.py +383 -0
- tradeagent-1.0.0b9/tests/test_friendly_onboarding.py +60 -0
- tradeagent-1.0.0b9/tests/test_history_auth.py +257 -0
- tradeagent-1.0.0b9/tests/test_market_capability.py +148 -0
- tradeagent-1.0.0b9/tests/test_market_freshness.py +153 -0
- tradeagent-1.0.0b9/tests/test_market_providers.py +363 -0
- tradeagent-1.0.0b9/tests/test_onboarding.py +29 -0
- tradeagent-1.0.0b9/tests/test_oneshot.py +322 -0
- tradeagent-1.0.0b9/tests/test_opportunities.py +594 -0
- tradeagent-1.0.0b9/tests/test_opportunity_coverage.py +371 -0
- tradeagent-1.0.0b9/tests/test_opportunity_live.py +488 -0
- tradeagent-1.0.0b9/tests/test_opportunity_policies.py +535 -0
- tradeagent-1.0.0b9/tests/test_owner_recovery.py +426 -0
- tradeagent-1.0.0b9/tests/test_production_oneshot.py +501 -0
- tradeagent-1.0.0b9/tests/test_prospective.py +608 -0
- tradeagent-1.0.0b9/tests/test_release_policy.py +710 -0
- tradeagent-1.0.0b9/tests/test_research_integrity.py +84 -0
- tradeagent-1.0.0b9/tests/test_research_loop.py +450 -0
- tradeagent-1.0.0b9/tests/test_review_expiry_recovery.py +331 -0
- tradeagent-1.0.0b9/tests/test_robinhood_login.py +249 -0
- tradeagent-1.0.0b9/tests/test_safety.py +419 -0
- tradeagent-1.0.0b9/tests/test_server_version_drift.py +70 -0
- tradeagent-1.0.0b9/tests/test_standalone.py +599 -0
- tradeagent-1.0.0b9/tests/test_supervised_contract.py +105 -0
- tradeagent-1.0.0b9/tests/test_tradeplan_engine.py +376 -0
- tradeagent-1.0.0b9/tests/test_v5_supplement.py +45 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
work/
|
|
3
|
+
*.snapshot.json
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*.egg-info/
|
|
7
|
+
.pytest_cache/
|
|
8
|
+
.ruff_cache/
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
.env
|
|
12
|
+
.env.*
|
|
13
|
+
!*.example.*
|
|
14
|
+
config/config.json
|
|
15
|
+
config/risk.json
|
|
16
|
+
config/*.local.*
|
|
17
|
+
data/*
|
|
18
|
+
!data/.gitkeep
|
|
19
|
+
*token*.json
|
|
20
|
+
*credentials*
|
|
21
|
+
*.sqlite*
|
|
22
|
+
*.db
|
|
23
|
+
*.log
|
|
24
|
+
*.jsonl
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
.codex/
|
|
28
|
+
.tokens/
|
|
29
|
+
*.pem
|
|
30
|
+
*.key
|
|
31
|
+
secrets.*
|
|
32
|
+
|
|
33
|
+
# Operator artifacts are never source inputs
|
|
34
|
+
*.lock
|
|
35
|
+
*.lease
|
|
36
|
+
*.jsonl.*
|
|
37
|
+
*.cookie*
|
|
38
|
+
*session*.json
|
|
39
|
+
*auth*.json
|
|
40
|
+
*.p12
|
|
41
|
+
*.pfx
|
|
42
|
+
config/*policy.local.*
|
|
43
|
+
|
|
44
|
+
# Internal assistant handoffs belong in ignored local work
|
|
45
|
+
GPT_HANDOFF.md
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Contributor instructions
|
|
2
|
+
|
|
3
|
+
TradeAgent is a prospective quantitative laboratory with a separate execution substrate.
|
|
4
|
+
Read README, docs/architecture.md and docs/research-protocol.md before changing the loop.
|
|
5
|
+
|
|
6
|
+
- Strategies receive market snapshots and produce immutable Predictions, never account
|
|
7
|
+
state, broker intents or execution authorization. Keep all enabled versions in shadow.
|
|
8
|
+
- Keep exact version/implementation identity, availability timestamps, append-only
|
|
9
|
+
evidence, independent synthetic/replay pools and frozen challenger evaluation rules.
|
|
10
|
+
- Preserve losing history, explicit promotion/rejection/retirement and prior-only selector state.
|
|
11
|
+
- Daily learning changes statistical state; it does not rewrite source or observations.
|
|
12
|
+
- Preserve the execution substrate's durable submission identity, capital bounds,
|
|
13
|
+
locks, fill persistence, recovery and reconciliation. Legacy control workflows are
|
|
14
|
+
optional compatibility code and must not enter the default research path.
|
|
15
|
+
- Use mock brokers and new synthetic local Linux state. Never read or modify operator
|
|
16
|
+
runtime state, credentials or signing artifacts during development. No real trading
|
|
17
|
+
without a separate explicit operational request.
|
|
18
|
+
- Preserve vendor files, licenses and docs/UPSTREAM_PROVENANCE.json. Regenerate the
|
|
19
|
+
optional legacy manifest after source changes with check_project.py --update-manifest;
|
|
20
|
+
it is not a research trading gate. Preserve unrelated user work.
|
|
21
|
+
|
|
22
|
+
Validation:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python -m pytest -q
|
|
26
|
+
ruff check src tests scripts
|
|
27
|
+
ruff format --check src tests scripts
|
|
28
|
+
python -m compileall -q src
|
|
29
|
+
python -m build
|
|
30
|
+
python -m twine check dist/*
|
|
31
|
+
python scripts/check_project.py
|
|
32
|
+
tradeagent demo --demo-dir work/fresh-rsi-demo
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Commit only source and sanitized reproducible artifacts. Never commit runtime DBs,
|
|
36
|
+
private reports, authentication files or real-account data. Keep internal handoffs and validation evidence under ignored work/ only; never
|
|
37
|
+
commit AI handoff artifacts. Public docs describe the software and its operation.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.9 — 2026-10-15
|
|
4
|
+
|
|
5
|
+
Python distribution version: `1.0.0b9`. First release published to PyPI
|
|
6
|
+
(`pipx install tradeagent`).
|
|
7
|
+
|
|
8
|
+
- Robinhood MCP updates are checked for compatibility instead of an exact version and
|
|
9
|
+
schema pin. Additive changes (new optional inputs, new response fields, new tools)
|
|
10
|
+
keep trading working and are reported by `live-check`; incompatible changes to equity
|
|
11
|
+
or account tools fail closed with the tool and reason; a broken option tool disables
|
|
12
|
+
only option features. Both real past upgrades replay as compatible. Legacy
|
|
13
|
+
Codex/canary paths keep the strict pin.
|
|
14
|
+
- `tradeagent doctor`: offline setup checklist with the next command to run.
|
|
15
|
+
- `tradeagent login` / `logout`: browser sign-in to the official Robinhood Trading MCP
|
|
16
|
+
(standard OAuth discovery, dynamic client registration and PKCE). The access and
|
|
17
|
+
refresh tokens are stored owner-only; the engine still obtains tokens only through the external
|
|
18
|
+
helper, which `login` installs at the existing default path.
|
|
19
|
+
- `login` creates `~/.config/tradeagent/tradeagent.toml`; LIVE commands use it when
|
|
20
|
+
`--config` is omitted. `state_dir` and `oauth_helper` now have per-user defaults.
|
|
21
|
+
- `tradeagent` with no arguments prints grouped help. `demo`, `run-once --paper` and
|
|
22
|
+
`live-check` add a short human summary on interactive terminals; JSON on stdout is
|
|
23
|
+
unchanged. `live-check` names the missing sign-in instead of a generic failure.
|
|
24
|
+
- Tests isolate HOME/XDG directories so they never see a developer's real config.
|
|
25
|
+
- README rewritten for new users, with a Simplified Chinese version (`README.zh-CN.md`)
|
|
26
|
+
linked from the top of each: comparison with existing tools, two-minute tour,
|
|
27
|
+
safety guarantees and honest results status.
|
|
28
|
+
|
|
29
|
+
## 1.0.0-beta.8 — 2026-10-15
|
|
30
|
+
|
|
31
|
+
Python distribution version: `1.0.0b8`.
|
|
32
|
+
|
|
33
|
+
- Add isolated event-driven v6: official SEC submissions/original disclosures,
|
|
34
|
+
declared fair access, deduplicated prospective events and budgeted subscription
|
|
35
|
+
Codex interpretation. Historical connectivity never becomes a live opportunity.
|
|
36
|
+
- Independent Fast, Delayed and Quant+Codex arms share the appropriate fresh
|
|
37
|
+
quotes, with 1/3/5 subsequent-session close observations and corporate-action
|
|
38
|
+
evidence checks. Match incremental comparisons and cluster by entry session.
|
|
39
|
+
- Add four independent SHADOW workers/timers and a read-only v5 supplement with
|
|
40
|
+
pairwise delays, separate benchmark cohorts and completeness by session period.
|
|
41
|
+
Preserve existing protocols, installed environments, timers and v5 priority guard.
|
|
42
|
+
|
|
43
|
+
## 1.0.0-beta.7 — 2026-10-15
|
|
44
|
+
|
|
45
|
+
Python distribution version: `1.0.0b7`.
|
|
46
|
+
|
|
47
|
+
- Add isolated continuous Quant SHADOW v5, five-minute rolling discovery and real
|
|
48
|
+
forward bid/ask observations at 1/3/5/10-minute delays and a common signal+60m exit.
|
|
49
|
+
- Freeze signal transitions, liquidity, uncalibrated forecasts, costs and the eligible
|
|
50
|
+
basket. Preserve missing and stale signals; compare matched delays by session clusters.
|
|
51
|
+
- Independent SQLite/captures and systemd units; no LLM calls or broker writes.
|
|
52
|
+
Existing v1/v2 captures take priority and v3/v4 activation remains unchanged.
|
|
53
|
+
|
|
54
|
+
## 1.0.0-beta.6 — 2026-10-15
|
|
55
|
+
|
|
56
|
+
Python distribution version: `1.0.0b6`.
|
|
57
|
+
|
|
58
|
+
- Add isolated `daily-call-put-v4`: signed Quant and independent Codex Price/News
|
|
59
|
+
choices use long Calls/Puts, genuine entry ask/exit bid, whole-contract allocation,
|
|
60
|
+
idle cash and explicit modeled fees. Equity, SPY and CASH remain separate controls.
|
|
61
|
+
- Existing minutely SHADOW pipeline captures endpoints and generates daily reports.
|
|
62
|
+
The 11:00 ET capture avoids v1/v2 Codex windows and checks their service activity.
|
|
63
|
+
- Persist option-data HTTP 403 as an access blocker and suppress automatic retries.
|
|
64
|
+
Timer enablement requires successful genuine prospective Call and Put cycles;
|
|
65
|
+
prepare-only installs a verified disabled timer. V1/v2/v3 history remains frozen.
|
|
66
|
+
|
|
67
|
+
## 1.0.0-beta.5 — 2026-10-14
|
|
68
|
+
|
|
69
|
+
Python distribution version: `1.0.0b5`.
|
|
70
|
+
|
|
71
|
+
- Existing daily SHADOW ticks generate `daily-report.md` with frozen P&L, quote/cost
|
|
72
|
+
details, candidate coverage, and separately labeled exploratory basket, ranking,
|
|
73
|
+
disagreement and news comparisons. Missing evidence remains explicit.
|
|
74
|
+
- `python -m tradeagent.prospective.daily --report-only --state-dir PATH --protocol NAME`
|
|
75
|
+
regenerates the derived report without collection, inference or a decision tick.
|
|
76
|
+
- Preserve v1/v2 selection rules, frozen observations, windows and costs; v3 remains
|
|
77
|
+
dependent on genuine option quotes and explicit operator enablement.
|
|
78
|
+
|
|
79
|
+
## 1.0.0-beta.4 — 2026-10-13
|
|
80
|
+
|
|
81
|
+
Python distribution version: `1.0.0b4`. Supersedes the unpublished beta.3.
|
|
82
|
+
|
|
83
|
+
- New `daily-news-v2` SHADOW experiment: at 10:30 ET two concurrent Codex assessments of the
|
|
84
|
+
same three candidates share one prompt, schema, model and deadline and differ only in web
|
|
85
|
+
access (live search with cited, dated sources vs. search disabled). Both get the same entry,
|
|
86
|
+
exit and costs, alongside Quant only, Quant + news Codex and seeded Random.
|
|
87
|
+
Install it with `install_shadow.py --daily --protocol daily-news-v2` and its own state
|
|
88
|
+
directory. `daily-four-arm-v1` is unchanged.
|
|
89
|
+
- `daily-status.json` now reports each arm's net return in excess of the benchmark over the
|
|
90
|
+
same window, and paired excess differences with standard errors, so an arm that is simply
|
|
91
|
+
long more often in a rising market no longer looks like skill.
|
|
92
|
+
- Exit-only recovery and read-only reconciliation keep working when Robinhood bumps the MCP
|
|
93
|
+
server version without changing tool schemas. New entries still require the reviewed version.
|
|
94
|
+
- The Codex event parser ignores blank lines.
|
|
95
|
+
|
|
96
|
+
## 1.0.0-beta.3 — 2026-10-12
|
|
97
|
+
|
|
98
|
+
Python distribution version: `1.0.0b3`.
|
|
99
|
+
|
|
100
|
+
- Review and pin the authenticated Robinhood MCP 1.7.3 broker contracts.
|
|
101
|
+
- Retain any-agent provenance without filtering account orders or changing ownership.
|
|
102
|
+
- Permit exact legacy-contract journal inspection through read-only reconciliation; saved reviews and write recovery remain blocked on contract mismatch.
|
|
103
|
+
- Preserve owner limits, execution authorization, SHADOW capability and frozen research protocols.
|
|
104
|
+
|
|
105
|
+
## 1.0.0-beta.2 — 2026-10-12
|
|
106
|
+
|
|
107
|
+
Python distribution version: `1.0.0b2`.
|
|
108
|
+
|
|
109
|
+
- Isolate SHADOW market collection to the two existing pinned market-data contracts.
|
|
110
|
+
- Batch quote requests at 20 symbols to preserve previous-session close references.
|
|
111
|
+
- Preserve full LIVE broker contract validation and review/place/cancel authorization.
|
|
112
|
+
- Preserve strategy identities, daily-four-arm-v1, scheduled windows and existing evidence.
|
|
113
|
+
|
|
114
|
+
## [1.0.0-beta.1](https://github.com/danielye0010/TradeAgent/releases/tag/v1.0.0-beta.1) — 2026-10-09
|
|
115
|
+
|
|
116
|
+
First packaged beta release. Python distribution version: `1.0.0b1`.
|
|
117
|
+
|
|
118
|
+
- Market scanning, immutable forecasts and cost-aware quantitative TradePlans.
|
|
119
|
+
- Scheduled SHADOW comparison of Quant Only, Codex Only, Quant + Codex and seeded Random.
|
|
120
|
+
- Separate, explicitly owner-authorized US equity/ETF execution through the official
|
|
121
|
+
Robinhood Trading MCP, with durable order identity, reconciliation and recovery.
|
|
122
|
+
- Synthetic research demos and simulated broker lifecycles.
|
|
123
|
+
- Linux support with Python 3.12–3.14; wheel, source distribution and SHA-256 checksums.
|
|
124
|
+
- Clarified installation, research/LIVE boundaries and release validation.
|
|
125
|
+
|
|
126
|
+
Prospective profitability and Codex uplift are not established. SHADOW results are
|
|
127
|
+
modeled outcomes, not actual fills. This packaging release preserves strategy
|
|
128
|
+
identities and persisted protocol versions.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Implement focused changes and validate them against real repository files.
|
|
4
|
+
Read [Architecture](docs/architecture.md) and [Research protocol](docs/research-protocol.md).
|
|
5
|
+
|
|
6
|
+
Install `python -m pip install -e ".[dev]"`. Run the checks in [AGENTS.md](AGENTS.md).
|
|
7
|
+
Tests and demos must use mocked brokers and fresh synthetic local state.
|
|
8
|
+
|
|
9
|
+
Preserve immutable evidence and execution correctness. Introduce new strategy versions
|
|
10
|
+
rather than changing registered parameters or implementation hashes. A successful
|
|
11
|
+
run verifies software; it does not establish alpha or profitability.
|
|
12
|
+
|
|
13
|
+
Never commit credentials, private keys, account identifiers or runtime state.
|
|
14
|
+
Retain upstream attribution and byte-identical vendored sources.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
include .gitignore README.md README.zh-CN.md CHANGELOG.md LICENSE THIRD_PARTY.md CONTRIBUTING.md SECURITY.md AGENTS.md
|
|
2
|
+
recursive-include config *.example.json *.template.json
|
|
3
|
+
recursive-include docs *.md *.json
|
|
4
|
+
recursive-include scripts *.py
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
recursive-include licenses *.txt
|
|
7
|
+
|
|
8
|
+
include src/tradeagent/owner.example.toml
|