This application parses and processes cryptocurrency trade data from a CSV file and provides an API to get asset-wise balance at any given timestamp.
- Upload CSV file containing trade data
- Store trade data in MongoDB
- Retrieve asset-wise balance at a given timestamp
POST /upload-csv
- Uploads a CSV file with trade dataPOST /balance
- Retrieves asset-wise balance at a given timestamp
- MongoDB Atlas for database
- render for backend
-
Clone the repository:
git clone https://github.com/Adity20/internship_assignment.git cd crypto-trade-app
-
Install dependencies:
npm install
-
Create a
.env
file and add your MongoDB URI:MONGODB=<your_mongodb_connection_string> PORT=3000
-
Start the server:
node server.js
Use Postman, thunderclient or a similar tool to test the endpoints:
-
Upload CSV:
POST /upload-csv
-
Get Balance:
POST /balance