tradingcodex 0.1.0__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.
- tradingcodex-0.1.0/CONTRIBUTING.md +62 -0
- tradingcodex-0.1.0/LICENSE +202 -0
- tradingcodex-0.1.0/MANIFEST.in +13 -0
- tradingcodex-0.1.0/NOTICE +24 -0
- tradingcodex-0.1.0/PKG-INFO +337 -0
- tradingcodex-0.1.0/README.md +309 -0
- tradingcodex-0.1.0/TRADEMARKS.md +58 -0
- tradingcodex-0.1.0/apps/__init__.py +1 -0
- tradingcodex-0.1.0/apps/audit/__init__.py +1 -0
- tradingcodex-0.1.0/apps/audit/admin.py +6 -0
- tradingcodex-0.1.0/apps/audit/apps.py +8 -0
- tradingcodex-0.1.0/apps/audit/migrations/0001_initial.py +35 -0
- tradingcodex-0.1.0/apps/audit/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/audit/models.py +22 -0
- tradingcodex-0.1.0/apps/harness/__init__.py +1 -0
- tradingcodex-0.1.0/apps/harness/admin.py +6 -0
- tradingcodex-0.1.0/apps/harness/apps.py +8 -0
- tradingcodex-0.1.0/apps/harness/migrations/0001_initial.py +35 -0
- tradingcodex-0.1.0/apps/harness/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/harness/models.py +22 -0
- tradingcodex-0.1.0/apps/harness/templatetags/__init__.py +1 -0
- tradingcodex-0.1.0/apps/integrations/__init__.py +1 -0
- tradingcodex-0.1.0/apps/integrations/admin.py +6 -0
- tradingcodex-0.1.0/apps/integrations/apps.py +8 -0
- tradingcodex-0.1.0/apps/integrations/migrations/0001_initial.py +29 -0
- tradingcodex-0.1.0/apps/integrations/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/integrations/models.py +16 -0
- tradingcodex-0.1.0/apps/integrations/services.py +31 -0
- tradingcodex-0.1.0/apps/mcp/__init__.py +1 -0
- tradingcodex-0.1.0/apps/mcp/admin.py +20 -0
- tradingcodex-0.1.0/apps/mcp/apps.py +8 -0
- tradingcodex-0.1.0/apps/mcp/migrations/0001_initial.py +168 -0
- tradingcodex-0.1.0/apps/mcp/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/mcp/models.py +154 -0
- tradingcodex-0.1.0/apps/mcp/services.py +327 -0
- tradingcodex-0.1.0/apps/orders/__init__.py +1 -0
- tradingcodex-0.1.0/apps/orders/admin.py +6 -0
- tradingcodex-0.1.0/apps/orders/apps.py +8 -0
- tradingcodex-0.1.0/apps/orders/migrations/0001_initial.py +79 -0
- tradingcodex-0.1.0/apps/orders/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/orders/models.py +66 -0
- tradingcodex-0.1.0/apps/orders/services.py +107 -0
- tradingcodex-0.1.0/apps/policy/__init__.py +1 -0
- tradingcodex-0.1.0/apps/policy/admin.py +6 -0
- tradingcodex-0.1.0/apps/policy/apps.py +8 -0
- tradingcodex-0.1.0/apps/policy/migrations/0001_initial.py +75 -0
- tradingcodex-0.1.0/apps/policy/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/policy/models.py +61 -0
- tradingcodex-0.1.0/apps/policy/services.py +110 -0
- tradingcodex-0.1.0/apps/portfolio/__init__.py +1 -0
- tradingcodex-0.1.0/apps/portfolio/admin.py +6 -0
- tradingcodex-0.1.0/apps/portfolio/apps.py +8 -0
- tradingcodex-0.1.0/apps/portfolio/migrations/0001_initial.py +67 -0
- tradingcodex-0.1.0/apps/portfolio/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/portfolio/models.py +53 -0
- tradingcodex-0.1.0/apps/research/__init__.py +1 -0
- tradingcodex-0.1.0/apps/research/admin.py +1 -0
- tradingcodex-0.1.0/apps/research/apps.py +8 -0
- tradingcodex-0.1.0/apps/research/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/research/models.py +1 -0
- tradingcodex-0.1.0/apps/workflows/__init__.py +1 -0
- tradingcodex-0.1.0/apps/workflows/admin.py +6 -0
- tradingcodex-0.1.0/apps/workflows/apps.py +8 -0
- tradingcodex-0.1.0/apps/workflows/migrations/0001_initial.py +51 -0
- tradingcodex-0.1.0/apps/workflows/migrations/__init__.py +0 -0
- tradingcodex-0.1.0/apps/workflows/models.py +44 -0
- tradingcodex-0.1.0/assets/tradingcodex-banner.svg +18 -0
- tradingcodex-0.1.0/docs/README.md +63 -0
- tradingcodex-0.1.0/docs/components.md +72 -0
- tradingcodex-0.1.0/docs/core-concepts-and-rules.md +140 -0
- tradingcodex-0.1.0/docs/deployment.md +236 -0
- tradingcodex-0.1.0/docs/generated-workspaces.md +332 -0
- tradingcodex-0.1.0/docs/guardrails.md +91 -0
- tradingcodex-0.1.0/docs/harness.md +117 -0
- tradingcodex-0.1.0/docs/improvement-loop.md +111 -0
- tradingcodex-0.1.0/docs/interfaces-and-surfaces.md +311 -0
- tradingcodex-0.1.0/docs/licensing-and-commercialization.md +83 -0
- tradingcodex-0.1.0/docs/product-direction.md +130 -0
- tradingcodex-0.1.0/docs/research-memory-and-artifacts.md +166 -0
- tradingcodex-0.1.0/docs/roles-skills-and-workflows.md +352 -0
- tradingcodex-0.1.0/docs/safety-policy-and-execution.md +187 -0
- tradingcodex-0.1.0/docs/system-architecture.md +206 -0
- tradingcodex-0.1.0/docs/validation-and-test-plan.md +189 -0
- tradingcodex-0.1.0/install.sh +187 -0
- tradingcodex-0.1.0/installation.md +124 -0
- tradingcodex-0.1.0/pyproject.toml +58 -0
- tradingcodex-0.1.0/setup.cfg +4 -0
- tradingcodex-0.1.0/static/tradingcodex_admin/favicon.svg +7 -0
- tradingcodex-0.1.0/static/tradingcodex_web/app.css +2466 -0
- tradingcodex-0.1.0/static/vendor/alpine/alpine.min.js +5 -0
- tradingcodex-0.1.0/static/vendor/htmx/htmx.min.js +1 -0
- tradingcodex-0.1.0/tests/test_e2e_user_scenarios.py +311 -0
- tradingcodex-0.1.0/tests/test_python_migration.py +2309 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/PKG-INFO +337 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/SOURCES.txt +285 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/dependency_links.txt +1 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/entry_points.txt +2 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/requires.txt +9 -0
- tradingcodex-0.1.0/tradingcodex.egg-info/top_level.txt +4 -0
- tradingcodex-0.1.0/tradingcodex_cli/__init__.py +1 -0
- tradingcodex-0.1.0/tradingcodex_cli/__main__.py +124 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/__init__.py +2 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/bootstrap.py +157 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/db.py +36 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/doctor.py +230 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/mcp.py +186 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/orders.py +89 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/policy.py +21 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/profile.py +110 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/research.py +76 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/skills.py +93 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/strategies.py +67 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/subagents.py +106 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/utils.py +134 -0
- tradingcodex-0.1.0/tradingcodex_cli/commands/workspaces.py +53 -0
- tradingcodex-0.1.0/tradingcodex_cli/generator.py +234 -0
- tradingcodex-0.1.0/tradingcodex_cli/mcp_stdio.py +26 -0
- tradingcodex-0.1.0/tradingcodex_cli/service_autostart.py +127 -0
- tradingcodex-0.1.0/tradingcodex_service/__init__.py +5 -0
- tradingcodex-0.1.0/tradingcodex_service/admin.py +1 -0
- tradingcodex-0.1.0/tradingcodex_service/api.py +486 -0
- tradingcodex-0.1.0/tradingcodex_service/application/__init__.py +2 -0
- tradingcodex-0.1.0/tradingcodex_service/application/agents.py +1470 -0
- tradingcodex-0.1.0/tradingcodex_service/application/audit.py +71 -0
- tradingcodex-0.1.0/tradingcodex_service/application/common.py +88 -0
- tradingcodex-0.1.0/tradingcodex_service/application/components.py +299 -0
- tradingcodex-0.1.0/tradingcodex_service/application/harness.py +747 -0
- tradingcodex-0.1.0/tradingcodex_service/application/markdown_preview.py +179 -0
- tradingcodex-0.1.0/tradingcodex_service/application/orders.py +404 -0
- tradingcodex-0.1.0/tradingcodex_service/application/policy.py +150 -0
- tradingcodex-0.1.0/tradingcodex_service/application/portfolio.py +166 -0
- tradingcodex-0.1.0/tradingcodex_service/application/research.py +356 -0
- tradingcodex-0.1.0/tradingcodex_service/application/runtime.py +321 -0
- tradingcodex-0.1.0/tradingcodex_service/asgi.py +6 -0
- tradingcodex-0.1.0/tradingcodex_service/mcp_http.py +59 -0
- tradingcodex-0.1.0/tradingcodex_service/mcp_runtime.py +565 -0
- tradingcodex-0.1.0/tradingcodex_service/settings.py +91 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/activity.html +24 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/agent_skills.html +111 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/agents.html +121 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/base.html +150 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/dashboard.html +109 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/fragments/role_inspector.html +81 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/fragments/starter_prompt.html +24 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/fragments/topology_canvas.html +85 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/harness.html +87 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/mcp_router.html +250 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/orders.html +68 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/policy.html +81 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/portfolio.html +52 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/research.html +73 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/starter_prompt.html +40 -0
- tradingcodex-0.1.0/tradingcodex_service/templates/web/strategies.html +74 -0
- tradingcodex-0.1.0/tradingcodex_service/urls.py +42 -0
- tradingcodex-0.1.0/tradingcodex_service/version.py +1 -0
- tradingcodex-0.1.0/tradingcodex_service/web.py +885 -0
- tradingcodex-0.1.0/tradingcodex_service/wsgi.py +6 -0
- tradingcodex-0.1.0/workspace_templates/__init__.py +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/audit/files/.tradingcodex/audit/README.md +5 -0
- tradingcodex-0.1.0/workspace_templates/modules/audit/files/trading/audit/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/audit/module.json +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.codex/config.toml +272 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +173 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.codex/hooks.json +105 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +129 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +50 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/capabilities.yaml +56 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +53 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/policies/policy-bindings.yaml +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/policies/principals.yaml +17 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/.tradingcodex/policies/roles.yaml +27 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/AGENTS.md +56 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/pyproject.toml +13 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/files/tcx +35 -0
- tradingcodex-0.1.0/workspace_templates/modules/codex-base/module.json +17 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/access-policies.yaml +39 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +14 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +11 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/evidence_pack.schema.json +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +12 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/fundamental_report.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/news_report.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_intent.schema.json +30 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/portfolio_review.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +14 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/risk_report.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/technical_report.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/thesis.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/valuation.schema.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/scripts/validate-order-intent.py +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/enforcement-guardrails/module.json +19 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/execution-operator.toml +71 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +62 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/instrument-analyst.toml +64 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/macro-analyst.toml +64 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +63 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +62 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +65 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +63 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +59 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/head-manager.yaml +66 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/skill-change-proposals/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/subagent-registry.yaml +56 -0
- tradingcodex-0.1.0/workspace_templates/modules/fixed-subagents/module.json +23 -0
- tradingcodex-0.1.0/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/guardrails.md +17 -0
- tradingcodex-0.1.0/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/task-quality-checklist.md +37 -0
- tradingcodex-0.1.0/workspace_templates/modules/guidance-guardrails/module.json +18 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/.tradingcodex/policies/information-barriers.yaml +211 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +9 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/approvals/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/market-data/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/orders/approved/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/orders/draft/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/orders/executed/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/orders/rejected/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/portfolio/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/fundamental/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/instrument/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/macro/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/news/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/policy/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/portfolio/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/postmortem/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/risk/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/technical/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/reports/valuation/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/files/trading/research/.gitkeep +1 -0
- tradingcodex-0.1.0/workspace_templates/modules/information-barriers/module.json +19 -0
- tradingcodex-0.1.0/workspace_templates/modules/paper-trading/files/.tradingcodex/mcp/adapters/paper-trading.py +4 -0
- tradingcodex-0.1.0/workspace_templates/modules/paper-trading/module.json +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/postmortem/files/.tradingcodex/workflows/postmortem.yaml +12 -0
- tradingcodex-0.1.0/workspace_templates/modules/postmortem/module.json +16 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/investment-workflow-map/SKILL.md +106 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/investment-workflow-map/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/manage-optional-skills/SKILL.md +101 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/manage-optional-skills/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/manage-subagents/SKILL.md +140 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/manage-subagents/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/orchestrate-workflow/SKILL.md +140 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/orchestrate-workflow/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/SKILL.md +31 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/scenario-quality-gates/SKILL.md +138 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/scenario-quality-gates/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/SKILL.md +109 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/synthesize-decision/SKILL.md +54 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.agents/skills/synthesize-decision/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/SKILL.md +35 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/SKILL.md +46 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/SKILL.md +40 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/SKILL.md +40 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/SKILL.md +43 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-intent/SKILL.md +46 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-intent/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/SKILL.md +44 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/SKILL.md +38 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/SKILL.md +43 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/SKILL.md +45 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/SKILL.md +46 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/SKILL.md +66 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/SKILL.md +43 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/SKILL.md +47 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/agents/openai.yaml +6 -0
- tradingcodex-0.1.0/workspace_templates/modules/repo-skills/module.json +37 -0
- tradingcodex-0.1.0/workspace_templates/modules/stub-execution/files/.tradingcodex/mcp/adapters/stub-execution.py +4 -0
- tradingcodex-0.1.0/workspace_templates/modules/stub-execution/module.json +15 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/adapters/live-adapter.contract.md +25 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/enforcer/README.md +5 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +8 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +27 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/smoke-call.py +18 -0
- tradingcodex-0.1.0/workspace_templates/modules/tradingcodex-mcp/module.json +24 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Contributing to TradingCodex
|
|
2
|
+
|
|
3
|
+
TradingCodex is an Apache-2.0 open-core project. The core repository is meant
|
|
4
|
+
to be easy to study, fork, extend, and use commercially, while official
|
|
5
|
+
commercial offerings, hosted services, verified adapters, enterprise packs,
|
|
6
|
+
and TradingCodex marks may be governed by separate terms.
|
|
7
|
+
|
|
8
|
+
## License of Contributions
|
|
9
|
+
|
|
10
|
+
Unless explicitly agreed otherwise in writing, every contribution intentionally
|
|
11
|
+
submitted for inclusion in this repository is submitted under the Apache
|
|
12
|
+
License, Version 2.0.
|
|
13
|
+
|
|
14
|
+
TradingCodex uses an inbound-equals-outbound contribution model: by
|
|
15
|
+
contributing, you agree that your contribution can be distributed under the
|
|
16
|
+
same Apache-2.0 license used by the project.
|
|
17
|
+
|
|
18
|
+
## Developer Certificate of Origin
|
|
19
|
+
|
|
20
|
+
Contributors must certify that they have the right to submit their work by
|
|
21
|
+
using the Developer Certificate of Origin 1.1 (DCO):
|
|
22
|
+
|
|
23
|
+
https://developercertificate.org/
|
|
24
|
+
|
|
25
|
+
Add a sign-off line to every commit:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Signed-off-by: Your Name <you@example.com>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Git can add it automatically:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
git commit -s
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Product and Safety Rules
|
|
38
|
+
|
|
39
|
+
Before changing product rules, generated workspace behavior, subagent roles,
|
|
40
|
+
guardrails, MCP tools, policy behavior, Admin operations, or execution flows,
|
|
41
|
+
read the docs in `docs/` and update the relevant docs in the same change.
|
|
42
|
+
|
|
43
|
+
Important boundaries:
|
|
44
|
+
|
|
45
|
+
- Live broker adapters are not part of the open core unless explicitly added
|
|
46
|
+
by a future product decision.
|
|
47
|
+
- Do not commit broker API keys, credentials, tokens, private account data, or
|
|
48
|
+
other secrets.
|
|
49
|
+
- Executable trading actions must continue to flow through TradingCodex
|
|
50
|
+
service-layer policy, approval, adapter, and audit checks.
|
|
51
|
+
- Public equity is the deepest first investing sleeve, but changes should
|
|
52
|
+
preserve the broader multi-asset direction.
|
|
53
|
+
|
|
54
|
+
## Trademarks and Commercial Use
|
|
55
|
+
|
|
56
|
+
The Apache-2.0 license grants copyright and patent permissions for the code.
|
|
57
|
+
It does not grant rights to use TradingCodex names, logos, or official product
|
|
58
|
+
branding. See `TRADEMARKS.md`.
|
|
59
|
+
|
|
60
|
+
Forks and integrations are welcome, but they should avoid implying that they
|
|
61
|
+
are official TradingCodex distributions, hosted services, or verified adapters
|
|
62
|
+
unless the project maintainer has granted written permission.
|
|
@@ -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,13 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include NOTICE
|
|
3
|
+
include CONTRIBUTING.md
|
|
4
|
+
include TRADEMARKS.md
|
|
5
|
+
include installation.md
|
|
6
|
+
include install.sh
|
|
7
|
+
recursive-include assets *
|
|
8
|
+
recursive-include docs *
|
|
9
|
+
recursive-include workspace_templates *
|
|
10
|
+
recursive-include workspace_templates .*
|
|
11
|
+
recursive-include tradingcodex_service/templates *
|
|
12
|
+
recursive-include static *
|
|
13
|
+
global-exclude *.py[cod]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
TradingCodex
|
|
2
|
+
Copyright 2026 TradingCodex Authors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the TradingCodex project.
|
|
5
|
+
|
|
6
|
+
Unless a file, directory, or separately distributed artifact states otherwise,
|
|
7
|
+
the source code, generated workspace templates, and project documentation in
|
|
8
|
+
this repository are licensed under the Apache License, Version 2.0.
|
|
9
|
+
|
|
10
|
+
The name "TradingCodex", future TradingCodex logos, and other TradingCodex
|
|
11
|
+
project marks are trademarks or service marks of their respective owners.
|
|
12
|
+
The Apache License, Version 2.0 does not grant trademark rights. See
|
|
13
|
+
TRADEMARKS.md for project trademark guidance.
|
|
14
|
+
|
|
15
|
+
Generated workspaces are scaffolds copied from this repository. The copied
|
|
16
|
+
TradingCodex scaffold files remain under the repository license unless marked
|
|
17
|
+
otherwise. User-created research notes, portfolio data, order artifacts,
|
|
18
|
+
configuration secrets, and other user-provided content remain owned by the
|
|
19
|
+
user unless the user separately chooses to license them.
|
|
20
|
+
|
|
21
|
+
Hosted services, managed deployments, verified broker or market-data adapters,
|
|
22
|
+
enterprise policy packs, compliance packs, support agreements, and other
|
|
23
|
+
official commercial offerings may be distributed under separate commercial
|
|
24
|
+
terms.
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tradingcodex
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Codex-native trading harness with a Django service plane and MCP execution boundary.
|
|
5
|
+
Author: TradingCodex Authors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Keywords: trading,django,codex,mcp,portfolio,research
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Framework :: Django
|
|
10
|
+
Classifier: Framework :: Django :: 5.2
|
|
11
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
15
|
+
Requires-Python: <3.15,>=3.14
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
License-File: NOTICE
|
|
19
|
+
Requires-Dist: django<5.3,>=5.2
|
|
20
|
+
Requires-Dist: django-ninja<2,>=1.4
|
|
21
|
+
Requires-Dist: markdown-it-py<5,>=3
|
|
22
|
+
Requires-Dist: nh3<0.4,>=0.3
|
|
23
|
+
Requires-Dist: pydantic>=2
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
26
|
+
Requires-Dist: PyYAML>=6; extra == "dev"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="assets/tradingcodex-banner.svg" alt="TradingCodex" width="100%">
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
<div align="center">
|
|
34
|
+
<a href="https://github.com/monarchjuno/tradingcodex/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/monarchjuno/tradingcodex/ci.yml?branch=main&label=CI"></a>
|
|
35
|
+
<a href="https://github.com/monarchjuno/tradingcodex/releases"><img alt="Release" src="https://img.shields.io/github/v/release/monarchjuno/tradingcodex?include_prereleases&label=release"></a>
|
|
36
|
+
<a href="https://pypi.org/project/tradingcodex/"><img alt="PyPI" src="https://img.shields.io/pypi/v/tradingcodex?label=PyPI"></a>
|
|
37
|
+
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue"></a>
|
|
38
|
+
<img alt="Python" src="https://img.shields.io/badge/python-3.14-3776AB?logo=python&logoColor=white">
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div align="center">
|
|
42
|
+
<a href="#quick-start">Quick Start</a> |
|
|
43
|
+
<a href="#what-tradingcodex-does">Features</a> |
|
|
44
|
+
<a href="#local-web-dashboard">Web Dashboard</a> |
|
|
45
|
+
<a href="#how-a-workflow-moves">Workflow</a> |
|
|
46
|
+
<a href="#role-roster">Roles</a> |
|
|
47
|
+
<a href="#architecture">Architecture</a> |
|
|
48
|
+
<a href="#safety-boundary">Safety</a> |
|
|
49
|
+
<a href="#documentation">Documentation</a>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
# TradingCodex: Codex-Native Trading Harness
|
|
55
|
+
|
|
56
|
+
TradingCodex is a local-first trading harness for doing investment work with
|
|
57
|
+
Codex. It gives Codex a durable operating system: role-separated agents,
|
|
58
|
+
file-native research memory, a Django service plane, a central local ledger,
|
|
59
|
+
and an MCP execution boundary that turns risky actions into explicit,
|
|
60
|
+
auditable service-layer decisions.
|
|
61
|
+
|
|
62
|
+
It is not an autonomous trading bot. Codex coordinates and explains the work;
|
|
63
|
+
Django owns durable state and policy; TradingCodex MCP is the only executable
|
|
64
|
+
agent boundary; live broker adapters are not shipped in the initial core.
|
|
65
|
+
|
|
66
|
+
## Product Concept
|
|
67
|
+
|
|
68
|
+
TradingCodex exists because serious Codex-assisted investment work should not
|
|
69
|
+
live only in a chat transcript. Research, source freshness, role handoffs,
|
|
70
|
+
portfolio context, approvals, policy decisions, execution attempts, and audit
|
|
71
|
+
records need a system of record that remains inspectable after the thread ends.
|
|
72
|
+
|
|
73
|
+
The product model is a harness:
|
|
74
|
+
|
|
75
|
+
| Plane | What it gives you |
|
|
76
|
+
| --- | --- |
|
|
77
|
+
| Codex control plane | A generated Codex workspace with one `head-manager`, nine specialist subagents, role prompts, repo skills, hooks, and project-scoped MCP config. |
|
|
78
|
+
| Workspace file plane | Human-readable research markdown, source snapshots, strategy skills, policy exports, and generated `./tcx` wrappers inside the user's Codex workspace. |
|
|
79
|
+
| Django service plane | Local durable services for policy, orders, approvals, portfolio state, audit, workflows, MCP registry, external router review, API, Admin, and product web. |
|
|
80
|
+
| MCP execution boundary | Typed tools, role allowlists, policy checks, approval checks, idempotency, adapter submission, and ledgered results for executable actions. |
|
|
81
|
+
|
|
82
|
+
Generated workspaces are Codex workbenches, not brokerage accounts. Canonical
|
|
83
|
+
execution-sensitive state lives in the central local runtime DB:
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
~/.tradingcodex/state/tradingcodex.sqlite3
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## What TradingCodex Does
|
|
90
|
+
|
|
91
|
+
TradingCodex `0.1.0` provides:
|
|
92
|
+
|
|
93
|
+
- A generated Codex workspace with fixed role topology, project-scoped MCP,
|
|
94
|
+
local wrappers, workspace manifest, generated policy/config files, and
|
|
95
|
+
`./tcx doctor` validation.
|
|
96
|
+
- An explicit workspace update path that refreshes generated files, applies
|
|
97
|
+
central DB migrations, preserves workspace identity/profile state, and
|
|
98
|
+
re-runs doctor checks.
|
|
99
|
+
- A role workflow model where `head-manager` dispatches work and specialists
|
|
100
|
+
return bounded artifacts instead of every agent redoing every part of the
|
|
101
|
+
investment question.
|
|
102
|
+
- File-native research memory: markdown artifacts, source snapshots, versioned
|
|
103
|
+
handoffs, export/search flows, and source/as-of posture that agents and
|
|
104
|
+
humans can both read.
|
|
105
|
+
- Strategy and skill management through workspace files, including
|
|
106
|
+
`strategy-*` skills and role-local optional skills without weakening core
|
|
107
|
+
role boundaries.
|
|
108
|
+
- Policy, restricted-symbol, approval, order, execution, portfolio, MCP, and
|
|
109
|
+
audit services behind a shared Django application layer.
|
|
110
|
+
- Experimental paper/stub order lifecycle support: validate intent, create
|
|
111
|
+
approval receipt, submit approved order, cancel approved order, and record
|
|
112
|
+
outcomes.
|
|
113
|
+
- A local product web surface for browsing agents, skills, research markdown,
|
|
114
|
+
external MCP router metadata, starter prompts, and operational state.
|
|
115
|
+
- Django Admin, Django Ninja API, CLI, and MCP surfaces that call the same
|
|
116
|
+
service-layer logic instead of creating parallel execution paths.
|
|
117
|
+
- A managed external MCP router gate that imports discovery metadata,
|
|
118
|
+
classifies tool risk, scopes role access, and blocks unsafe direct proxy
|
|
119
|
+
paths by default.
|
|
120
|
+
|
|
121
|
+
## Quick Start
|
|
122
|
+
|
|
123
|
+
Choose an empty target directory for the generated Codex workspace. Source
|
|
124
|
+
checkouts of this repository are for TradingCodex development; generated
|
|
125
|
+
TradingCodex workspaces are separate Codex projects.
|
|
126
|
+
|
|
127
|
+
Agents and install helpers do not invent a default workspace path. If the
|
|
128
|
+
target path is not supplied, ask the user before creating or attaching a
|
|
129
|
+
workspace.
|
|
130
|
+
|
|
131
|
+
Install TradingCodex and attach it to a user-selected workspace:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
mkdir -p /path/to/target-workspace
|
|
135
|
+
cd /path/to/target-workspace
|
|
136
|
+
curl -fsSL https://raw.githubusercontent.com/monarchjuno/tradingcodex/main/install.sh | sh -s -- .
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Run the smoke check:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
./tcx doctor
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
After installation, fully quit and restart Codex, then open the generated
|
|
146
|
+
workspace and start from a new thread so project MCP config is reloaded. When
|
|
147
|
+
TradingCodex MCP autostarts the local service, the dashboard is available at:
|
|
148
|
+
|
|
149
|
+
```text
|
|
150
|
+
http://127.0.0.1:48267/
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Start an orchestrated Codex workflow from the generated workspace:
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
$orchestrate-workflow analyze Apple with public equity research, valuation, portfolio, and risk review
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
For repeated workspace creation, install the CLI as a user-level tool:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
uv python install 3.14
|
|
163
|
+
uv tool install --python 3.14 tradingcodex
|
|
164
|
+
uv tool update-shell
|
|
165
|
+
cd /path/to/target-workspace
|
|
166
|
+
tcx attach .
|
|
167
|
+
./tcx doctor
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
See [installation.md](https://github.com/monarchjuno/tradingcodex/blob/main/installation.md)
|
|
171
|
+
for GitHub-main installs, direct `uvx`, MCP/service details, and additional
|
|
172
|
+
smoke checks.
|
|
173
|
+
|
|
174
|
+
Update an existing generated workspace after a package release:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
cd /path/to/target-workspace
|
|
178
|
+
curl -fsSL https://raw.githubusercontent.com/monarchjuno/tradingcodex/main/install.sh | sh -s -- --update .
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Local Web Dashboard
|
|
182
|
+
|
|
183
|
+
TradingCodex includes a local Django web surface so users do not have to inspect
|
|
184
|
+
everything through chat or CLI output. When Codex trusts a generated workspace,
|
|
185
|
+
project MCP startup also starts the local service and exposes the dashboard at:
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
http://127.0.0.1:48267/
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
The dashboard is a review and control surface for the agent roster, required
|
|
192
|
+
and optional skills, strategy skills, research markdown, external MCP router
|
|
193
|
+
metadata, starter prompts, policy/order/portfolio/activity status, and local
|
|
194
|
+
workspace state. It does not spawn Codex agents, approve orders, submit
|
|
195
|
+
executions, or provide investment recommendations.
|
|
196
|
+
|
|
197
|
+
For CLI-only sessions, start it manually:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
./tcx service runserver
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Django Admin is available separately at `http://127.0.0.1:48267/admin/` for
|
|
204
|
+
local/staff DB inspection.
|
|
205
|
+
|
|
206
|
+
## How A Workflow Moves
|
|
207
|
+
|
|
208
|
+
TradingCodex is designed around handoffs rather than one giant answer:
|
|
209
|
+
|
|
210
|
+
1. The user asks Codex for an investment workflow.
|
|
211
|
+
2. `head-manager` classifies the request, maps the investment universe and
|
|
212
|
+
workflow lane, and dispatches bounded work to specialist roles.
|
|
213
|
+
3. Analysts create evidence-backed artifacts with source/as-of posture.
|
|
214
|
+
4. Downstream roles consume accepted upstream artifacts instead of silently
|
|
215
|
+
filling missing work outside their role.
|
|
216
|
+
5. Portfolio and risk roles review fit, sizing, limits, restricted symbols,
|
|
217
|
+
and approval readiness.
|
|
218
|
+
6. If an executable paper/stub action is requested, `risk-manager` creates the
|
|
219
|
+
approval receipt and `execution-operator` submits only through TradingCodex
|
|
220
|
+
MCP.
|
|
221
|
+
7. Policy decisions, MCP calls, approvals, execution results, and audit events
|
|
222
|
+
remain inspectable through local service surfaces.
|
|
223
|
+
|
|
224
|
+
## Role Roster
|
|
225
|
+
|
|
226
|
+
| Layer | Agent | Role summary |
|
|
227
|
+
| --- | --- | --- |
|
|
228
|
+
| Main agent | `head-manager` | Dispatches specialist roles, preserves constraints, and synthesizes completed artifacts. |
|
|
229
|
+
| Analysis subagent | `fundamental-analyst` | Reviews business quality, financial evidence, company fundamentals, and source claims. |
|
|
230
|
+
| Analysis subagent | `technical-analyst` | Reviews price action, trend structure, levels, and market behavior. |
|
|
231
|
+
| Analysis subagent | `news-analyst` | Tracks news, catalysts, events, and freshness-sensitive context. |
|
|
232
|
+
| Market-context subagent | `macro-analyst` | Covers macro, rates, FX, commodities, policy, and cross-asset context. |
|
|
233
|
+
| Market-context subagent | `instrument-analyst` | Supports ETF/index, options, crypto market structure, and instrument-level work. |
|
|
234
|
+
| Decision-review subagent | `valuation-analyst` | Reviews valuation assumptions, sensitivity, and decision-quality gaps. |
|
|
235
|
+
| Portfolio subagent | `portfolio-manager` | Reviews portfolio fit, sizing, exposure, and draft order readiness. |
|
|
236
|
+
| Risk subagent | `risk-manager` | Reviews downside, policy constraints, restricted lists, and approval readiness. |
|
|
237
|
+
| Execution subagent | `execution-operator` | Handles approved paper/stub execution through TradingCodex MCP only. |
|
|
238
|
+
|
|
239
|
+
The default generated workspace includes this one-plus-nine roster. The main
|
|
240
|
+
agent coordinates and synthesizes; specialist agents own the actual role work.
|
|
241
|
+
|
|
242
|
+
## Architecture
|
|
243
|
+
|
|
244
|
+
TradingCodex is a Python/Django modular monolith packaged as a local-first
|
|
245
|
+
tool. The important implementation rule is that every interface calls shared
|
|
246
|
+
application services:
|
|
247
|
+
|
|
248
|
+
| Surface | Role |
|
|
249
|
+
| --- | --- |
|
|
250
|
+
| Product web | Agents-first review dashboard for roles, skills, research markdown, external MCP router review, starter prompts, and local status. |
|
|
251
|
+
| Django Admin | Local/staff DB inspection for policy, orders, portfolio, MCP registry, workflows, integrations, and audit rows. |
|
|
252
|
+
| Django Ninja API | Typed local/staff REST and control endpoints. |
|
|
253
|
+
| MCP | Agent/tool boundary with typed tools, role scopes, policy checks, and audit. |
|
|
254
|
+
| CLI | Local operator commands and generated workspace wrapper behavior. |
|
|
255
|
+
|
|
256
|
+
Canonical implementation lives in:
|
|
257
|
+
|
|
258
|
+
```txt
|
|
259
|
+
tradingcodex_service/application/
|
|
260
|
+
tradingcodex_cli/commands/
|
|
261
|
+
apps/
|
|
262
|
+
workspace_templates/modules/
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
The baseline frontend uses Django templates, local static HTMX, and local
|
|
266
|
+
static Alpine. There is no Node, bundler, React, or frontend build step in the
|
|
267
|
+
core package.
|
|
268
|
+
|
|
269
|
+
## Safety Boundary
|
|
270
|
+
|
|
271
|
+
TradingCodex treats executable actions as a deterministic service-layer
|
|
272
|
+
lifecycle:
|
|
273
|
+
|
|
274
|
+
```text
|
|
275
|
+
principal -> capability -> policy -> schema -> approval/idempotency -> adapter -> audit
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Important boundaries:
|
|
279
|
+
|
|
280
|
+
- Product web routes do not spawn agents, generate investment analysis, create
|
|
281
|
+
approvals, or submit executions.
|
|
282
|
+
- REST/Admin/CLI/MCP call shared Django service functions.
|
|
283
|
+
- Role MCP allowlists are narrow: `head-manager` cannot submit orders,
|
|
284
|
+
`risk-manager` owns approvals, and `execution-operator` owns execution calls.
|
|
285
|
+
- Paper/stub execution remains experimental.
|
|
286
|
+
- Live broker adapters are not shipped in the initial core.
|
|
287
|
+
- Raw broker secrets must not be stored in this repository or generated
|
|
288
|
+
workspaces.
|
|
289
|
+
|
|
290
|
+
TradingCodex is research, workflow, and execution-guardrail tooling. It is not
|
|
291
|
+
financial, investment, legal, tax, or regulatory advice, and it does not provide
|
|
292
|
+
investment recommendations or guarantee returns.
|
|
293
|
+
|
|
294
|
+
## Supported Workflow Scope
|
|
295
|
+
|
|
296
|
+
Public equity is the first deeply specified sleeve. The harness keeps explicit
|
|
297
|
+
paths for ETF/index, public crypto market, macro/rates/FX/commodities, options,
|
|
298
|
+
credit-signal, and cross-asset workflows when the required data source, role
|
|
299
|
+
workflow, and policy boundary exist.
|
|
300
|
+
|
|
301
|
+
Unsupported or weakly sourced workflows should receive conservative readiness
|
|
302
|
+
labels such as `research-only`, `screen-grade`, `not-decision-ready`, or
|
|
303
|
+
`blocked`.
|
|
304
|
+
|
|
305
|
+
## Release Status
|
|
306
|
+
|
|
307
|
+
`0.1.0` is the first stable public contract for the generated workspace, Python
|
|
308
|
+
CLI, Django service plane, product web, MCP boundary, and documentation set.
|
|
309
|
+
The package still uses an alpha development classifier because live broker
|
|
310
|
+
adapters and hosted service modes are intentionally outside the initial core.
|
|
311
|
+
|
|
312
|
+
## Documentation
|
|
313
|
+
|
|
314
|
+
- [Installation](installation.md)
|
|
315
|
+
- [Docs index](docs/README.md)
|
|
316
|
+
- [Product direction](docs/product-direction.md)
|
|
317
|
+
- [Core concepts and rules](docs/core-concepts-and-rules.md)
|
|
318
|
+
- [Harness model](docs/harness.md)
|
|
319
|
+
- [Roles, skills, and workflows](docs/roles-skills-and-workflows.md)
|
|
320
|
+
- [Safety policy and execution](docs/safety-policy-and-execution.md)
|
|
321
|
+
- [Interfaces and surfaces](docs/interfaces-and-surfaces.md)
|
|
322
|
+
- [Deployment](docs/deployment.md)
|
|
323
|
+
|
|
324
|
+
## Contributing
|
|
325
|
+
|
|
326
|
+
Contributions use Apache-2.0 with DCO sign-off. See
|
|
327
|
+
[CONTRIBUTING.md](CONTRIBUTING.md).
|
|
328
|
+
|
|
329
|
+
## License
|
|
330
|
+
|
|
331
|
+
TradingCodex is an Apache-2.0 open-core project.
|
|
332
|
+
|
|
333
|
+
Source code, generated workspace templates, and project documentation are
|
|
334
|
+
licensed under the Apache License, Version 2.0 unless marked otherwise. The
|
|
335
|
+
TradingCodex name, future logos, and official product marks are not granted by
|
|
336
|
+
the code license. See [LICENSE](LICENSE), [NOTICE](NOTICE), and
|
|
337
|
+
[TRADEMARKS.md](TRADEMARKS.md).
|