This project fetches and pulls trading volume data for cryptocurrency exchanges, storing it in a SQLite database and provides visualizations.
- Node.js (v14 or higher)
- npm or yarn
- TypeScript
- Clone the repository:
git clone <repository-url>
cd crypto-exchange-volume
- Install dependencies:
npm install
or
yarn install
Required packages:
bash
npm install @prisma/client axios typescript ts-node nodeplotlib date-fns
npm install -D prisma @types/node
- Initialize Prisma:
npx prisma init
- Create/update the
.env
file:
DATABASE_URL="file:./dev.db"
- Update the Prisma schema in
prisma/schema.prisma
:
npx prisma migrate dev --name init
- Run the script to fetch and store data:
ts-node src/main.ts
- plot the data:
ts-node src/plot_volumes.ts
ts-node src/plot_dominance.ts