How alsk1992/cloddsbot works
Clodds is an AI-powered trading terminal for prediction markets, crypto and futures, operated through messaging channels or its WebChat. The principal workflow is a user request entering the gateway, being handled by the agent and its skills, then using market data and opportunity analysis to inform risk checks and execution; portfolio services track resulting positions. The README also describes broad exchange coverage, automation, token security, and Bittensor mining. Connections reflect README statements and available source references; unsampled implementation details are not asserted.
Main entry points: agents/index.ts AI agents · gateway/index.ts HTTP gateway · execution/index.ts Trade execution · channels/index.ts Messaging channels
Components 18
User interaction
- Messaging channels
src/channels/index.ts - WebChat
public/webchat/js/app.js
Agent and analysis
- AI agents
src/agents/index.ts - Skills system
src/skills/executor.ts - Market feeds
src/feeds/index.ts - Opportunity analysis
src/opportunity/index.ts
Trading services
- Risk engine
src/risk/engine.ts - Trade execution
src/execution/index.ts - Position management
src/execution/position-manager.ts - Portfolio tracking
src/portfolio/index.ts
Runtime platform
- HTTP gateway
src/gateway/index.ts - SQLite persistence
src/db/index.ts - Scheduled automation
src/cron/index.ts
Specialized capabilities
- Token security
src/security/index.ts - Bittensor mining
src/bittensor/service.ts - MCP server
src/mcp/server.ts - Strategy backtesting
src/trading/backtest.ts
Other components
- Trader
Connections 18
- Trader → Messaging channels: messages
README.md - Trader → WebChat: chats
README.md - Messaging channels → HTTP gateway: uses gateway
README.md - WebChat → HTTP gateway: uses gateway
README.md - HTTP gateway → AI agents: routes requests
README.md - AI agents → Skills system: uses skills
README.md - AI agents → Market feeds: gets market data
README.md - Market feeds → Opportunity analysis: supplies markets
src/opportunity/index.ts - HTTP gateway → Trade execution: calls execution
- HTTP gateway → Strategy backtesting: routes backtests
- Trade execution → Risk engine: checks risk
- Trade execution → Position management: uses manager
src/execution/index.ts - Risk engine → Position management: reads positions
src/risk/engine.ts - Portfolio tracking → SQLite persistence: persists data
src/portfolio/index.ts - AI agents → Scheduled automation: schedules tasks
README.md - AI agents → Token security: uses protection
README.md - AI agents → Bittensor mining: supports mining
README.md - MCP server → Skills system: exposes tools
src/mcp/server.ts