{"id":24539029,"url":"https://github.com/harshproj/koinx","last_synced_at":"2025-03-16T03:32:06.045Z","repository":{"id":271870348,"uuid":"914827308","full_name":"HarshProj/KoinX","owner":"HarshProj","description":"Live at:","archived":false,"fork":false,"pushed_at":"2025-01-10T12:13:32.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T16:14:46.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://koinx-6et1.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HarshProj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T11:42:41.000Z","updated_at":"2025-01-10T12:13:35.000Z","dependencies_parsed_at":"2025-03-09T02:30:31.448Z","dependency_job_id":null,"html_url":"https://github.com/HarshProj/KoinX","commit_stats":null,"previous_names":["harshproj/koinx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshProj%2FKoinX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshProj%2FKoinX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshProj%2FKoinX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshProj%2FKoinX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarshProj","download_url":"https://codeload.github.com/HarshProj/KoinX/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822312,"owners_count":20353496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T16:14:48.341Z","updated_at":"2025-03-16T03:32:06.026Z","avatar_url":"https://github.com/HarshProj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cryptocurrency Data Fetcher and Deviation Calculator\n\nThis 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.\n\n## Features\n\n- Fetches real-time cryptocurrency data for Bitcoin, Matic, and Ethereum from the CoinGecko API.\n- Stores cryptocurrency data (price, market cap, 24-hour change) in a MongoDB database.\n- Provides an API to fetch the latest data for a requested cryptocurrency.\n- Calculates and returns the standard deviation of the last 100 cryptocurrency prices for a specified coin.\n- Cron job runs every 2 hours to fetch new data.\n\n## Tech Stack\n\n- **Backend**: Node.js, Express.js\n- **Database**: MongoDB\n- **Scheduler**: node-cron\n- **API Integration**: Axios (to fetch data from CoinGecko API)\n- **Environment Variables**: dotenv\n- **CORS**: For cross-origin requests\n\n## Setup and Installation\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/HarshProj/KoinX.git\n```\n### Home page\n![image](https://github.com/user-attachments/assets/ddda5505-278e-4cf8-9d06-396d34183625)\n\n### Coin Stats\n![image](https://github.com/user-attachments/assets/7a8ca39a-3f06-4b42-b607-e22bdb546956)\n\n### Deviation\n![image](https://github.com/user-attachments/assets/cedc2b15-3340-4bcb-8899-2d2de014e6f4)\n\n### extra\n## Top 15 entries\n![image](https://github.com/user-attachments/assets/bfe1f9d9-d409-4d4d-9144-508311ac79c2)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshproj%2Fkoinx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshproj%2Fkoinx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshproj%2Fkoinx/lists"}