https://github.com/harshproj/koinx
Live at:
https://github.com/harshproj/koinx
Last synced: over 1 year ago
JSON representation
Live at:
- Host: GitHub
- URL: https://github.com/harshproj/koinx
- Owner: HarshProj
- Created: 2025-01-10T11:42:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T12:13:32.000Z (over 1 year ago)
- Last Synced: 2025-01-22T16:14:46.780Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://koinx-6et1.onrender.com
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cryptocurrency Data Fetcher and Deviation Calculator
This project is a Node.js application that fetches cryptocurrency data every 2 hours, stores it in a MongoDB database, and provides API endpoints for querying the data. It also calculates the standard deviation of cryptocurrency prices over the last 100 records for a specified coin.
## Features
- Fetches real-time cryptocurrency data for Bitcoin, Matic, and Ethereum from the CoinGecko API.
- Stores cryptocurrency data (price, market cap, 24-hour change) in a MongoDB database.
- Provides an API to fetch the latest data for a requested cryptocurrency.
- Calculates and returns the standard deviation of the last 100 cryptocurrency prices for a specified coin.
- Cron job runs every 2 hours to fetch new data.
## Tech Stack
- **Backend**: Node.js, Express.js
- **Database**: MongoDB
- **Scheduler**: node-cron
- **API Integration**: Axios (to fetch data from CoinGecko API)
- **Environment Variables**: dotenv
- **CORS**: For cross-origin requests
## Setup and Installation
### 1. Clone the repository
```bash
git clone https://github.com/HarshProj/KoinX.git
```
### Home page

### Coin Stats

### Deviation

### extra
## Top 15 entries
