How rajkishore08/forex-trading-agent works
This repository combines a React trading dashboard and wallet setup with standalone Python/Node trading integrations. The visible frontend workflow is app entry → dashboard composition → market chart and wallet connection; the chart computes a prediction locally, while wallet connection can trigger Safe creation. README describes a broader analysis, execution, logging, and monitoring workflow, but the sampled code does not show those services wired into the frontend. Dashed links mark README-described or otherwise unverified integrations.
Main entry points: server.js Trade execution and logging · forex_trading_ai.py Forex AI strategies · App.tsx Dashboard shell · TradingView.tsx Trading view
Components 21
Dashboard
- Frontend entry
src/main.tsx - Dashboard shell
src/App.tsx - Trading view
src/components/TradingView.tsx - Trade dashboard
src/components/Dashboard.js - Trading types
src/types/trading.ts
Wallet and execution
- Wallet connection UI
src/components/WalletConnect.tsx - Celo wallet state
src/hooks/useCeloWallet.ts - Safe wallet setup
src/hooks/useSafeWallet.ts - Trade execution and logging
server.js - Trade contract
contracts.sol
Market analysis
- Price prediction
src/hooks/useAIPredictions.ts - Forex analysis
src/ai_forex_analysis.py - Forex AI strategies
forex_trading_ai.py
Trading integrations
- DuckAI insights
duckai_integration.py - Mech strategy agent
mech_agent.py
Other components
- Trader
- Celo network
- Safe account
- Forex rates API
- Mech Marketplace
- Fileverse IPFS
Connections 21
- Trader → Frontend entry: opens
src/main.tsx - Frontend entry → Dashboard shell: renders
src/main.tsx - Dashboard shell → Trading view: renders
src/App.tsx - Dashboard shell → Wallet connection UI: renders
src/App.tsx - Trading view → Price prediction: requests prediction
src/components/TradingView.tsx - Trading view → Trading types: uses types
src/components/TradingView.tsx - Wallet connection UI → Celo wallet state: uses hook
src/components/WalletConnect.tsx - Wallet connection UI → Safe wallet setup: uses hook
src/components/WalletConnect.tsx - Celo wallet state → Trading types: uses state type
src/hooks/useCeloWallet.ts - Celo wallet state → Celo network: reads account balance
src/hooks/useCeloWallet.ts - Safe wallet setup → Safe account: deploys account
src/hooks/useSafeWallet.ts - Forex analysis → Forex rates API: fetches rates
src/ai_forex_analysis.py - Trade execution and logging → Safe account: executes transaction
server.js - Trade execution and logging → Fileverse IPFS: stores trade log
server.js - Mech strategy agent → Mech Marketplace: registers and executes
mech_agent.py - Forex analysis → Forex AI strategies: supplies analysis workflow
- Forex AI strategies → DuckAI insights: informs trading insights
- Forex AI strategies → Trade execution and logging: drives trade execution
README.md - Trade execution and logging → Trade contract: uses trade contract
README.md - Trade dashboard → Trade execution and logging: shows trade history
README.md - Forex AI strategies → Mech strategy agent: submits strategies
README.md