How tradinggoose/tradinggoose.github.io works
TradingGoose Studio is an AI-assisted trading platform. Users enter through the web app to run stock analyses or manage portfolios; background edge functions coordinate specialist agents, validate portfolio decisions, and can execute trades through Alpaca. The product also supports scheduled rebalancing, workflow monitoring, historical records, and role-based administration. Frontend and shared-service links are supported by sampled imports; analysis stages and trading capabilities are documented in the README. Unshown implementation details are represented at their existing directory paths.
Main entry points: supabase.ts Supabase data · analysis-coordinator/index.ts Analysis coordinator · execute-trade/index.ts Trade execution · App.tsx App routes
Components 22
Web application
- App routes
src/App.tsx - Analysis workflow UI
src/components/workflow/index.tsx - Rebalance UI
src/components/rebalance/RebalanceModal.tsx - Schedule UI
src/components/schedule-rebalance/ScheduleRebalanceModal.tsx - History views
src/components/UnifiedAnalysisHistory.tsx
AI analysis
- Analysis coordinator
supabase/functions/analysis-coordinator/index.ts - Analysis agents
supabase/functions/agent-market-analyst/index.ts - Opportunity synthesis
supabase/functions/opportunity-agent/index.ts
Portfolio trading
- Analysis portfolio manager
supabase/functions/analysis-portfolio-manager/index.ts - Rebalance coordinator
supabase/functions/rebalance-coordinator/index.ts - Rebalance portfolio manager
supabase/functions/rebalance-portfolio-manager/index.ts - Scheduled rebalance runner
supabase/functions/process-scheduled-rebalances/index.ts - Trade execution
supabase/functions/execute-trade/index.ts
Identity and data
- Authentication
src/lib/auth.ts - Access control
src/contexts/RBACContext.tsx - Supabase data
src/lib/supabase.ts
Monitoring and administration
- Workflow status
src/components/workflow/hooks/useWorkflowData.ts - Settings and credentials
supabase/functions/settings-proxy/index.ts - Admin and roles
src/pages/admin-role-manager/index.tsx
Other components
- User
- Alpaca Markets
- AI providers
Connections 29
- User → App routes: opens
src/App.tsx - App routes → Authentication: provides auth
src/App.tsx - App routes → Access control: provides access
src/App.tsx - User → Analysis workflow UI: starts analysis
README.md - Analysis workflow UI → Analysis coordinator: invokes workflow
README.md - Analysis coordinator → Analysis agents: dispatches agents
README.md - Analysis agents → Opportunity synthesis: synthesizes findings
README.md - Opportunity synthesis → Analysis portfolio manager: evaluates portfolio
README.md - Analysis coordinator → Supabase data: updates workflow
README.md - Analysis coordinator → AI providers: requests inference
README.md - User → Rebalance UI: configures rebalance
README.md - Rebalance UI → Rebalance coordinator: starts rebalance
README.md - Rebalance coordinator → Rebalance portfolio manager: dispatches planning
README.md - User → Schedule UI: sets schedule
README.md - Schedule UI → Supabase data: reads schedule data
- Scheduled rebalance runner → Rebalance coordinator: processes schedules
- Analysis portfolio manager → Trade execution: prepares orders
README.md - Rebalance portfolio manager → Trade execution: prepares orders
README.md - Trade execution → Alpaca Markets: executes orders
README.md - User → History views: views history
README.md - History views → Supabase data: loads analysis data
README.md - Analysis workflow UI → Workflow status: shows progress
README.md - Workflow status → Supabase data: reads status
- User → Settings and credentials: manages settings
README.md - Settings and credentials → Supabase data: stores configuration
README.md - Admin and roles → Access control: manages roles
README.md - Authentication → Supabase data: uses authentication
src/lib/auth.ts - Access control → Supabase data: loads permissions
src/contexts/RBACContext.tsx - Analysis coordinator → Trade execution: may trigger trading