Flask-based API for calculating crypto trading profits/losses. The application uses Coinbase API for fetching historical price data of 150+ cryptocurrencies. The local K8s cluster development and deployment is configured with Docker, minikube, and Skaffold.
-
Clone the repository and navigate to the project directory
$ git clone git@github.com:mDemianchuk/crypto-profit-calculator.git $ cd crypto-profit-calculator
-
Configure and start minikube
$ minikube start
-
Run skaffold
$ skaffold dev
* This command will also port forward K8s service (port 5000) to your local machine (port 5005)
-
Submit your Coinbase Pro statement in the csv format
$ curl -X POST -F "csv=@/path/to/statement.csv" http://127.0.0.1:5005/api/reports
* Your statements or any other metadata are not uploaded or stored anywhere other than your own machine!