Verified AI-Agent Built
Tier 1README
Crypto Trading Calculator
A modern React-based cryptocurrency trading calculator with real-time price data and comprehensive profit/loss analysis.
Features
π Live Price Data: Real-time cryptocurrency prices from CoinPaprika API
π Dual Calculation Modes: Calculate profit from sell price or find required sell price for target profit
πΎ Auto-Save: Automatically saves and restores inputs for each token
π± Responsive Design: Works perfectly on desktop, tablet, and mobile
β‘ Real-time Updates: Instant calculations as you type
π¨ Modern UI: Beautiful gradient design with Tailwind CSS
Supported Cryptocurrencies
- ETH (Ethereum)
- SOL (Solana)
- XRP (XRP)
- SUI (Sui)
Getting Started
Prerequisites
- Node.js (version 14 or higher)
- npm or yarn
Installation
-
Clone or download this repository
-
Install dependencies:
npm install -
Start the development server:
npm start -
Open http://localhost:3000 to view it in the browser
Build for Production
npm run build
How to Use
1. Select Token
Choose from ETH, SOL, XRP, or SUI to automatically load current market prices. Your inputs are saved for each token (blue dot indicates saved data).
2. Calculate Profit Mode
- Enter your investment amount ($)
- Set buy price (auto-filled when selecting a token)
- Set sell price
- View detailed profit/loss analysis
3. Find Sell Price Mode
- Enter your investment amount ($)
- Set buy price (auto-filled when selecting a token)
- Enter target profit ($)
- Get the required sell price to achieve your goal
Features Explained
Transaction Fees
- 0.10% fee automatically applied to both buy and sell orders
- Real-world accuracy for better trading decisions
- Fee breakdown shown in results
Auto-Save Functionality
- Inputs automatically saved for each cryptocurrency
- Data persists between page refreshes
- Switch between tokens without losing your calculations
Live Price Integration
- Real-time price data from CoinPaprika API
- Fallback data ensures the app always works
- Manual refresh option available
Technology Stack
- React 18 - Modern React with hooks
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first CSS framework
- Lucide React - Beautiful icon library
- CoinPaprika API - Real-time cryptocurrency data
Project Structure
krypto/
βββ public/
β βββ index.html
βββ src/
β βββ components/
β β βββ crypto-trading-calculator.tsx
β βββ App.js
β βββ index.js
β βββ index.css
βββ package.json
βββ tailwind.config.js
βββ postcss.config.js
βββ tsconfig.json
API Information
This application uses the CoinPaprika API:
- Endpoint:
https://api.coinpaprika.com/v1/tickers/{token-id} - Rate Limit: No authentication required for basic usage
- Fallback: Demo data used if API is unavailable
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License.
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.
Built with β€οΈ using React and Tailwind CSS
Tags
Similar Tools
Wigvu
YouTube subtitle extraction and translation
Claudit
Claude Code management UI
Claude Hub
VerifiedClaude integration hub
Zcf
VerifiedZero-config code flow for Claude Code
Tweakcc
VerifiedCustomize Claude Code system prompts
Cursor Claude Test
ChatGPT clone with no manual coding allowed