How kinggio0326/creativityland-local works
This repository implements a local market-research and trading system. One workflow gathers and ranks news, derives sentiment and embeddings, evaluates market regime and trading state, then produces weighted signals for bridging and persistence. A separate paper-trading workflow evaluates trade intents through debate, risk and portfolio checks, research scoring, and paper-broker execution. Position management, semantic memory, and the dashboard provide supporting capabilities. The graph reflects the documented pipeline sequences and indexed module references; where wiring is not explicit in the available excerpts, relationships are omitted rather than inferred.
Main entry points: paper_pipeline.py Paper orchestrator · pipeline.py Signal pipeline · service.py Semantic memory · embedding_runner.py Article embeddings
Components 24
Signal research
- Signal pipeline
local_runtime/signal_local/pipeline.py - News scraping
local_runtime/signal_local/scraper_runner.py - Text extraction
local_runtime/signal_local/full_text_extractor.py - Sentiment analysis
local_runtime/signal_local/sentiment_runner.py - Article embeddings
local_runtime/signal_local/embedding_runner.py - Market regime
local_runtime/signal_local/regime_runner.py - Weighted signals
local_runtime/signal_local/weighted_signal_runner.py
Trade decisions
- Paper orchestrator
local_runtime/orchestration/paper_pipeline.py - Trade debate
local_runtime/debate/debate_coordinator.py - Alpha analysis
local_runtime/alpha_engine/alpha_score.py - Alpha adapter
local_runtime/alpha_engine/pipeline_adapter.py - Research scoring
local_runtime/research_manager/research_manager.py
Risk and execution
- Portfolio gate
local_runtime/portfolio/portfolio_manager_gate.py - FTMO risk review
local_runtime/ftmo_debate/ftmo_risk_reviewer.py - Macro risk review
local_runtime/macro_risk/reviewer.py - Paper broker
local_runtime/brokers/paper_local.py - Position manager
local_runtime/position_management/trade_manager_loop.py - SL/TP updates
local_runtime/position_management/sltp_modification_engine.py
Research memory
- Semantic memory
local_runtime/semantic_memory/service.py - Vector index
local_runtime/semantic_memory/flat_index.py - Embedding store
local_runtime/db/repositories/signal_embeddings.py
User interfaces
- Local dashboard
local_runtime/live_dashboard/server.py - Web dashboard
dashboard/src/app/page.tsx
Other components
- Operator
Connections 23
- Signal pipeline → News scraping: runs scraping
local_runtime/signal_local/pipeline.py - Signal pipeline → Text extraction: extracts text
local_runtime/signal_local/pipeline.py - Signal pipeline → Sentiment analysis: runs sentiment
local_runtime/signal_local/pipeline.py - Signal pipeline → Article embeddings: creates embeddings
local_runtime/signal_local/pipeline.py - Signal pipeline → Market regime: evaluates regime
local_runtime/signal_local/pipeline.py - Signal pipeline → Weighted signals: weights signals
local_runtime/signal_local/pipeline.py - Article embeddings → Embedding store: persists vectors
local_runtime/signal_local/embedding_runner.py - Semantic memory → Vector index: searches index
local_runtime/semantic_memory/service.py - Semantic memory → Embedding store: queries vectors
local_runtime/semantic_memory/service.py - Semantic memory → Article embeddings: generates vectors
local_runtime/semantic_memory/service.py - Operator → Paper orchestrator: submits intent
- Paper orchestrator → Trade debate: runs debate
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → FTMO risk review: reviews FTMO risk
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Macro risk review: reviews macro risk
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Portfolio gate: checks portfolio
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Research scoring: scores research
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Alpha analysis: computes alpha
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Alpha adapter: adapts alpha
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Semantic memory: retrieves reflections
local_runtime/orchestration/paper_pipeline.py - Paper orchestrator → Paper broker: sends order request
local_runtime/orchestration/paper_pipeline.py - Position manager → SL/TP updates: manages stops
- Operator → Local dashboard: views status
- Operator → Web dashboard: uses dashboard