A comprehensive decentralized finance (DeFi) platform built with Next.js, featuring real-time crypto data, trading interfaces, portfolio tracking, and DODO exchange integration.
- Real-time Crypto Data: Powered by CoinMarketCap API for accurate market information
- Trading Interface: Advanced trading tools with charts, order books, and market analysis
- Portfolio Tracking: Comprehensive portfolio management with performance analytics
- DeFi Analytics: Protocol analysis, yield farming opportunities, and liquidity pool management
- DODO Integration: Direct integration with DODO exchange for seamless swapping
- Market Overview: Live cryptocurrency prices, trending coins, and global market metrics
To run this project, you'll need to add the following environment variables:
REACT_APP_CRYPTO_KEY: Your DODO API key (default:2597ea4c0d5cabf1a2)
REACT_APP_CMC_API_KEY: Your CoinMarketCap API key for real-time data- Get your free API key at: https://coinmarketcap.com/api/
- Without this key, the app will use mock data
The platform integrates with CoinMarketCap's professional API to provide:
- Real-time cryptocurrency prices and market data
- Global market metrics (total market cap, 24h volume, dominance)
- Trending coins and gainers/losers
- Market capitalization and ranking data
Integration with DODO's decentralized exchange for:
- Token swapping with real-time quotes
- Liquidity pool information and management
- Yield farming opportunities
- Transaction execution and tracking
- Clone the repository
- Install dependencies:
npm install - Set up your environment variables in
.env.local - Run the development server:
npm run dev - Open http://localhost:3000 in your browser
``` ├── app/ # Next.js app router pages │ ├── analytics/ # DeFi analytics dashboard │ ├── dodo/ # DODO exchange interface │ ├── market/ # Market overview and crypto prices │ ├── portfolio/ # Portfolio tracking and management │ └── trading/ # Trading interface and tools ├── components/ # Reusable React components │ ├── ui/ # Base UI components (shadcn/ui) │ └── ... # Feature-specific components └── lib/ # Utility functions and API integrations └── crypto-api.ts # Crypto data service layer ```
- Framework: Next.js 14 with App Router
- Styling: Tailwind CSS v4 with shadcn/ui components
- Charts: Recharts for data visualization
- API Integration: CoinMarketCap Pro API, DODO Exchange API
- TypeScript: Full type safety throughout the application
- Portfolio overview with real-time values
- Global market statistics from CoinMarketCap
- Quick access to trading and DeFi opportunities
- Live crypto price widgets
- Advanced trading interface with real-time charts
- Order book and recent trades display
- Market and limit order execution
- Slippage and gas estimation
- Comprehensive asset tracking and analytics
- Performance metrics and historical data
- Asset allocation visualization
- Transaction history and P&L tracking
- Live cryptocurrency prices and market data
- Trending coins and market movers
- Global market statistics and dominance charts
- Market sentiment indicators
- DeFi protocol analysis and comparison
- Yield farming opportunities and APY tracking
- Liquidity pool management and rewards
- Risk analysis and portfolio optimization
- Direct token swapping interface
- Liquidity pool participation
- Reward tracking and claiming
- Real-time quote and execution
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License. ```