- Live Link : https://koinx-backend-two.vercel.app/
- Postman collection : https://elements.getpostman.com/redirect?entityId=28606222-263b0920-bf26-4d3e-b8e5-a1bfb4f350ec&entityType=collection
Follow these steps to install and run the project:
- Clone the Repository
git clone https://github.com/Ayush-Vish/Crypto-APIs.git
- Navigate into the project directory:
cd <project-directory>
- Make a .env file and copy the content of the .env.example
cp .env.example .env
- Install the dependencies:
npm install
- Start the server:
npm run dev
- fromCurrency: The cryptocurrency to fetch the price for.
- toCurrency: The currency to fetch the price in.
- date: The date to fetch the price for in the format MM-DD-YYYY.
This endpoint retrieves the price of a specific cryptocurrency in a specific currency for a given date.
Sample Request (BASE_URL = http://localhost:3000/api/v1/crypto)
GET /price?fromCurrency=bitcoin&toCurrency=usd&date=01-01-2024
- currency: The cryptocurrency to fetch the companies for.
- Description: This endpoint retrieves the list of companies holding a specific cryptocurrency.
GET /companies/bitcoin