graph TD
A[WorkflowOrchestrator Start] --> B[Initialize Configuration]
B --> C[Create Main Function Structure]
C --> D[Daily Schedule Loop]
D --> E[Load User Parameters]
E --> F[DataFetcher Integration]
F --> F1[Fetch from gmgn.ai]
F1 --> F2[Apply Filters]
F2 --> F3[Store filtered-token-list]
F3 --> G[DueDiligence Integration]
G --> G1[Check Contracts - Rugcheckxyz]
G1 --> G2[Analyze Holders - bubblemaps]
G2 --> G3[Social Check - TweetScout]
G3 --> G4[Store due-diligence-report]
G4 --> H[Sniper Integration]
H --> H1[Check Capital Limits]
H1 --> H2[Process Buy Orders]
H2 --> H3[Log Transactions]
H3 --> I[Memecoin Discovery]
I --> I1[Scan PumpFun/gmgn]
I1 --> I2[Analyze New Tokens]
I2 --> I3[Store memecoin-list]
I3 --> J[Error Handling]
J --> K[Generate Daily Report]
K --> L[Update Logs]
L --> M{Continue Running?}
M -->|Yes| D
M -->|No| N[Graceful Shutdown]
subgraph Error Handling
O[API Retry Logic]
P[Network Error Recovery]
Q[Kill Switch Monitor]
end
subgraph Risk Management
R[Stop Loss Check]
S[Take Profit Monitor]
T[Capital Allocation]
end
subgraph Monitoring
U[Performance Metrics]
V[Alert System]
W[Health Checks]
end