How jaikumararjunan/alchemy works
Alchemy is an AI-powered trading platform with a React interface and FastAPI backend. Its principal workflow accepts an order, validates its state and risk, then dispatches execution to a paper-trading engine or exchange gateway; users can review portfolios, history, and analytics. Authentication, capital preservation, alerts, market intelligence, and security auditing are substantial supporting capabilities. The graph reflects documented features and sampled/indexed relationships; unsampled route wiring and several subsystem internals remain unverified, so those connections are omitted.
Main entry points: engine.py Order workflow · auth_routes.py Authentication API · paper_trading_routes.py Paper trading API · order_pipeline.py Order pipeline
Components 25
User interface
- Trading UI
frontend/src/App.jsx - Sign-in pages
frontend/src/pages/auth/LoginPage.jsx
Identity and security
- Authentication API
alchemy/api/auth_routes.py - Authentication service
alchemy/auth/service.py - Request security
alchemy/auth/middleware.py - Security audit
alchemy/security/audit_engine.py
Trading and execution
- Paper trading API
alchemy/api/paper_trading_routes.py - Order workflow
alchemy/workflows/engine.py - Risk manager
alchemy/risk/manager.py - Order pipeline
alchemy/execution/order_pipeline.py - Paper execution
alchemy/paper_trading/engine.py - Capital engine
alchemy/trading/capital_engine.py - Exchange credentials
alchemy/tokens/manager.py - Binance gateway
alchemy/execution/crypto/binance_gateway.py - Delta gateway
alchemy/execution/crypto/delta_gateway.py - Kite gateway
alchemy/execution/kite_gateway.py - IB gateway
alchemy/execution/ib_gateway.py - Capital state
alchemy/trading/capital_engine.py
Market insight
- Portfolio analytics
alchemy/analytics/portfolio.py - Signal engine
alchemy/signals/engine.py - Market emotion
alchemy/intelligence/emotion/ei_engine.py - Price alerts
alchemy/api/alert_routes.py - Notifications
alchemy/notifications/dispatcher.py
Other components
- Trader
- Trading exchanges
Connections 26
- Trader → Trading UI: uses
README.md - Trading UI → Sign-in pages: offers sign-in
frontend/src/App.jsx - Authentication API → Authentication service: delegates auth
alchemy/api/auth_routes.py - Authentication API → Security audit: uses audit
alchemy/api/auth_routes.py - Authentication API → Request security: uses identity checks
alchemy/api/auth_routes.py - Paper trading API → Request security: requires identity
alchemy/api/paper_trading_routes.py - Paper trading API → Paper execution: reads and resets portfolio
alchemy/api/paper_trading_routes.py - Order workflow → Risk manager: checks trade risk
alchemy/workflows/engine.py - Order workflow → Exchange credentials: gets credentials
alchemy/workflows/engine.py - Order workflow → Binance gateway: dispatches orders
alchemy/workflows/engine.py - Order workflow → Delta gateway: dispatches orders
alchemy/workflows/engine.py - Order workflow → Kite gateway: dispatches orders
alchemy/workflows/engine.py - Order workflow → IB gateway: dispatches orders
alchemy/workflows/engine.py - Order pipeline → Risk manager: applies risk checks
alchemy/execution/order_pipeline.py - Order pipeline → Paper execution: executes paper orders
alchemy/execution/order_pipeline.py - Capital engine → Capital state: loads and saves state
alchemy/trading/capital_engine.py - Paper trading API → Capital engine: configures capital
- Trader → Trading exchanges: connects accounts
README.md - Trading exchanges → Binance gateway: supports Binance
README.md - Trading exchanges → Delta gateway: supports Delta
README.md - Trading exchanges → Kite gateway: supports Zerodha
README.md - Trader → Portfolio analytics: reviews portfolio
README.md - Trader → Signal engine: uses AI strategies
README.md - Trader → Market emotion: views market regimes
README.md - Trader → Price alerts: sets price alerts
README.md - Price alerts → Notifications: dispatches alerts
README.md