Real-time tracking and comparison of Gold and Silver prices in Indian Rupees (INR) with historical analysis since June 1, 2022.
- Dual Price Charts: Track Gold (INR per 10g) and Silver (INR per kg) simultaneously
- Indexed Performance: Compare relative performance since reference date (June 1, 2022)
- Real-time Metrics: Current prices, percentage changes, and Gold/Silver ratio
- Time Range Filters: 1M, 3M, 6M, 1Y, and All-time views
- Responsive Design: Works seamlessly on desktop and mobile devices
- Interactive Charts: Hover tooltips, zoom, and pan functionality
View live demo: (https://rraqesh.github.io/goldsilver-tango/)
- Reference Date: June 1, 2022
- Current Coverage: Up to February 2026
- Update Frequency: Daily
- Target End Date: March 31, 2026
- Pure HTML5, CSS3, JavaScript (ES6+)
- Chart.js for data visualization
- No backend required - runs entirely in browser
- Responsive design with modern CSS
gold-silver-tracker/
β
βββ index.html # Main application file
βββ README.md # This file
βββ LICENSE # MIT License
βββ .gitignore # Git ignore rules
β
βββ data/
β βββ prices.json # Historical price data (future enhancement)
β
βββ docs/
βββ screenshots/ # App screenshots (optional)
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/gold-silver-tracker.git cd gold-silver-tracker -
Open
index.htmlin your web browser:# On macOS open index.html # On Linux xdg-open index.html # On Windows start index.html
# Using Python 3
python -m http.server 8000
# Using Node.js http-server
npx http-server
# Then visit: http://localhost:8000- Go to repository Settings β Pages
- Select branch:
mainand folder:/ (root) - Save and wait for deployment
- Access at:
https://YOUR_USERNAME.github.io/gold-silver-tracker/
The app currently uses embedded historical data in index.html.
To add real-time updates, integrate with commodity price APIs:
Option 1: Indian Market APIs
- Metals API - Gold/Silver rates in INR
- GoldAPI - Real-time precious metals
- Custom scraping from Indian commodity exchanges
Option 2: Add data update script
// Example: Fetch latest prices
async function fetchLatestPrices() {
const response = await fetch('YOUR_API_ENDPOINT');
const data = await response.json();
// Update historicalData array
}{
"date": "2022-06-01",
"gold": 51000,
"silver": 62000
}- Open
index.html - Locate
historicalDataarray - Add new entry with today's prices:
{ date: "2026-02-02", gold: 72500, silver: 91000 }
- Commit and push changes
- GitHub Actions workflow to fetch daily prices
- Automatic commit to repository
- See
docs/automation.mdfor implementation guide
Edit CSS variables in <style> section:
:root {
--gold-color: #FFD700;
--silver-color: #C0C0C0;
}Change in JavaScript:
const referenceDate = '2022-06-01'; // Modify as neededContributions are welcome! Here's how:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
- Add export to CSV functionality
- Implement price alerts/notifications
- Add more precious metals (Platinum, Palladium)
- Create mobile app version
- Add technical indicators (Moving averages, RSI)
- Multi-currency support
- Historical data requires manual updates (API integration planned)
- No backend persistence (all data in HTML file)
This project is licensed under the MIT License - see the LICENSE file for details.
- Price data sourced from Indian commodity markets
- Built with Chart.js
- Inspired by financial tracking tools
Your Name
- GitHub: @YOUR_USERNAME
- LinkedIn: Your LinkedIn
- Email: your.email@example.com
- Basic price tracking and visualization
- Indexed performance comparison
- Responsive design
- API integration for automatic updates
- Price alert system
- Historical data export
- Technical analysis indicators
- Mobile app version
If you find this project useful, please consider giving it a star!
Built with β€οΈ for precious metals investors and traders